Skip to content

Commit

Permalink
support new "ignore" value for eldoc-documentation-function used in e…
Browse files Browse the repository at this point in the history
…macs 25
  • Loading branch information
slaanesh authored and Olivier Sirven committed May 18, 2016
1 parent c269ab4 commit 07e11ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion php-extras.el
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Property can be: 'versions, 'return, 'prototype, 'purpose, or 'id."
(add-hook 'php-mode-hook 'php-extras-eldoc-setup)

(defun php-extras-eldoc-setup ()
(unless eldoc-documentation-function
(when (memq eldoc-documentation-function '(nil ignore))
(set (make-local-variable 'eldoc-documentation-function)
#'php-extras-eldoc-documentation-function))
(eldoc-add-command 'completion-at-point))
Expand All @@ -144,6 +144,7 @@ documentation for the inserted selection."
(insert "()")
(backward-char)
(when (and (boundp 'eldoc-documentation-function)
(not (memq eldoc-documentation-function '(nil ignore)))
(fboundp 'eldoc-message))
(eldoc-message (funcall eldoc-documentation-function)))))

Expand Down

0 comments on commit 07e11ef

Please sign in to comment.