diff options
| author | Glenn Morris | 2014-03-11 23:48:20 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-03-11 23:48:20 -0700 |
| commit | 8a51e8e417ea4bb54bca9fa1ad49f3806f642180 (patch) | |
| tree | 78fed86d314c3eca9f6f76660d422e1881b58273 | |
| parent | 5983b317f4cd4853dd22fc97dd91a1999fc20aba (diff) | |
| download | emacs-8a51e8e417ea4bb54bca9fa1ad49f3806f642180.tar.gz emacs-8a51e8e417ea4bb54bca9fa1ad49f3806f642180.zip | |
* emacs/indent.texi (Indent Convenience): Mention electric-indent-local-mode.
* lisp/electric.el (electric-indent-mode): Doc fix.
* etc/NEWS: Related markup.
| -rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/indent.texi | 3 | ||||
| -rw-r--r-- | etc/NEWS | 1 | ||||
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/electric.el | 8 |
5 files changed, 16 insertions, 4 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 02bdbe65cd5..0130d03b5ca 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-03-12 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * indent.texi (Indent Convenience): Mention electric-indent-local-mode. | ||
| 4 | |||
| 1 | 2014-03-02 Xue Fuqiao <xfq@gnu.org> | 5 | 2014-03-02 Xue Fuqiao <xfq@gnu.org> |
| 2 | 6 | ||
| 3 | * mark.texi (Mark): | 7 | * mark.texi (Mark): |
diff --git a/doc/emacs/indent.texi b/doc/emacs/indent.texi index 78e2e925e41..4b44b9289b5 100644 --- a/doc/emacs/indent.texi +++ b/doc/emacs/indent.texi | |||
| @@ -251,4 +251,5 @@ indentation; otherwise, it inserts a tab character. | |||
| 251 | Electric Indent mode is a global minor mode that automatically | 251 | Electric Indent mode is a global minor mode that automatically |
| 252 | indents the line after every @key{RET} you type. This mode is enabled | 252 | indents the line after every @key{RET} you type. This mode is enabled |
| 253 | by default. To toggle this minor mode, type @kbd{M-x | 253 | by default. To toggle this minor mode, type @kbd{M-x |
| 254 | electric-indent-mode}. | 254 | electric-indent-mode}. To toggle the mode in a single buffer, |
| 255 | use @kbd{M-x electric-indent-local-mode}. | ||
| @@ -359,6 +359,7 @@ means to always load the .elc file. | |||
| 359 | E.g., typing RET reindents the current line and indents the new line. | 359 | E.g., typing RET reindents the current line and indents the new line. |
| 360 | `C-j' inserts a newline but does not indent. | 360 | `C-j' inserts a newline but does not indent. |
| 361 | 361 | ||
| 362 | +++ | ||
| 362 | *** New buffer-local `electric-indent-local-mode'. | 363 | *** New buffer-local `electric-indent-local-mode'. |
| 363 | 364 | ||
| 364 | +++ | 365 | +++ |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6ed8a4b7e25..9d99bdecd38 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-03-12 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * electric.el (electric-indent-mode): Doc fix. | ||
| 4 | |||
| 1 | 2014-03-12 Juanma Barranquero <lekktu@gmail.com> | 5 | 2014-03-12 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 6 | ||
| 3 | * vc/pcvs.el (cvs-temp-buffer, defun-cvs-mode, cvs-get-cvsroot) | 7 | * vc/pcvs.el (cvs-temp-buffer, defun-cvs-mode, cvs-get-cvsroot) |
diff --git a/lisp/electric.el b/lisp/electric.el index 3e19d9b23b1..7debe0b7f98 100644 --- a/lisp/electric.el +++ b/lisp/electric.el | |||
| @@ -294,9 +294,11 @@ With a prefix argument ARG, enable Electric Indent mode if ARG is | |||
| 294 | positive, and disable it otherwise. If called from Lisp, enable | 294 | positive, and disable it otherwise. If called from Lisp, enable |
| 295 | the mode if ARG is omitted or nil. | 295 | the mode if ARG is omitted or nil. |
| 296 | 296 | ||
| 297 | This is a global minor mode. When enabled, it reindents whenever | 297 | When enabled, this reindents whenever the hook `electric-indent-functions' |
| 298 | the hook `electric-indent-functions' returns non-nil, or you | 298 | returns non-nil, or if you insert a character from `electric-indent-chars'. |
| 299 | insert a character from `electric-indent-chars'." | 299 | |
| 300 | This is a global minor mode. To toggle the mode in a single buffer, | ||
| 301 | use `electric-indent-local-mode'." | ||
| 300 | :global t :group 'electricity | 302 | :global t :group 'electricity |
| 301 | :initialize 'custom-initialize-delay | 303 | :initialize 'custom-initialize-delay |
| 302 | :init-value t | 304 | :init-value t |