branch: elpa/drupal-mode
commit c727a18be70257741322d144ae2bebc3516575f6
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>

    Fixed bug in `drupal-search-documentation`.
---
 drupal-mode.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drupal-mode.el b/drupal-mode.el
index 72b6b5e09f..917cffef68 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -476,7 +476,10 @@ should save your files with unix style end of line."
        ((and (boundp 'php-extras-function-arguments)
              (hash-table-p php-extras-function-arguments)
              (gethash (symbol-name symbol) php-extras-function-arguments))
-        (php-search-documentation))
+        ;; Older versions of `php-search-documentation' did not take arguments.
+        (condition-case nil
+            (php-search-documentation (symbol-name symbol))
+          (wrong-number-of-arguments (php-search-documentation))))
        ((and drupal-drush-program (string-match "drush" (symbol-name symbol)))
         (browse-url
          (format-spec drupal-drush-search-url `((?v . 
,(replace-regexp-in-string "\\([0-9]+\.\\).*\\'" "\\1x" 
(replace-regexp-in-string ".*-dev" "master" drupal-drush-version)))

Reply via email to