diff options
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 48 | ||||
| -rw-r--r-- | doc/lispref/elisp.texi | 1 | ||||
| -rw-r--r-- | doc/lispref/vol1.texi | 1 | ||||
| -rw-r--r-- | doc/lispref/vol2.texi | 1 | ||||
| -rw-r--r-- | doc/misc/ChangeLog | 12 | ||||
| -rw-r--r-- | doc/misc/gnus-faq.texi | 11 | ||||
| -rw-r--r-- | doc/misc/gnus.texi | 8 | ||||
| -rw-r--r-- | doc/misc/message.texi | 16 | ||||
| -rw-r--r-- | doc/misc/nxml-mode.texi | 71 | ||||
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/subr.el | 7 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/keyboard.c | 2 |
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 @@ | |||
| 1 | 2012-04-04 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * display.texi (Delayed Warnings): New node. | ||
| 4 | |||
| 1 | 2012-04-04 Glenn Morris <rgm@gnu.org> | 5 | 2012-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 | |||
| 750 | that warning is not logged. | 751 | that warning is not logged. |
| 751 | @end defopt | 752 | @end defopt |
| 752 | 753 | ||
| 754 | @node Delayed Warnings | ||
| 755 | @subsection Delayed Warnings | ||
| 756 | |||
| 757 | Sometimes, you may wish to avoid showing a warning while a command is | ||
| 758 | running, and only show it only after the end of the command. You can | ||
| 759 | use the variable @code{delayed-warnings-list} for this. | ||
| 760 | |||
| 761 | @defvar delayed-warnings-list | ||
| 762 | The value of this variable is a list of warnings to be displayed after | ||
| 763 | the 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 | ||
| 770 | with the same form, and the same meanings, as the argument list of | ||
| 771 | @code{display-warning} (@pxref{Warning Basics}). Immediately after | ||
| 772 | running @code{post-command-hook} (@pxref{Command Overview}), the Emacs | ||
| 773 | command loop displays all the warnings specified by this variable, | ||
| 774 | then resets it to @code{nil}. | ||
| 775 | @end defvar | ||
| 776 | |||
| 777 | Programs which need to further customize the delayed warnings | ||
| 778 | mechanism can change the variable @code{delayed-warnings-hook}: | ||
| 779 | |||
| 780 | @defvar delayed-warnings-hook | ||
| 781 | This 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 | ||
| 783 | warnings. | ||
| 784 | |||
| 785 | Its 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 | ||
| 794 | The 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 | ||
| 797 | of 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 | ||
| 1288 | Overlays | 1289 | Overlays |
| 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 | ||
| 1310 | Overlays | 1311 | Overlays |
| 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 | ||
| 1309 | Overlays | 1310 | Overlays |
| 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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-04-01 Jambunathan K <kjambunathan@gmail.com> | 13 | 2012-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 | ||
| 2112 | There's not only the Gnus manual but also the manuals | 2112 | There's not only the Gnus manual but also the manuals for message, |
| 2113 | for message, emacs-mime, sieve and pgg. Those packages | 2113 | emacs-mime, sieve, EasyPG Assistant, and pgg. Those packages are |
| 2114 | are distributed with Gnus and used by Gnus but aren't | 2114 | distributed with Gnus and used by Gnus but aren't really part of core |
| 2115 | really part of core Gnus, so they are documented in | 2115 | Gnus, so they are documented in different info files, you should have |
| 2116 | different info files, you should have a look in those | 2116 | a look in those manuals, too. |
| 2117 | manuals, 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 |
| 1103 | as @uref{http://www.gnupg.org/, GNU Privacy Guard}. Pre-OpenPGP | 1103 | as @uref{http://www.gnupg.org/, GNU Privacy Guard}. Pre-OpenPGP |
| 1104 | implementations such as PGP 2.x and PGP 5.x are also supported. One | 1104 | implementations such as PGP 2.x and PGP 5.x are also supported. The |
| 1105 | Emacs interface to the PGP implementations, PGG (@pxref{Top, ,PGG, | 1105 | default Emacs interface to the PGP implementation is EasyPG |
| 1106 | pgg, PGG Manual}), is included, but Mailcrypt is also supported. | 1106 | (@pxref{Top,,EasyPG Assistant User's Manual, epa, EasyPG Assistant |
| 1107 | @xref{PGP Compatibility}. | 1107 | User's Manual}), but PGG (@pxref{Top, ,PGG, pgg, PGG Manual}) and |
| 1108 | Mailcrypt are also supported. @xref{PGP Compatibility}. | ||
| 1108 | 1109 | ||
| 1109 | @cindex gpg-agent | 1110 | @cindex gpg-agent |
| 1110 | Message internally calls GnuPG (the @command{gpg} command) to perform | 1111 | Message internally calls GnuPG (the @command{gpg} command) to perform |
| @@ -1139,11 +1140,6 @@ does the trick. | |||
| 1139 | gpg --use-agent --sign < /dev/null > /dev/null | 1140 | gpg --use-agent --sign < /dev/null > /dev/null |
| 1140 | @end example | 1141 | @end example |
| 1141 | 1142 | ||
| 1142 | The Lisp variable @code{pgg-gpg-use-agent} controls whether to use | ||
| 1143 | @command{gpg-agent}. See also @xref{Caching passphrase, , , pgg, The | ||
| 1144 | PGG 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. | |||
| 1158 | If you have imported your old PGP 2.x key into GnuPG, and want to send | 1154 | If you have imported your old PGP 2.x key into GnuPG, and want to send |
| 1159 | signed and encrypted messages to your fellow PGP 2.x users, you'll | 1155 | signed and encrypted messages to your fellow PGP 2.x users, you'll |
| 1160 | discover that the receiver cannot understand what you send. One | 1156 | discover that the receiver cannot understand what you send. One |
| 1161 | solution is to use PGP 2.x instead (i.e., if you use @code{pgg}, set | 1157 | solution 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 |
| 1163 | fellow PGP 2.x users to convert to GnuPG. | 1159 | fellow 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 |
| 8 | This manual documents nxml-mode, an Emacs major mode for editing | 8 | This manual documents nXML mode, an Emacs major mode for editing |
| 9 | XML with RELAX NG support. | 9 | XML with RELAX NG support. |
| 10 | 10 | ||
| 11 | Copyright @copyright{} 2007-2012 Free Software Foundation, Inc. | 11 | Copyright @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 | ||
| 111 | Apart from real-time validation, the most important feature that | 111 | Apart from real-time validation, the most important feature that nXML |
| 112 | nxml-mode provides for assisting in document creation is "completion". | 112 | mode provides for assisting in document creation is "completion". |
| 113 | Completion assists the user in inserting characters at point, based on | 113 | Completion assists the user in inserting characters at point, based on |
| 114 | knowledge of the schema and on the contents of the buffer before | 114 | knowledge of the schema and on the contents of the buffer before |
| 115 | point. | 115 | point. |
| 116 | 116 | ||
| 117 | The traditional GNU Emacs key combination for completion in a | 117 | nXML mode adapts the standard GNU Emacs command for completion in a |
| 118 | buffer is @kbd{M-@key{TAB}}. However, many window systems | 118 | buffer: @code{completion-at-point}, which is bound to @kbd{C-M-i} and |
| 119 | and window managers use this key combination themselves (typically for | 119 | @kbd{M-@key{TAB}}. Note that many window systems and window managers |
| 120 | switching between windows) and do not pass it to applications. It's | 120 | use @kbd{M-@key{TAB}} themselves (typically for switching between |
| 121 | hard to find key combinations in GNU Emacs that are both easy to type | 121 | windows) and do not pass it to applications. In that case, you should |
| 122 | and not taken by something else. @kbd{C-@key{RET}} (i.e. | 122 | type @kbd{C-M-i} or @kbd{@key{ESC} @key{TAB}} for completion, or bind |
| 123 | pressing 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 |
| 124 | available. It won't be available on a traditional terminal (because | 124 | the following, I will assume that you type @kbd{C-M-i}. |
| 125 | it is indistinguishable from Return), but it will work with a window | 125 | |
| 126 | system. Therefore we adopt the following solution by default: use | 126 | nXML mode completion works by examining the symbol preceding point. |
| 127 | @kbd{C-@key{RET}} when there's a window system and | 127 | This 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 | 128 | the empty. Completion considers what symbols starting with the symbol |
| 129 | will assume that a window system is being used and will therefore | 129 | to be completed would be valid replacements for the symbol to be |
| 130 | refer to @kbd{C-@key{RET}}. | ||
| 131 | |||
| 132 | Completion works by examining the symbol preceding point. This | ||
| 133 | is the symbol to be completed. The symbol to be completed may be the | ||
| 134 | empty. Completion considers what symbols starting with the symbol to | ||
| 135 | be completed would be valid replacements for the symbol to be | ||
| 136 | completed, given the schema and the contents of the buffer before | 130 | completed, given the schema and the contents of the buffer before |
| 137 | point. These symbols are the possible completions. An example may | 131 | point. These symbols are the possible completions. An example may |
| 138 | make this clearer. Suppose the buffer looks like this (where @point{} | 132 | make this clearer. Suppose the buffer looks like this (where @point{} |
| @@ -168,7 +162,7 @@ completions are @samp{base}, @samp{isindex}, | |||
| 168 | In this case, the symbol to be completed is empty, and the possible | 162 | In this case, the symbol to be completed is empty, and the possible |
| 169 | completions are just @samp{http://www.w3.org/1999/xhtml}. | 163 | completions are just @samp{http://www.w3.org/1999/xhtml}. |
| 170 | 164 | ||
| 171 | When you type @kbd{C-@key{RET}}, what happens depends | 165 | When you type @kbd{C-M-i}, what happens depends |
| 172 | on what the set of possible completions are. | 166 | on 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 |
| 205 | The symbol to be completed is @samp{x}. The possible completions | 199 | The symbol to be completed is @samp{x}. The possible completions are |
| 206 | are @samp{xmlns} and @samp{xml:lang}. These share a | 200 | @samp{xmlns} and @samp{xml:lang}. These share a common prefix of |
| 207 | common prefix of @samp{xml}. Thus, @kbd{C-@key{RET}} | 201 | @samp{xml}. Thus, @kbd{C-M-i} will yield: |
| 208 | will 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 |
| 215 | Typically, you would do @kbd{C-@key{RET}} again, which would | 208 | Typically, you would do @kbd{C-M-i} again, which would have the result |
| 216 | have the result described in the next item. | 209 | described in the next item. |
| 217 | @item | 210 | @item |
| 218 | If there is more than one possible completion, but the | 211 | If there is more than one possible completion, but the |
| 219 | possible completions do not share a non-empty prefix, then Emacs will | 212 | possible 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 |
| 255 | be inserted. Should that happen automatically?) | 248 | inserted. 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 | ||
| 261 | The main redundancy in XML syntax is end-tags. nxml-mode provides | 254 | The main redundancy in XML syntax is end-tags. nXML mode provides |
| 262 | several ways to make it easier to enter end-tags. You can use all of | 255 | several ways to make it easier to enter end-tags. You can use all of |
| 263 | these without a schema. | 256 | these without a schema. |
| 264 | 257 | ||
| 265 | You can use @kbd{C-@key{RET}} after @samp{</} | 258 | You can use @kbd{C-M-i} after @samp{</} to complete the rest of the |
| 266 | to complete the rest of the end-tag. | 259 | end-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 |
| 269 | point. This command is useful when you want to input the start-tag, | 262 | point. 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 | |||
| 279 | indented. The @samp{i} is mnemonic for inline and the | 272 | indented. 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 | ||
| 282 | Finally, you can customize nxml-mode so that @kbd{/} | 275 | Finally, you can customize nXML mode so that @kbd{/} automatically |
| 283 | automatically inserts the rest of the end-tag when it occurs after | 276 | inserts the rest of the end-tag when it occurs after @samp{<}, by |
| 284 | @samp{<}, by doing | 277 | doing |
| 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 | ||
| 871 | nxml-mode is designed to support the creation of standalone XML | 864 | nXML mode is designed to support the creation of standalone XML |
| 872 | documents that do not depend on a DTD. Although it is common practice | 865 | documents that do not depend on a DTD. Although it is common practice |
| 873 | to insert a DOCTYPE declaration referencing an external DTD, this has | 866 | to insert a DOCTYPE declaration referencing an external DTD, this has |
| 874 | undesirable side-effects. It means that the document is no longer | 867 | undesirable side-effects. It means that the document is no longer |
| @@ -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'. |
| 744 | Completion is now performed via `completion-at-point', bound to M-TAB. | 745 | Completion is now performed via `completion-at-point', bound to M-TAB. |
| 745 | If `nxml-bind-meta-tab-to-complete-flag' is non-nil (the default), | 746 | If `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 |
| 1563 | being reverted, even if the buffer has a local `revert-buffer-function'. | 1565 | being 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'. |
| 1567 | If delayed-warnings-list is non-nil, the command loop calls | 1569 | If 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 @@ | |||
| 1 | 2012-04-04 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * subr.el (delayed-warnings-hook): Doc fix. | ||
| 4 | |||
| 1 | 2012-04-04 Daiki Ueno <ueno@unixuser.org> | 5 | 2012-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. |
| 1897 | Functions in this hook should access the `delayed-warnings-list' | 1897 | By default, this hook contains functions to consolidate the |
| 1898 | variable (which see) and remove from it the warnings they process.") | 1898 | warnings 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 @@ | |||
| 1 | 2012-04-04 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * keyboard.c (Vdelayed_warnings_list): Doc fix. | ||
| 4 | |||
| 1 | 2012-04-01 Eli Zaretskii <eliz@gnu.org> | 5 | 2012-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. |
| 12172 | Each element must be a list (TYPE MESSAGE [LEVEL [BUFFER-NAME]]), | 12172 | Each element must be a list (TYPE MESSAGE [LEVEL [BUFFER-NAME]]), |
| 12173 | as per the args of `display-warning' (which see). | 12173 | as per the args of `display-warning' (which see). |
| 12174 | If this variable is non-nil, `delayed-warnings-hook' will be run | 12174 | If this variable is non-nil, `delayed-warnings-hook' will be run |