Fix documentation-function for elisp-mode in emacs24

This commit is contained in:
Łukasz Gruner 2015-02-16 06:05:30 +01:00
parent da6e5a7eaf
commit 451c7b3247
1 changed files with 6 additions and 0 deletions

View File

@ -127,6 +127,12 @@
(org-eldoc-get-src-header)
(let ((lang (org-eldoc-get-src-lang)))
(cond ((or
(string= lang "emacs-lisp")
(string= lang "elisp")) (if (fboundp 'elisp-eldoc-documentation-function)
(elisp-eldoc-documentation-function)
(let (eldoc-documentation-function)
(eldoc-print-current-symbol-info))))
((or
(string= lang "c") ;; http://github.com/nflath/c-eldoc
(string= lang "C")) (when (require 'c-eldoc nil t)
(c-eldoc-print-current-symbol-info)))