aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorPaul Eggert2011-07-13 23:41:47 -0700
committerPaul Eggert2011-07-13 23:41:47 -0700
commitcf950e6bbdeec3f6aab3e119f26f9cd5d962ac2e (patch)
tree1bdb0fd052770b8c3b0c6ea83fb7c6a9bfdd5b85 /doc/lispref
parentca4aa9359160557f8103639fc3c0ccb16c6ba8d2 (diff)
parent27fa387ad10e6a5639de1ab08e7559c06e9d802d (diff)
downloademacs-cf950e6bbdeec3f6aab3e119f26f9cd5d962ac2e.tar.gz
emacs-cf950e6bbdeec3f6aab3e119f26f9cd5d962ac2e.zip
Merge from trunk.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/ChangeLog16
-rw-r--r--doc/lispref/help.texi11
-rw-r--r--doc/lispref/keymaps.texi11
-rw-r--r--doc/lispref/modes.texi15
-rw-r--r--doc/lispref/objects.texi4
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 @@
12011-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
62011-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
12011-07-12 Chong Yidong <cyd@stupidchicken.com> 172011-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
80The documentation for a function is usually stored in the function 80The documentation for a function is usually stored in the function
81definition itself (@pxref{Lambda Expressions}). The function 81definition itself (@pxref{Lambda Expressions} and @pxref{Function
82@code{documentation} knows how to extract it. You can also put 82Documentation}). The function @code{documentation} knows how to
83function documentation in the @code{function-documentation} property 83extract it. You can also put function documentation in the
84of the function name. That is useful with definitions such as 84@code{function-documentation} property of the function name. That is
85keyboard macros that can't hold a documentation string. 85useful with definitions such as keyboard macros that can't hold a
86documentation 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
2262the following word. Thus, @code{"--:singleLine"}, is equivalent to 2262the 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}
2266and @code{:visible} for a menu separator:
2267
2268@code{(menu-item @var{separator-type} nil . @var{item-property-list})}
2269
2270For 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
2266separator types. If you use a type that isn't supported, the menu 2277separator types. If you use a type that isn't supported, the menu
2267displays a similar kind of separator that is supported. 2278displays 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.
101The hook variable's value can also be a single function---either a 101The hook variable's value can also be a single function---either a
102lambda expression or a symbol with a function definition---which 102lambda 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
105If the hook variable is buffer-local, the buffer-local variable will
106be used instead of the global variable. However, if the buffer-local
107variable contains the element @code{t}, the global hook variable will
108be 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.
169value is a single function; it sets or changes the value to a list of 174value is a single function; it sets or changes the value to a list of
170functions. 175functions.
171 176
172If @var{local} is non-@code{nil}, that says to add @var{function} to 177If @var{local} is non-@code{nil}, that says to add @var{function} to the
173the buffer-local hook list instead of to the global hook list. If 178buffer-local hook list instead of to the global hook list. This makes
174needed, this makes the hook buffer-local and adds @code{t} to the 179the hook buffer-local and adds @code{t} to the buffer-local value. The
175buffer-local value. The latter acts as a flag to run the hook 180latter acts as a flag to run the hook functions in the default value as
176functions in the default value as well as in the local value. 181well 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.
392and the hexadecimal character code. You can use any number of hex 392and the hexadecimal character code. You can use any number of hex
393digits, so you can represent any character code in this way. 393digits, so you can represent any character code in this way.
394Thus, @samp{?\x41} for the character @kbd{A}, @samp{?\x1} for the 394Thus, @samp{?\x41} for the character @kbd{A}, @samp{?\x1} for the
395character @kbd{C-a}, and @code{?\x8e0} for the Latin-1 character 395character @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
1037greater than 256.) Any character which is not a valid hex digit 1037greater than 256.) Any character which is not a valid hex digit
1038terminates this construct. If the next character in the string could be 1038terminates this construct. If the next character in the string could be
1039interpreted as a hex digit, write @w{@samp{\ }} (backslash and space) to 1039interpreted as a hex digit, write @w{@samp{\ }} (backslash and space) to
1040terminate the hex escape---for example, @w{@samp{\x8e0\ }} represents 1040terminate the hex escape---for example, @w{@samp{\xe0\ }} represents
1041one character, @samp{a} with grave accent. @w{@samp{\ }} in a string 1041one character, @samp{a} with grave accent. @w{@samp{\ }} in a string
1042constant is just like backslash-newline; it does not contribute any 1042constant is just like backslash-newline; it does not contribute any
1043character to the string, but it does terminate the preceding hex escape. 1043character to the string, but it does terminate the preceding hex escape.