Skip to content

Commit c727a18

Browse files
committed
Fixed bug in drupal-search-documentation.
1 parent 8978316 commit c727a18

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drupal-mode.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,10 @@ should save your files with unix style end of line."
476476
((and (boundp 'php-extras-function-arguments)
477477
(hash-table-p php-extras-function-arguments)
478478
(gethash (symbol-name symbol) php-extras-function-arguments))
479-
(php-search-documentation))
479+
;; Older versions of `php-search-documentation' did not take arguments.
480+
(condition-case nil
481+
(php-search-documentation (symbol-name symbol))
482+
(wrong-number-of-arguments (php-search-documentation))))
480483
((and drupal-drush-program (string-match "drush" (symbol-name symbol)))
481484
(browse-url
482485
(format-spec drupal-drush-search-url `((?v . ,(replace-regexp-in-string "\\([0-9]+\.\\).*\\'" "\\1x" (replace-regexp-in-string ".*-dev" "master" drupal-drush-version)))

0 commit comments

Comments
 (0)