* progmodes/cfengine.el (cfengine3-mode): Handle nil
eldoc-documentation-function.
(when buffer-file-name
(shell-quote-argument buffer-file-name)))))
(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)
(add-function :before-until (local 'eldoc-documentation-function)
#'cfengine3-documentation-function)