diff options
| author | Paul Eggert | 2011-07-13 23:41:47 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-13 23:41:47 -0700 |
| commit | cf950e6bbdeec3f6aab3e119f26f9cd5d962ac2e (patch) | |
| tree | 1bdb0fd052770b8c3b0c6ea83fb7c6a9bfdd5b85 /doc/lispref | |
| parent | ca4aa9359160557f8103639fc3c0ccb16c6ba8d2 (diff) | |
| parent | 27fa387ad10e6a5639de1ab08e7559c06e9d802d (diff) | |
| download | emacs-cf950e6bbdeec3f6aab3e119f26f9cd5d962ac2e.tar.gz emacs-cf950e6bbdeec3f6aab3e119f26f9cd5d962ac2e.zip | |
Merge from trunk.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/ChangeLog | 16 | ||||
| -rw-r--r-- | doc/lispref/help.texi | 11 | ||||
| -rw-r--r-- | doc/lispref/keymaps.texi | 11 | ||||
| -rw-r--r-- | doc/lispref/modes.texi | 15 | ||||
| -rw-r--r-- | doc/lispref/objects.texi | 4 |
5 files changed, 45 insertions, 12 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 1d1730e078d..19da0a3c442 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | 2011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * help.texi (Documentation Basics): Add a link to the Function | ||
| 4 | Documentation node (bug#6580). | ||
| 5 | |||
| 6 | 2011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 7 | |||
| 8 | * keymaps.texi (Menu Bar): Mention :visible and :enable | ||
| 9 | (bug#6344). Text by Drew Adams. | ||
| 10 | |||
| 11 | * modes.texi (Running Hooks): Mention buffer-local hook variables | ||
| 12 | (bug#6218). | ||
| 13 | |||
| 14 | * objects.texi (General Escape Syntax): "a with grave accent" is | ||
| 15 | ?xe0, not ?x8e0 (bug#5259). | ||
| 16 | |||
| 1 | 2011-07-12 Chong Yidong <cyd@stupidchicken.com> | 17 | 2011-07-12 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 18 | ||
| 3 | * display.texi (Face Attributes, Font Selection): Add references | 19 | * display.texi (Face Attributes, Font Selection): Add references |
diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi index 63fc06c929b..0ce05d55a07 100644 --- a/doc/lispref/help.texi +++ b/doc/lispref/help.texi | |||
| @@ -78,11 +78,12 @@ function or variable that it describes: | |||
| 78 | @item | 78 | @item |
| 79 | @kindex function-documentation | 79 | @kindex function-documentation |
| 80 | The documentation for a function is usually stored in the function | 80 | The documentation for a function is usually stored in the function |
| 81 | definition itself (@pxref{Lambda Expressions}). The function | 81 | definition itself (@pxref{Lambda Expressions} and @pxref{Function |
| 82 | @code{documentation} knows how to extract it. You can also put | 82 | Documentation}). The function @code{documentation} knows how to |
| 83 | function documentation in the @code{function-documentation} property | 83 | extract it. You can also put function documentation in the |
| 84 | of the function name. That is useful with definitions such as | 84 | @code{function-documentation} property of the function name. That is |
| 85 | keyboard macros that can't hold a documentation string. | 85 | useful with definitions such as keyboard macros that can't hold a |
| 86 | documentation string. | ||
| 86 | 87 | ||
| 87 | @item | 88 | @item |
| 88 | @kindex variable-documentation | 89 | @kindex variable-documentation |
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index cf1db5b7fce..15b2f2079ba 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi | |||
| @@ -2262,6 +2262,17 @@ the double-dash and replacing each single dash with capitalization of | |||
| 2262 | the following word. Thus, @code{"--:singleLine"}, is equivalent to | 2262 | the following word. Thus, @code{"--:singleLine"}, is equivalent to |
| 2263 | @code{"--single-line"}. | 2263 | @code{"--single-line"}. |
| 2264 | 2264 | ||
| 2265 | You can use a longer form to specify keywords such as @code{:enable} | ||
| 2266 | and @code{:visible} for a menu separator: | ||
| 2267 | |||
| 2268 | @code{(menu-item @var{separator-type} nil . @var{item-property-list})} | ||
| 2269 | |||
| 2270 | For example: | ||
| 2271 | |||
| 2272 | @example | ||
| 2273 | (menu-item "--" nil :visible (boundp 'foo)) | ||
| 2274 | @end example | ||
| 2275 | |||
| 2265 | Some systems and display toolkits don't really handle all of these | 2276 | Some systems and display toolkits don't really handle all of these |
| 2266 | separator types. If you use a type that isn't supported, the menu | 2277 | separator types. If you use a type that isn't supported, the menu |
| 2267 | displays a similar kind of separator that is supported. | 2278 | displays a similar kind of separator that is supported. |
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index a8a10f750cc..dd3b2e3038f 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -101,6 +101,11 @@ one, with no arguments. | |||
| 101 | The hook variable's value can also be a single function---either a | 101 | The hook variable's value can also be a single function---either a |
| 102 | lambda expression or a symbol with a function definition---which | 102 | lambda expression or a symbol with a function definition---which |
| 103 | @code{run-hooks} calls. But this usage is obsolete. | 103 | @code{run-hooks} calls. But this usage is obsolete. |
| 104 | |||
| 105 | If the hook variable is buffer-local, the buffer-local variable will | ||
| 106 | be used instead of the global variable. However, if the buffer-local | ||
| 107 | variable contains the element @code{t}, the global hook variable will | ||
| 108 | be run as well. | ||
| 104 | @end defun | 109 | @end defun |
| 105 | 110 | ||
| 106 | @defun run-hook-with-args hook &rest args | 111 | @defun run-hook-with-args hook &rest args |
| @@ -169,11 +174,11 @@ function goes at the end of the hook list and will be executed last. | |||
| 169 | value is a single function; it sets or changes the value to a list of | 174 | value is a single function; it sets or changes the value to a list of |
| 170 | functions. | 175 | functions. |
| 171 | 176 | ||
| 172 | If @var{local} is non-@code{nil}, that says to add @var{function} to | 177 | If @var{local} is non-@code{nil}, that says to add @var{function} to the |
| 173 | the buffer-local hook list instead of to the global hook list. If | 178 | buffer-local hook list instead of to the global hook list. This makes |
| 174 | needed, this makes the hook buffer-local and adds @code{t} to the | 179 | the hook buffer-local and adds @code{t} to the buffer-local value. The |
| 175 | buffer-local value. The latter acts as a flag to run the hook | 180 | latter acts as a flag to run the hook functions in the default value as |
| 176 | functions in the default value as well as in the local value. | 181 | well as in the local value. |
| 177 | @end defun | 182 | @end defun |
| 178 | 183 | ||
| 179 | @defun remove-hook hook function &optional local | 184 | @defun remove-hook hook function &optional local |
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi index 27d9ba10aef..6d63bb7b750 100644 --- a/doc/lispref/objects.texi +++ b/doc/lispref/objects.texi | |||
| @@ -392,7 +392,7 @@ value is more important than the @acronym{ASCII} representation. | |||
| 392 | and the hexadecimal character code. You can use any number of hex | 392 | and the hexadecimal character code. You can use any number of hex |
| 393 | digits, so you can represent any character code in this way. | 393 | digits, so you can represent any character code in this way. |
| 394 | Thus, @samp{?\x41} for the character @kbd{A}, @samp{?\x1} for the | 394 | Thus, @samp{?\x41} for the character @kbd{A}, @samp{?\x1} for the |
| 395 | character @kbd{C-a}, and @code{?\x8e0} for the Latin-1 character | 395 | character @kbd{C-a}, and @code{?\xe0} for the Latin-1 character |
| 396 | @iftex | 396 | @iftex |
| 397 | @samp{@`a}. | 397 | @samp{@`a}. |
| 398 | @end iftex | 398 | @end iftex |
| @@ -1037,7 +1037,7 @@ digits as necessary. (Multibyte non-@acronym{ASCII} character codes are all | |||
| 1037 | greater than 256.) Any character which is not a valid hex digit | 1037 | greater than 256.) Any character which is not a valid hex digit |
| 1038 | terminates this construct. If the next character in the string could be | 1038 | terminates this construct. If the next character in the string could be |
| 1039 | interpreted as a hex digit, write @w{@samp{\ }} (backslash and space) to | 1039 | interpreted as a hex digit, write @w{@samp{\ }} (backslash and space) to |
| 1040 | terminate the hex escape---for example, @w{@samp{\x8e0\ }} represents | 1040 | terminate the hex escape---for example, @w{@samp{\xe0\ }} represents |
| 1041 | one character, @samp{a} with grave accent. @w{@samp{\ }} in a string | 1041 | one character, @samp{a} with grave accent. @w{@samp{\ }} in a string |
| 1042 | constant is just like backslash-newline; it does not contribute any | 1042 | constant is just like backslash-newline; it does not contribute any |
| 1043 | character to the string, but it does terminate the preceding hex escape. | 1043 | character to the string, but it does terminate the preceding hex escape. |