aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/display.texi48
-rw-r--r--doc/lispref/elisp.texi1
-rw-r--r--doc/lispref/vol1.texi1
-rw-r--r--doc/lispref/vol2.texi1
-rw-r--r--doc/misc/ChangeLog12
-rw-r--r--doc/misc/gnus-faq.texi11
-rw-r--r--doc/misc/gnus.texi8
-rw-r--r--doc/misc/message.texi16
-rw-r--r--doc/misc/nxml-mode.texi71
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/subr.el7
-rw-r--r--src/ChangeLog4
-rw-r--r--src/keyboard.c2
15 files changed, 130 insertions, 64 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 9a0730d82a7..0d2ac33f4c8 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12012-04-04 Chong Yidong <cyd@gnu.org>
2
3 * display.texi (Delayed Warnings): New node.
4
12012-04-04 Glenn Morris <rgm@gnu.org> 52012-04-04 Glenn Morris <rgm@gnu.org>
2 6
3 * os.texi (Notifications): Copyedits. 7 * os.texi (Notifications): Copyedits.
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 12b30dc599c..8382c2a1555 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -572,6 +572,7 @@ possible problem, but continue running.
572* Warning Basics:: Warnings concepts and functions to report them. 572* Warning Basics:: Warnings concepts and functions to report them.
573* Warning Variables:: Variables programs bind to customize their warnings. 573* Warning Variables:: Variables programs bind to customize their warnings.
574* Warning Options:: Variables users set to control display of warnings. 574* Warning Options:: Variables users set to control display of warnings.
575* Delayed Warnings:: Deferring a warning until the end of a command.
575@end menu 576@end menu
576 577
577@node Warning Basics 578@node Warning Basics
@@ -750,6 +751,53 @@ symbols. If it matches the first few elements in a warning type, then
750that warning is not logged. 751that warning is not logged.
751@end defopt 752@end defopt
752 753
754@node Delayed Warnings
755@subsection Delayed Warnings
756
757Sometimes, you may wish to avoid showing a warning while a command is
758running, and only show it only after the end of the command. You can
759use the variable @code{delayed-warnings-list} for this.
760
761@defvar delayed-warnings-list
762The value of this variable is a list of warnings to be displayed after
763the current command has finished. Each element must be a list
764
765@smallexample
766(@var{type} @var{message} [@var{level} [@var{buffer-name}]])
767@end smallexample
768
769@noindent
770with the same form, and the same meanings, as the argument list of
771@code{display-warning} (@pxref{Warning Basics}). Immediately after
772running @code{post-command-hook} (@pxref{Command Overview}), the Emacs
773command loop displays all the warnings specified by this variable,
774then resets it to @code{nil}.
775@end defvar
776
777 Programs which need to further customize the delayed warnings
778mechanism can change the variable @code{delayed-warnings-hook}:
779
780@defvar delayed-warnings-hook
781This is a normal hook which is run by the Emacs command loop, after
782@code{post-command-hook}, in order to to process and display delayed
783warnings.
784
785Its default value is a list of two functions:
786
787@smallexample
788(collapse-delayed-warnings display-delayed-warnings)
789@end smallexample
790
791@findex collapse-delayed-warnings
792@findex display-delayed-warnings
793@noindent
794The function @code{collapse-delayed-warnings} iterates through
795@code{delayed-warnings-list}, removing repeated entries. The function
796@code{display-delayed-warnings} calls @code{display-warning} on each
797of the entries in @code{delayed-warnings-list}, in turn, and then sets
798@code{delayed-warnings-list} to @code{nil}.
799@end defvar
800
753@node Invisible Text 801@node Invisible Text
754@section Invisible Text 802@section Invisible Text
755 803
diff --git a/doc/lispref/elisp.texi b/doc/lispref/elisp.texi
index 22fc5fac0f0..508b0251a7a 100644
--- a/doc/lispref/elisp.texi
+++ b/doc/lispref/elisp.texi
@@ -1284,6 +1284,7 @@ Reporting Warnings
1284* Warning Variables:: Variables programs bind to customize 1284* Warning Variables:: Variables programs bind to customize
1285 their warnings. 1285 their warnings.
1286* Warning Options:: Variables users set to control display of warnings. 1286* Warning Options:: Variables users set to control display of warnings.
1287* Delayed Warnings:: Deferring a warning until the end of a command.
1287 1288
1288Overlays 1289Overlays
1289 1290
diff --git a/doc/lispref/vol1.texi b/doc/lispref/vol1.texi
index a4af27cf279..52681510a51 100644
--- a/doc/lispref/vol1.texi
+++ b/doc/lispref/vol1.texi
@@ -1306,6 +1306,7 @@ Reporting Warnings
1306* Warning Variables:: Variables programs bind to customize 1306* Warning Variables:: Variables programs bind to customize
1307 their warnings. 1307 their warnings.
1308* Warning Options:: Variables users set to control display of warnings. 1308* Warning Options:: Variables users set to control display of warnings.
1309* Delayed Warnings:: Deferring warning display until the end of a command.
1309 1310
1310Overlays 1311Overlays
1311 1312
diff --git a/doc/lispref/vol2.texi b/doc/lispref/vol2.texi
index af4e455788d..3be2628f5e1 100644
--- a/doc/lispref/vol2.texi
+++ b/doc/lispref/vol2.texi
@@ -1305,6 +1305,7 @@ Reporting Warnings
1305* Warning Variables:: Variables programs bind to customize 1305* Warning Variables:: Variables programs bind to customize
1306 their warnings. 1306 their warnings.
1307* Warning Options:: Variables users set to control display of warnings. 1307* Warning Options:: Variables users set to control display of warnings.
1308* Delayed Warnings:: Deferring a warning until the end of a command.
1308 1309
1309Overlays 1310Overlays
1310 1311
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 6c8a9d29c2e..b7b981d8653 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,15 @@
12012-04-04 Chong Yidong <cyd@gnu.org>
2
3 * message.texi (Using PGP/MIME): Note that epg is now the default.
4
5 * gnus.texi: Reduce references to obsolete pgg library.
6 (Security): Note that epg is now the default.
7
8 * gnus-faq.texi (FAQ 8-2): Mention EasyPG.
9
10 * nxml-mode.texi (Completion): C-RET is no longer bound to
11 nxml-complete.
12
12012-04-01 Jambunathan K <kjambunathan@gmail.com> 132012-04-01 Jambunathan K <kjambunathan@gmail.com>
2 14
3 * org.texi (Customizing tables in ODT export): Correct few errors. 15 * org.texi (Customizing tables in ODT export): Correct few errors.
diff --git a/doc/misc/gnus-faq.texi b/doc/misc/gnus-faq.texi
index 9d075a8efac..0c8c8505e27 100644
--- a/doc/misc/gnus-faq.texi
+++ b/doc/misc/gnus-faq.texi
@@ -2109,12 +2109,11 @@ I can't find anything in the Gnus manual about X
2109 2109
2110@subsubheading Answer 2110@subsubheading Answer
2111 2111
2112There's not only the Gnus manual but also the manuals 2112There's not only the Gnus manual but also the manuals for message,
2113for message, emacs-mime, sieve and pgg. Those packages 2113emacs-mime, sieve, EasyPG Assistant, and pgg. Those packages are
2114are distributed with Gnus and used by Gnus but aren't 2114distributed with Gnus and used by Gnus but aren't really part of core
2115really part of core Gnus, so they are documented in 2115Gnus, so they are documented in different info files, you should have
2116different info files, you should have a look in those 2116a look in those manuals, too.
2117manuals, too.
2118 2117
2119@node FAQ 8-3 2118@node FAQ 8-3
2120@subsubheading Question 8.3 2119@subsubheading Question 8.3
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 9e440be6585..b0839906df5 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -399,7 +399,7 @@ This manual corresponds to Gnus v5.13
399@item Message manual: Composing messages 399@item Message manual: Composing messages
400@item Emacs-MIME: Composing messages; @acronym{MIME}-specific parts. 400@item Emacs-MIME: Composing messages; @acronym{MIME}-specific parts.
401@item Sieve: Managing Sieve scripts in Emacs. 401@item Sieve: Managing Sieve scripts in Emacs.
402@item PGG: @acronym{PGP/MIME} with Gnus. 402@item EasyPG: @acronym{PGP/MIME} with Gnus.
403@item SASL: @acronym{SASL} authentication in Emacs. 403@item SASL: @acronym{SASL} authentication in Emacs.
404@end itemize 404@end itemize
405 405
@@ -426,7 +426,7 @@ Other related manuals
426* Message:(message). Composing messages. 426* Message:(message). Composing messages.
427* Emacs-MIME:(emacs-mime). Composing messages; @acronym{MIME}-specific parts. 427* Emacs-MIME:(emacs-mime). Composing messages; @acronym{MIME}-specific parts.
428* Sieve:(sieve). Managing Sieve scripts in Emacs. 428* Sieve:(sieve). Managing Sieve scripts in Emacs.
429* PGG:(pgg). @acronym{PGP/MIME} with Gnus. 429* EasyPG:(epa). @acronym{PGP/MIME} with Gnus.
430* SASL:(sasl). @acronym{SASL} authentication in Emacs. 430* SASL:(sasl). @acronym{SASL} authentication in Emacs.
431 431
432@detailmenu 432@detailmenu
@@ -22146,8 +22146,8 @@ to you, using @kbd{G b u} and updating the group will usually fix this.
22146@include emacs-mime.texi 22146@include emacs-mime.texi
22147@chapter Sieve 22147@chapter Sieve
22148@include sieve.texi 22148@include sieve.texi
22149@chapter PGG 22149@chapter EasyPG
22150@include pgg.texi 22150@include epa.texi
22151@chapter SASL 22151@chapter SASL
22152@include sasl.texi 22152@include sasl.texi
22153@end iflatex 22153@end iflatex
diff --git a/doc/misc/message.texi b/doc/misc/message.texi
index 7ed5f6a92a5..ac5811a0ce8 100644
--- a/doc/misc/message.texi
+++ b/doc/misc/message.texi
@@ -1101,10 +1101,11 @@ the passphrase prompt.
1101 1101
1102@acronym{PGP/MIME} requires an external OpenPGP implementation, such 1102@acronym{PGP/MIME} requires an external OpenPGP implementation, such
1103as @uref{http://www.gnupg.org/, GNU Privacy Guard}. Pre-OpenPGP 1103as @uref{http://www.gnupg.org/, GNU Privacy Guard}. Pre-OpenPGP
1104implementations such as PGP 2.x and PGP 5.x are also supported. One 1104implementations such as PGP 2.x and PGP 5.x are also supported. The
1105Emacs interface to the PGP implementations, PGG (@pxref{Top, ,PGG, 1105default Emacs interface to the PGP implementation is EasyPG
1106pgg, PGG Manual}), is included, but Mailcrypt is also supported. 1106(@pxref{Top,,EasyPG Assistant User's Manual, epa, EasyPG Assistant
1107@xref{PGP Compatibility}. 1107User's Manual}), but PGG (@pxref{Top, ,PGG, pgg, PGG Manual}) and
1108Mailcrypt are also supported. @xref{PGP Compatibility}.
1108 1109
1109@cindex gpg-agent 1110@cindex gpg-agent
1110Message internally calls GnuPG (the @command{gpg} command) to perform 1111Message internally calls GnuPG (the @command{gpg} command) to perform
@@ -1139,11 +1140,6 @@ does the trick.
1139gpg --use-agent --sign < /dev/null > /dev/null 1140gpg --use-agent --sign < /dev/null > /dev/null
1140@end example 1141@end example
1141 1142
1142The Lisp variable @code{pgg-gpg-use-agent} controls whether to use
1143@command{gpg-agent}. See also @xref{Caching passphrase, , , pgg, The
1144PGG Manual}.
1145
1146
1147@node PGP Compatibility 1143@node PGP Compatibility
1148@subsection Compatibility with older implementations 1144@subsection Compatibility with older implementations
1149 1145
@@ -1158,7 +1154,7 @@ your PGP implementation, so we refer to it.
1158If you have imported your old PGP 2.x key into GnuPG, and want to send 1154If you have imported your old PGP 2.x key into GnuPG, and want to send
1159signed and encrypted messages to your fellow PGP 2.x users, you'll 1155signed and encrypted messages to your fellow PGP 2.x users, you'll
1160discover that the receiver cannot understand what you send. One 1156discover that the receiver cannot understand what you send. One
1161solution is to use PGP 2.x instead (i.e., if you use @code{pgg}, set 1157solution is to use PGP 2.x instead (e.g.@: if you use @code{pgg}, set
1162@code{pgg-default-scheme} to @code{pgp}). You could also convince your 1158@code{pgg-default-scheme} to @code{pgp}). You could also convince your
1163fellow PGP 2.x users to convert to GnuPG. 1159fellow PGP 2.x users to convert to GnuPG.
1164@vindex mml-signencrypt-style-alist 1160@vindex mml-signencrypt-style-alist
diff --git a/doc/misc/nxml-mode.texi b/doc/misc/nxml-mode.texi
index 73af1ace245..c8d159e2363 100644
--- a/doc/misc/nxml-mode.texi
+++ b/doc/misc/nxml-mode.texi
@@ -5,7 +5,7 @@
5@c %**end of header 5@c %**end of header
6 6
7@copying 7@copying
8This manual documents nxml-mode, an Emacs major mode for editing 8This manual documents nXML mode, an Emacs major mode for editing
9XML with RELAX NG support. 9XML with RELAX NG support.
10 10
11Copyright @copyright{} 2007-2012 Free Software Foundation, Inc. 11Copyright @copyright{} 2007-2012 Free Software Foundation, Inc.
@@ -108,31 +108,25 @@ lists. Report any bugs with @kbd{M-x report-emacs-bug}.
108@node Completion 108@node Completion
109@chapter Completion 109@chapter Completion
110 110
111Apart from real-time validation, the most important feature that 111Apart from real-time validation, the most important feature that nXML
112nxml-mode provides for assisting in document creation is "completion". 112mode provides for assisting in document creation is "completion".
113Completion assists the user in inserting characters at point, based on 113Completion assists the user in inserting characters at point, based on
114knowledge of the schema and on the contents of the buffer before 114knowledge of the schema and on the contents of the buffer before
115point. 115point.
116 116
117The traditional GNU Emacs key combination for completion in a 117nXML mode adapts the standard GNU Emacs command for completion in a
118buffer is @kbd{M-@key{TAB}}. However, many window systems 118buffer: @code{completion-at-point}, which is bound to @kbd{C-M-i} and
119and window managers use this key combination themselves (typically for 119@kbd{M-@key{TAB}}. Note that many window systems and window managers
120switching between windows) and do not pass it to applications. It's 120use @kbd{M-@key{TAB}} themselves (typically for switching between
121hard to find key combinations in GNU Emacs that are both easy to type 121windows) and do not pass it to applications. In that case, you should
122and not taken by something else. @kbd{C-@key{RET}} (i.e. 122type @kbd{C-M-i} or @kbd{@key{ESC} @key{TAB}} for completion, or bind
123pressing the Enter or Return key, while the Ctrl key is held down) is 123@code{completion-at-point} to a key that is convenient for you. In
124available. It won't be available on a traditional terminal (because 124the following, I will assume that you type @kbd{C-M-i}.
125it is indistinguishable from Return), but it will work with a window 125
126system. Therefore we adopt the following solution by default: use 126nXML mode completion works by examining the symbol preceding point.
127@kbd{C-@key{RET}} when there's a window system and 127This is the symbol to be completed. The symbol to be completed may be
128@kbd{M-@key{TAB}} when there's not. In the following, I 128the empty. Completion considers what symbols starting with the symbol
129will assume that a window system is being used and will therefore 129to be completed would be valid replacements for the symbol to be
130refer to @kbd{C-@key{RET}}.
131
132Completion works by examining the symbol preceding point. This
133is the symbol to be completed. The symbol to be completed may be the
134empty. Completion considers what symbols starting with the symbol to
135be completed would be valid replacements for the symbol to be
136completed, given the schema and the contents of the buffer before 130completed, given the schema and the contents of the buffer before
137point. These symbols are the possible completions. An example may 131point. These symbols are the possible completions. An example may
138make this clearer. Suppose the buffer looks like this (where @point{} 132make this clearer. Suppose the buffer looks like this (where @point{}
@@ -168,7 +162,7 @@ completions are @samp{base}, @samp{isindex},
168In this case, the symbol to be completed is empty, and the possible 162In this case, the symbol to be completed is empty, and the possible
169completions are just @samp{http://www.w3.org/1999/xhtml}. 163completions are just @samp{http://www.w3.org/1999/xhtml}.
170 164
171When you type @kbd{C-@key{RET}}, what happens depends 165When you type @kbd{C-M-i}, what happens depends
172on what the set of possible completions are. 166on what the set of possible completions are.
173 167
174@itemize @bullet 168@itemize @bullet
@@ -186,7 +180,7 @@ required. For example, in this case:
186@end example 180@end example
187 181
188@noindent 182@noindent
189@kbd{C-@key{RET}} will yield 183@kbd{C-M-i} will yield
190 184
191@example 185@example
192<html xmlns="http://www.w3.org/1999/xhtml"> 186<html xmlns="http://www.w3.org/1999/xhtml">
@@ -202,18 +196,17 @@ is inserted. For example, suppose the buffer is:
202@end example 196@end example
203 197
204@noindent 198@noindent
205The symbol to be completed is @samp{x}. The possible completions 199The symbol to be completed is @samp{x}. The possible completions are
206are @samp{xmlns} and @samp{xml:lang}. These share a 200@samp{xmlns} and @samp{xml:lang}. These share a common prefix of
207common prefix of @samp{xml}. Thus, @kbd{C-@key{RET}} 201@samp{xml}. Thus, @kbd{C-M-i} will yield:
208will yield:
209 202
210@example 203@example
211<html xml@point{} 204<html xml@point{}
212@end example 205@end example
213 206
214@noindent 207@noindent
215Typically, you would do @kbd{C-@key{RET}} again, which would 208Typically, you would do @kbd{C-M-i} again, which would have the result
216have the result described in the next item. 209described in the next item.
217@item 210@item
218If there is more than one possible completion, but the 211If there is more than one possible completion, but the
219possible completions do not share a non-empty prefix, then Emacs will 212possible completions do not share a non-empty prefix, then Emacs will
@@ -251,19 +244,19 @@ If you input @kbd{xmlns}, the result will be:
251@end example 244@end example
252 245
253@noindent 246@noindent
254(If you do @kbd{C-@key{RET}} again, the namespace URI will 247(If you do @kbd{C-M-i} again, the namespace URI will be
255be inserted. Should that happen automatically?) 248inserted. Should that happen automatically?)
256@end itemize 249@end itemize
257 250
258@node Inserting end-tags 251@node Inserting end-tags
259@chapter Inserting end-tags 252@chapter Inserting end-tags
260 253
261The main redundancy in XML syntax is end-tags. nxml-mode provides 254The main redundancy in XML syntax is end-tags. nXML mode provides
262several ways to make it easier to enter end-tags. You can use all of 255several ways to make it easier to enter end-tags. You can use all of
263these without a schema. 256these without a schema.
264 257
265You can use @kbd{C-@key{RET}} after @samp{</} 258You can use @kbd{C-M-i} after @samp{</} to complete the rest of the
266to complete the rest of the end-tag. 259end-tag.
267 260
268@kbd{C-c C-f} inserts an end-tag for the element containing 261@kbd{C-c C-f} inserts an end-tag for the element containing
269point. This command is useful when you want to input the start-tag, 262point. This command is useful when you want to input the start-tag,
@@ -279,9 +272,9 @@ start-tag, point and the end-tag on successive lines, appropriately
279indented. The @samp{i} is mnemonic for inline and the 272indented. The @samp{i} is mnemonic for inline and the
280@samp{b} is mnemonic for block. 273@samp{b} is mnemonic for block.
281 274
282Finally, you can customize nxml-mode so that @kbd{/} 275Finally, you can customize nXML mode so that @kbd{/} automatically
283automatically inserts the rest of the end-tag when it occurs after 276inserts the rest of the end-tag when it occurs after @samp{<}, by
284@samp{<}, by doing 277doing
285 278
286@display 279@display
287@kbd{M-x customize-variable @key{RET} nxml-slash-auto-complete-flag @key{RET}} 280@kbd{M-x customize-variable @key{RET} nxml-slash-auto-complete-flag @key{RET}}
@@ -868,7 +861,7 @@ an @samp{applyFollowingRules} to the private file.
868@node DTDs 861@node DTDs
869@chapter DTDs 862@chapter DTDs
870 863
871nxml-mode is designed to support the creation of standalone XML 864nXML mode is designed to support the creation of standalone XML
872documents that do not depend on a DTD. Although it is common practice 865documents that do not depend on a DTD. Although it is common practice
873to insert a DOCTYPE declaration referencing an external DTD, this has 866to insert a DOCTYPE declaration referencing an external DTD, this has
874undesirable side-effects. It means that the document is no longer 867undesirable side-effects. It means that the document is no longer
diff --git a/etc/NEWS b/etc/NEWS
index 8d98976275d..b9c6ff59ea6 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -740,6 +740,7 @@ See MH-E-NEWS for details.
740--- 740---
741** mpc.el: Can use pseudo tags of the form tag1|tag2 as a union of two tags. 741** mpc.el: Can use pseudo tags of the form tag1|tag2 as a union of two tags.
742 742
743+++
743** nXML mode no longer binds C-RET to `nxml-complete'. 744** nXML mode no longer binds C-RET to `nxml-complete'.
744Completion is now performed via `completion-at-point', bound to M-TAB. 745Completion is now performed via `completion-at-point', bound to M-TAB.
745If `nxml-bind-meta-tab-to-complete-flag' is non-nil (the default), 746If `nxml-bind-meta-tab-to-complete-flag' is non-nil (the default),
@@ -940,6 +941,7 @@ You can get a comparable behavior with:
940--- 941---
941*** pc-mode.el is obsolete (CUA mode is much more comprehensive). 942*** pc-mode.el is obsolete (CUA mode is much more comprehensive).
942 943
944+++
943*** pgg is obsolete (use EasyPG instead) 945*** pgg is obsolete (use EasyPG instead)
944 946
945--- 947---
@@ -1562,7 +1564,7 @@ displayed with a "spinning bar".
1562** New variable `revert-buffer-in-progress-p' is true while a buffer is 1564** New variable `revert-buffer-in-progress-p' is true while a buffer is
1563being reverted, even if the buffer has a local `revert-buffer-function'. 1565being reverted, even if the buffer has a local `revert-buffer-function'.
1564 1566
1565--- 1567+++
1566** New variables `delayed-warnings-list' and `delayed-warnings-hook'. 1568** New variables `delayed-warnings-list' and `delayed-warnings-hook'.
1567If delayed-warnings-list is non-nil, the command loop calls 1569If delayed-warnings-list is non-nil, the command loop calls
1568`delayed-warnings-hook' after `post-command-hook'. At present, this 1570`delayed-warnings-hook' after `post-command-hook'. At present, this
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4e59dd65b2d..32bdd8630ca 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12012-04-04 Chong Yidong <cyd@gnu.org>
2
3 * subr.el (delayed-warnings-hook): Doc fix.
4
12012-04-04 Daiki Ueno <ueno@unixuser.org> 52012-04-04 Daiki Ueno <ueno@unixuser.org>
2 6
3 * epa.el (epa--select-keys): Bind C-c C-c to finish the key 7 * epa.el (epa--select-keys): Bind C-c C-c to finish the key
diff --git a/lisp/subr.el b/lisp/subr.el
index 514827f9615..497809a23e8 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1893,9 +1893,10 @@ Used from `delayed-warnings-hook' (which see)."
1893;; Ref http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00085.html 1893;; Ref http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00085.html
1894(defvar delayed-warnings-hook '(collapse-delayed-warnings 1894(defvar delayed-warnings-hook '(collapse-delayed-warnings
1895 display-delayed-warnings) 1895 display-delayed-warnings)
1896 "Normal hook run to process delayed warnings. 1896 "Normal hook run to process and display delayed warnings.
1897Functions in this hook should access the `delayed-warnings-list' 1897By default, this hook contains functions to consolidate the
1898variable (which see) and remove from it the warnings they process.") 1898warnings listed in `delayed-warnings-list', display them, and set
1899`delayed-warnings-list' back to nil.")
1899 1900
1900 1901
1901;;;; Process stuff. 1902;;;; Process stuff.
diff --git a/src/ChangeLog b/src/ChangeLog
index ea80129ff16..ea770969818 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12012-04-04 Chong Yidong <cyd@gnu.org>
2
3 * keyboard.c (Vdelayed_warnings_list): Doc fix.
4
12012-04-01 Eli Zaretskii <eliz@gnu.org> 52012-04-01 Eli Zaretskii <eliz@gnu.org>
2 6
3 * w32menu.c (simple_dialog_show, add_menu_item): Use SAFE_ALLOCA 7 * w32menu.c (simple_dialog_show, add_menu_item): Use SAFE_ALLOCA
diff --git a/src/keyboard.c b/src/keyboard.c
index 79223116b2f..50b2ade8ee4 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -12168,7 +12168,7 @@ whenever `deferred-action-list' is non-nil. */);
12168 Vdeferred_action_function = Qnil; 12168 Vdeferred_action_function = Qnil;
12169 12169
12170 DEFVAR_LISP ("delayed-warnings-list", Vdelayed_warnings_list, 12170 DEFVAR_LISP ("delayed-warnings-list", Vdelayed_warnings_list,
12171 doc: /* List of warnings to be displayed as soon as possible. 12171 doc: /* List of warnings to be displayed after this command.
12172Each element must be a list (TYPE MESSAGE [LEVEL [BUFFER-NAME]]), 12172Each element must be a list (TYPE MESSAGE [LEVEL [BUFFER-NAME]]),
12173as per the args of `display-warning' (which see). 12173as per the args of `display-warning' (which see).
12174If this variable is non-nil, `delayed-warnings-hook' will be run 12174If this variable is non-nil, `delayed-warnings-hook' will be run