emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/drupal-mode c727a18be7 226/308: Fixed bug in `drupal-searc


From: ELPA Syncer
Subject: [nongnu] elpa/drupal-mode c727a18be7 226/308: Fixed bug in `drupal-search-documentation`.
Date: Tue, 25 Jan 2022 10:59:49 -0500 (EST)

branch: elpa/drupal-mode
commit c727a18be70257741322d144ae2bebc3516575f6
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>

    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

[Prev in Thread] Current Thread [Next in Thread]