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

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

[nongnu] elpa/drupal-mode d23d66e624 083/308: Support `php-extras-eldoc-


From: ELPA Syncer
Subject: [nongnu] elpa/drupal-mode d23d66e624 083/308: Support `php-extras-eldoc-documentation-function'.
Date: Tue, 25 Jan 2022 10:59:32 -0500 (EST)

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

    Support `php-extras-eldoc-documentation-function'.
    
    Support `php-extras-eldoc-documentation-function' from `php-extras.el'
    (https://github.com/arnested/php-extras) in
    `drupal-eldoc-documentation-function'.
---
 drupal-mode.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drupal-mode.el b/drupal-mode.el
index 0ed37a9a8d..a973847ed3 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -457,8 +457,10 @@ instead."
   (when drupal-get-function-args
     (let* ((symbol (php-get-pattern))
            (args (when symbol (funcall drupal-get-function-args symbol))))
-      (when args
-        (message "%s: (%s)" symbol args)))))
+      (if args
+          (format "%s (%s)" symbol args)
+        (when (fboundp 'php-extras-eldoc-documentation-function)
+          (php-extras-eldoc-documentation-function))))))
 
 
 



reply via email to

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