aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-03-11 23:48:20 -0700
committerGlenn Morris2014-03-11 23:48:20 -0700
commit8a51e8e417ea4bb54bca9fa1ad49f3806f642180 (patch)
tree78fed86d314c3eca9f6f76660d422e1881b58273
parent5983b317f4cd4853dd22fc97dd91a1999fc20aba (diff)
downloademacs-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/ChangeLog4
-rw-r--r--doc/emacs/indent.texi3
-rw-r--r--etc/NEWS1
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/electric.el8
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 @@
12014-03-12 Glenn Morris <rgm@gnu.org>
2
3 * indent.texi (Indent Convenience): Mention electric-indent-local-mode.
4
12014-03-02 Xue Fuqiao <xfq@gnu.org> 52014-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
252indents the line after every @key{RET} you type. This mode is enabled 252indents the line after every @key{RET} you type. This mode is enabled
253by default. To toggle this minor mode, type @kbd{M-x 253by default. To toggle this minor mode, type @kbd{M-x
254electric-indent-mode}. 254electric-indent-mode}. To toggle the mode in a single buffer,
255use @kbd{M-x electric-indent-local-mode}.
diff --git a/etc/NEWS b/etc/NEWS
index 2127fc4d97e..910c8385706 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -359,6 +359,7 @@ means to always load the .elc file.
359E.g., typing RET reindents the current line and indents the new line. 359E.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 @@
12014-03-12 Glenn Morris <rgm@gnu.org>
2
3 * electric.el (electric-indent-mode): Doc fix.
4
12014-03-12 Juanma Barranquero <lekktu@gmail.com> 52014-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
294positive, and disable it otherwise. If called from Lisp, enable 294positive, and disable it otherwise. If called from Lisp, enable
295the mode if ARG is omitted or nil. 295the mode if ARG is omitted or nil.
296 296
297This is a global minor mode. When enabled, it reindents whenever 297When enabled, this reindents whenever the hook `electric-indent-functions'
298the hook `electric-indent-functions' returns non-nil, or you 298returns non-nil, or if you insert a character from `electric-indent-chars'.
299insert a character from `electric-indent-chars'." 299
300This is a global minor mode. To toggle the mode in a single buffer,
301use `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