aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-12-05 11:12:38 +0200
committerEli Zaretskii2015-12-05 11:12:38 +0200
commitb3b68eb655595407f8b03e5500df081324e0cd40 (patch)
treef56d6c1fa477dacaed16821fd075f1edd591529f
parentf18e93442b283b4eabfc063a06892fa4cc8579e8 (diff)
downloademacs-b3b68eb655595407f8b03e5500df081324e0cd40.tar.gz
emacs-b3b68eb655595407f8b03e5500df081324e0cd40.zip
Fix documentation of 'undo' changes
* doc/lispref/text.texi (Undo): Minor wording changes. Use US English conventions for spelling and whitespace between sentences. * etc/NEWS: Fix wording and spelling of undo-related entries. Mark them as documented.
-rw-r--r--doc/lispref/text.texi19
-rw-r--r--etc/NEWS17
2 files changed, 22 insertions, 14 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index 1bb5303620d..dfd85bf124e 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -1353,26 +1353,27 @@ appropriate time.
1353@end defun 1353@end defun
1354 1354
1355@defun undo-auto-amalgamate 1355@defun undo-auto-amalgamate
1356@cindex amalgamating commands, and undo
1356The editor command loop automatically calls @code{undo-boundary} just 1357The editor command loop automatically calls @code{undo-boundary} just
1357before executing each key sequence, so that each undo normally undoes 1358before executing each key sequence, so that each undo normally undoes
1358the effects of one command. A few exceptional commands are 1359the effects of one command. A few exceptional commands are
1359@emph{amalgamating}: these commands generally cause small changes to 1360@dfn{amalgamating}: these commands generally cause small changes to
1360buffers. So with these a boundary is inserted only every 20th command, 1361buffers, so with these a boundary is inserted only every 20th command,
1361so that these can be undone as a group. By default commands 1362allowing to undo them as a group. By default, commands
1362@code{self-insert-command}, which produces self-inserting input 1363@code{self-insert-command}, which produces self-inserting input
1363characters (@pxref{Commands for Insertion}), and @code{delete-char} 1364characters (@pxref{Commands for Insertion}), and @code{delete-char}
1364which deletes characters (@pxref{Deletion}) are amalgamating. 1365which deletes characters (@pxref{Deletion}) are amalgamating.
1365Where a command affects the contents of several buffers as may happen, 1366Where a command affects the contents of several buffers, as may happen,
1366for example, if a function on the @code{post-command-hook} affects a 1367for example, when a function on the @code{post-command-hook} affects a
1367buffer other than the @code{current-buffer}, then @code{undo-boundary} 1368buffer other than the @code{current-buffer}, then @code{undo-boundary}
1368will be called in each of them. 1369will be called in each of the affected buffers.
1369@end defun 1370@end defun
1370 1371
1371@defvar undo-auto-current-boundary-timer 1372@defvar undo-auto-current-boundary-timer
1372Some buffers, such as process buffers, can change even when no 1373Some buffers, such as process buffers, can change even when no
1373commands are executing. In these cases, @code{undo-boundary} is 1374commands are executing. In these cases, @code{undo-boundary} is
1374normally called periodically by the timer in this variable. Setting 1375normally called periodically by the timer in this variable. Setting
1375this variable to non-@code{nil} prevents this behaviour. 1376this variable to non-@code{nil} prevents this behavior.
1376@end defvar 1377@end defvar
1377 1378
1378@defvar undo-in-progress 1379@defvar undo-in-progress
diff --git a/etc/NEWS b/etc/NEWS
index 1b44812f36a..ca61fc00ac2 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -226,12 +226,19 @@ at configure time.
226+++ 226+++
227** M-x suggests shorthands and ignores obsolete commands for completion. 227** M-x suggests shorthands and ignores obsolete commands for completion.
228 228
229** Successive single-char deletions are collapsed in the undo-log just like 229** Changes in undo
230successive char insertions. This behaviour can be extended to other
231commands, using the `undo-auto--amalgamate' function.
232 230
233** The heuristic used to insert `undo-boundary' after each command has changed, 231+++
234so that it supports commands which potentially affect multiple buffers. 232*** Successive single-char deletions are collapsed in the undo-log just like
233successive char insertions. Which commands invoke this behavior is
234controlled by the new `undo-auto-amalgamate' function. See the node
235"Undo" in the ELisp manual for more details.
236
237+++
238*** The heuristic used to insert `undo-boundary' after each command
239has changed, so that if a command causes changes in more than just the
240current buffer, Emacs now calls `undo-boundary' in every buffer
241affected by the command.
235 242
236+++ 243+++
237** New command `comment-line' bound to `C-x C-;'. 244** New command `comment-line' bound to `C-x C-;'.