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

    Fixed argument tip when no window-system.
---
 drupal-mode.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drupal-mode.el b/drupal-mode.el
index 14d655ae75..4c60128b86 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -462,7 +462,9 @@ instead."
     (let* ((symbol (php-get-pattern))
            (args (funcall drupal-get-function-args symbol)))
       (when args
-        (pos-tip-show (format "%s(%s)" symbol args))))))
+        (if (window-system)
+            (pos-tip-show (format "%s(%s)" symbol args))
+          (message "%s" (format "%s(%s)" symbol args)))))))
 
 
 

Reply via email to