Skip to content

Commit 08498d3

Browse files
committed
Don't lookup documentation if no symbol-at-point.
1 parent 07eaf83 commit 08498d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drupal-mode.el

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,10 @@ should save your files with unix style end of line."
193193
(defun drupal-search-documentation ()
194194
"Search Drupal documentation for symbol at point."
195195
(interactive)
196-
(browse-url
197-
(format-spec drupal-search-url `((?v . ,(drupal-major-version drupal-version))
198-
(?s . ,(symbol-at-point))))))
196+
(when (symbol-at-point)
197+
(browse-url
198+
(format-spec drupal-search-url `((?v . ,(drupal-major-version drupal-version))
199+
(?s . ,(symbol-at-point)))))))
199200

200201

201202

0 commit comments

Comments
 (0)