From: Eli Zaretskii Date: Wed, 16 Dec 2015 14:38:06 +0000 (+0200) Subject: Document Eldoc changes X-Git-Tag: emacs-25.0.90~462 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f92ba5db978f06174cd217c63a18d6b0295bbc44;p=emacs.git Document Eldoc changes * doc/emacs/programs.texi (Lisp Doc): Document Global Eldoc mode. --- diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index bfc991b84c3..bc8d39c974f 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi @@ -1234,13 +1234,16 @@ variables that you want to use. @xref{Name Help}. @cindex Eldoc mode @findex eldoc-mode +@findex global-eldoc-mode Eldoc is a buffer-local minor mode that helps with looking up Lisp documentation. When it is enabled, the echo area displays some useful information whenever there is a Lisp function or variable at point; for a function, it shows the argument list, and for a variable it shows the first line of the variable's documentation string. To -toggle Eldoc mode, type @kbd{M-x eldoc-mode}. Eldoc mode can be used -with the Emacs Lisp and Lisp Interaction major modes. +toggle Eldoc mode, type @kbd{M-x eldoc-mode}. There's also a Global +Eldoc mode, which is turned on by default in buffers whose major mode +is Emacs Lisp or Lisp Interaction (@kbd{M-x global-eldoc-mode} to turn +it off). @node Hideshow @section Hideshow minor mode diff --git a/etc/NEWS b/etc/NEWS index d65e9dd6fa6..2b21f8b6f84 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -554,8 +554,16 @@ this you can tell Edebug not to stop at the start of the first instrumented function. ** ElDoc + ++++ *** New minor mode `global-eldoc-mode' +It is turned on by default in `*scratch*' and other buffers whose +major mode supports Emacs Lisp. + +--- *** `eldoc-documentation-function' now defaults to `ignore' + +--- *** `describe-char-eldoc' displays information about character at point, and can be used as a default value of `eldoc-documentation-function'. It is useful when, for example, one needs to distinguish various spaces (e.g. ] [,