summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Liu <sdl.web@gmail.com>2015-07-19 12:39:37 +0800
committerLeo Liu <sdl.web@gmail.com>2015-07-19 12:39:37 +0800
commitf7ba648def727053a2da7d71150a0ee991ec4f9e (patch)
tree15d66d0e87777cd5c2a352cb719c5950a211b29c
parent82ed706469925bfe570e20c4daa750aeeaf4e63b (diff)
Fix a bug in cfengine3-mode
* progmodes/cfengine.el (cfengine3-mode): Handle nil eldoc-documentation-function.
-rw-r--r--lisp/progmodes/cfengine.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/progmodes/cfengine.el b/lisp/progmodes/cfengine.el
index 27784a503b..108ccb654c 100644
--- a/lisp/progmodes/cfengine.el
+++ b/lisp/progmodes/cfengine.el
@@ -1390,6 +1390,10 @@ to the action header."
(when buffer-file-name
(shell-quote-argument buffer-file-name)))))
+ ;; For emacs < 25.1 where `eldoc-documentation-function' defaults to
+ ;; nil.
+ (or eldoc-documentation-function
+ (setq-local eldoc-documentation-function #'ignore))
(add-function :before-until (local 'eldoc-documentation-function)
#'cfengine3-documentation-function)