aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2014-02-17 13:04:17 -0500
committerStefan Monnier2014-02-17 13:04:17 -0500
commit6faf982a0e21895e1a3aa682a5cecd74b609a30d (patch)
treec8032c1193080cbb84a55045bb2004c1098242d2
parent2a77e3e22282c105f53a17dcd73771bbe222a822 (diff)
downloademacs-6faf982a0e21895e1a3aa682a5cecd74b609a30d.tar.gz
emacs-6faf982a0e21895e1a3aa682a5cecd74b609a30d.zip
* doc/emacs/killing.texi (CUA Bindings): Document the new relationship between
cua-mode and delete-selection mode. (CUA Bindings): Mention that rectangle mode can be used on its own. * doc/emacs/programs.texi (Matching): Fix typo. * doc/lispref/minibuf.texi (Completion Commands): Don't document obsolete `common-substring' arg of display-completion-list.
-rw-r--r--doc/emacs/ChangeLog8
-rw-r--r--doc/emacs/killing.texi8
-rw-r--r--doc/emacs/programs.texi2
-rw-r--r--doc/lispref/minibuf.texi12
-rw-r--r--etc/NEWS12
5 files changed, 28 insertions, 14 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 0e919e97b9b..e2947083ba1 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,11 @@
12014-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * programs.texi (Matching): Fix typo.
4
5 * killing.texi (CUA Bindings): Document the new relationship between
6 cua-mode and delete-selection mode.
7 (CUA Bindings): Mention that rectangle mode can be used on its own.
8
12014-02-14 Glenn Morris <rgm@gnu.org> 92014-02-14 Glenn Morris <rgm@gnu.org>
2 10
3 * regs.texi (Configuration Registers): Update C-x r f binding. 11 * regs.texi (Configuration Registers): Update C-x r f binding.
diff --git a/doc/emacs/killing.texi b/doc/emacs/killing.texi
index 77dfad04bef..1826c668aa5 100644
--- a/doc/emacs/killing.texi
+++ b/doc/emacs/killing.texi
@@ -866,8 +866,9 @@ the prefix key twice, e.g., @kbd{C-x C-x C-f}.
866while retaining the other features of CUA mode described below, set 866while retaining the other features of CUA mode described below, set
867the variable @code{cua-enable-cua-keys} to @code{nil}. 867the variable @code{cua-enable-cua-keys} to @code{nil}.
868 868
869 In CUA mode, typed text replaces the active region as in 869 CUA mode by default activates Delete-Selection mode (@pxref{Mouse Commands})
870Delete-Selection mode (@pxref{Mouse Commands}). 870so that typed text replaces the active region. To use CUA without this
871behavior, set the variable @code{cua-delete-selection} to @code{nil}.
871 872
872@cindex rectangle highlighting 873@cindex rectangle highlighting
873 CUA mode provides enhanced rectangle support with visible 874 CUA mode provides enhanced rectangle support with visible
@@ -878,6 +879,9 @@ extend it using the movement commands, and cut or copy it using
878any direction. Normal text you type is inserted to the left or right 879any direction. Normal text you type is inserted to the left or right
879of each line in the rectangle (on the same side as the cursor). 880of each line in the rectangle (on the same side as the cursor).
880 881
882 You can use this rectangle support without activating CUA by calling the
883@code{cua-rectangle-mark-mode} command.
884
881 With CUA you can easily copy text and rectangles into and out of 885 With CUA you can easily copy text and rectangles into and out of
882registers by providing a one-digit numeric prefix to the kill, copy, 886registers by providing a one-digit numeric prefix to the kill, copy,
883and yank commands, e.g., @kbd{C-1 C-c} copies the region into register 887and yank commands, e.g., @kbd{C-1 C-c} copies the region into register
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi
index 23d1f9fa20e..26e9539d750 100644
--- a/doc/emacs/programs.texi
+++ b/doc/emacs/programs.texi
@@ -867,7 +867,7 @@ makes inserting inserting a newline between two adjacent pairs also
867automatically open and extra newline after point. 867automatically open and extra newline after point.
868 868
869@item 869@item
870@code{electric-skip-whitespace}, when non-@code{nil}, causes the minor 870@code{electric-pair-skip-whitespace}, when non-@code{nil}, causes the minor
871mode to skip whitespace forward before deciding whether to skip over 871mode to skip whitespace forward before deciding whether to skip over
872the closing delimiter. 872the closing delimiter.
873@end itemize 873@end itemize
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index 63e9e2bbc23..d618912de8a 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -1142,7 +1142,7 @@ The list of completions is displayed as text in a buffer named
1142@file{*Completions*}. 1142@file{*Completions*}.
1143@end deffn 1143@end deffn
1144 1144
1145@defun display-completion-list completions &optional common-substring 1145@defun display-completion-list completions
1146This function displays @var{completions} to the stream in 1146This function displays @var{completions} to the stream in
1147@code{standard-output}, usually a buffer. (@xref{Read and Print}, for more 1147@code{standard-output}, usually a buffer. (@xref{Read and Print}, for more
1148information about streams.) The argument @var{completions} is normally 1148information about streams.) The argument @var{completions} is normally
@@ -1153,13 +1153,6 @@ which is printed as if the strings were concatenated. The first of
1153the two strings is the actual completion, the second string serves as 1153the two strings is the actual completion, the second string serves as
1154annotation. 1154annotation.
1155 1155
1156The argument @var{common-substring} is the prefix that is common to
1157all the completions. With normal Emacs completion, it is usually the
1158same as the string that was completed. @code{display-completion-list}
1159uses this to highlight text in the completion list for better visual
1160feedback. This is not needed in the minibuffer; for minibuffer
1161completion, you can pass @code{nil}.
1162
1163This function is called by @code{minibuffer-completion-help}. A 1156This function is called by @code{minibuffer-completion-help}. A
1164common way to use it is together with 1157common way to use it is together with
1165@code{with-output-to-temp-buffer}, like this: 1158@code{with-output-to-temp-buffer}, like this:
@@ -1167,8 +1160,7 @@ common way to use it is together with
1167@example 1160@example
1168(with-output-to-temp-buffer "*Completions*" 1161(with-output-to-temp-buffer "*Completions*"
1169 (display-completion-list 1162 (display-completion-list
1170 (all-completions (buffer-string) my-alist) 1163 (all-completions (buffer-string) my-alist)))
1171 (buffer-string)))
1172@end example 1164@end example
1173@end defun 1165@end defun
1174 1166
diff --git a/etc/NEWS b/etc/NEWS
index 278bc7fd003..495f119443a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -159,6 +159,7 @@ non-nil, they output the same results.
159+++ 159+++
160*** The key `?' now describes prefix bindings, like `C-h'. 160*** The key `?' now describes prefix bindings, like `C-h'.
161 161
162---
162*** The command `describe-function' has been extended for EIEIO. 163*** The command `describe-function' has been extended for EIEIO.
163Running it on constructors will show a full description of the 164Running it on constructors will show a full description of the
164generated class. For generic functions, it will show all 165generated class. For generic functions, it will show all
@@ -244,6 +245,7 @@ There is no reason to set this to nil except for debugging purposes.
244This unfinished feature was introduced by accident in Emacs 23.1; 245This unfinished feature was introduced by accident in Emacs 23.1;
245simply disabling Transient Mark mode does the same thing. 246simply disabling Transient Mark mode does the same thing.
246 247
248---
247** The default value of `comment-use-global-state' is now t, 249** The default value of `comment-use-global-state' is now t,
248and this variable has been marked obsolete. 250and this variable has been marked obsolete.
249 251
@@ -438,6 +440,7 @@ This executes statements while allowing for control transfer to labels.
438 440
439** CUA mode 441** CUA mode
440 442
443+++
441*** CUA mode now uses `delete-selection-mode' and `shift-select-mode'. 444*** CUA mode now uses `delete-selection-mode' and `shift-select-mode'.
442Hence, you can now enable it independently from those modes, and from 445Hence, you can now enable it independently from those modes, and from
443`transient-mark-mode'. 446`transient-mark-mode'.
@@ -446,7 +449,9 @@ Hence, you can now enable it independently from those modes, and from
446*** `cua-highlight-region-shift-only' is now obsolete. 449*** `cua-highlight-region-shift-only' is now obsolete.
447You can disable `transient-mark-mode' to get the same result. 450You can disable `transient-mark-mode' to get the same result.
448 451
449*** CUA's rectangles can now be used via `cua-rectangle-mark-mode'. 452+++
453*** CUA's rectangles can now be used without CUA by calling the command
454`cua-rectangle-mark-mode'.
450 455
451** CFEngine mode 456** CFEngine mode
452 457
@@ -482,6 +487,7 @@ The results display in the mode line.
482 487
483** Electric Pair mode 488** Electric Pair mode
484 489
490+++
485*** New option `electric-pair-preserve-balance', enabled by default. 491*** New option `electric-pair-preserve-balance', enabled by default.
486If non-nil, pairing/skipping only kicks in when that help the balance 492If non-nil, pairing/skipping only kicks in when that help the balance
487of parentheses and quotes, i.e. the buffer should end up at least as 493of parentheses and quotes, i.e. the buffer should end up at least as
@@ -490,21 +496,25 @@ balanced as before.
490You can further control this behavior by adjusting the predicates 496You can further control this behavior by adjusting the predicates
491stored in `electric-pair-inhibit-predicate' and `electric-pair-skip-self'. 497stored in `electric-pair-inhibit-predicate' and `electric-pair-skip-self'.
492 498
499+++
493*** New option `electric-pair-delete-adjacent-pairs', enabled by default. 500*** New option `electric-pair-delete-adjacent-pairs', enabled by default.
494In `electric-pair-mode', the commands `backward-delete-char' and 501In `electric-pair-mode', the commands `backward-delete-char' and
495`backward-delete-char-untabify' are now bound to electric variants 502`backward-delete-char-untabify' are now bound to electric variants
496that delete the closer when invoked between adjacent pairs. 503that delete the closer when invoked between adjacent pairs.
497 504
505+++
498*** New option `electric-pair-open-newline-between-pairs', enabled by default. 506*** New option `electric-pair-open-newline-between-pairs', enabled by default.
499In `electric-pair-mode', inserting a newline between adjacent pairs 507In `electric-pair-mode', inserting a newline between adjacent pairs
500opens an extra newline after point, which is indented if 508opens an extra newline after point, which is indented if
501`electric-indent-mode' is also set. 509`electric-indent-mode' is also set.
502 510
511+++
503*** New option `electric-pair-skip-whitespace', enabled by default. 512*** New option `electric-pair-skip-whitespace', enabled by default.
504This controls if skipping over closing delimiters should jump over any 513This controls if skipping over closing delimiters should jump over any
505whitespace slack. Setting it to `chomp' makes it delete this 514whitespace slack. Setting it to `chomp' makes it delete this
506whitespace. See also the variable `electric-pair-skip-whitespace-chars'. 515whitespace. See also the variable `electric-pair-skip-whitespace-chars'.
507 516
517---
508*** New variables control the pairing in strings and comments. 518*** New variables control the pairing in strings and comments.
509You can customize `electric-pair-text-pairs' and 519You can customize `electric-pair-text-pairs' and
510`electric-pair-text-syntax-table' to tweak pairing behavior inside 520`electric-pair-text-syntax-table' to tweak pairing behavior inside