aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorMiles Bader2006-10-15 02:54:13 +0000
committerMiles Bader2006-10-15 02:54:13 +0000
commitbb9c4b4f8b3dcd1b5fc96d2d0275cc532832fbd6 (patch)
tree8c4ae9640abcb8f33326e96e661f711417e5307c /lispref
parent5be4d5336db8be316100a5b80ee8c5e428438b9e (diff)
parent92edaeeda5c362acf2c7e7f72b3666ab7673699a (diff)
downloademacs-bb9c4b4f8b3dcd1b5fc96d2d0275cc532832fbd6.tar.gz
emacs-bb9c4b4f8b3dcd1b5fc96d2d0275cc532832fbd6.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 460-475) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 145-152) - Merge from emacs--devo--0 - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-118
Diffstat (limited to 'lispref')
-rw-r--r--lispref/ChangeLog22
-rw-r--r--lispref/frames.texi3
-rw-r--r--lispref/keymaps.texi44
-rw-r--r--lispref/lists.texi21
-rw-r--r--lispref/searching.texi8
5 files changed, 79 insertions, 19 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index 109ac9d704e..b059d238cdd 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,21 @@
12006-10-13 Chong Yidong <cyd@stupidchicken.com>
2
3 * frames.texi (Frame Titles): %c and %l are ignored in
4 frame-title-format.
5
62006-10-11 Richard Stallman <rms@gnu.org>
7
8 * keymaps.texi (Key Sequences): Clarify use of kbd.
9
102006-10-10 Kim F. Storm <storm@cua.dk>
11
12 * lists.texi (Sets And Lists): Add memql.
13
142006-10-03 Richard Stallman <rms@gnu.org>
15
16 * searching.texi (Char Classes): Document :multibyte: and :unibyte:.
17 Clarify :ascii: and :nonascii:.
18
12006-09-29 Juri Linkov <juri@jurta.org> 192006-09-29 Juri Linkov <juri@jurta.org>
2 20
3 * modes.texi (%-Constructs): Reorder coding systems in the 21 * modes.texi (%-Constructs): Reorder coding systems in the
@@ -18,10 +36,6 @@
18 * commands.texi (Command Loop Info): Explain how read-event affects 36 * commands.texi (Command Loop Info): Explain how read-event affects
19 this-command-keys. 37 this-command-keys.
20 38
212006-09-21 Kim F. Storm <storm@cua.dk>
22
23 * lists.texi (Sets And Lists): Add memql.
24
252006-09-20 Richard Stallman <rms@gnu.org> 392006-09-20 Richard Stallman <rms@gnu.org>
26 40
27 * os.texi (Timers): Clarify about REPEAT when timer is delayed. 41 * os.texi (Timers): Clarify about REPEAT when timer is delayed.
diff --git a/lispref/frames.texi b/lispref/frames.texi
index 0f243135cbb..617a2a1d05d 100644
--- a/lispref/frames.texi
+++ b/lispref/frames.texi
@@ -899,7 +899,8 @@ frame is redisplayed.
899@defvar frame-title-format 899@defvar frame-title-format
900This variable specifies how to compute a name for a frame when you have 900This variable specifies how to compute a name for a frame when you have
901not explicitly specified one. The variable's value is actually a mode 901not explicitly specified one. The variable's value is actually a mode
902line construct, just like @code{mode-line-format}. @xref{Mode Line 902line construct, just like @code{mode-line-format}, except that the
903@samp{%c} and @samp{%l} constructs are ignored. @xref{Mode Line
903Data}. 904Data}.
904@end defvar 905@end defvar
905 906
diff --git a/lispref/keymaps.texi b/lispref/keymaps.texi
index a3bd320a676..6f4c2d9aceb 100644
--- a/lispref/keymaps.texi
+++ b/lispref/keymaps.texi
@@ -94,6 +94,9 @@ function key names with @samp{<@dots{}>}.
94(kbd "<f1> SPC") @result{} [f1 32] 94(kbd "<f1> SPC") @result{} [f1 32]
95(kbd "C-M-<down>") @result{} [C-M-down] 95(kbd "C-M-<down>") @result{} [C-M-down]
96@end example 96@end example
97
98This macro is not meant for use with arguments that vary---only
99with string constants.
97@end defmac 100@end defmac
98 101
99@node Keymap Basics 102@node Keymap Basics
@@ -169,6 +172,15 @@ keymap.
169This specifies one binding, for events of type @var{type}. Each 172This specifies one binding, for events of type @var{type}. Each
170ordinary binding applies to events of a particular @dfn{event type}, 173ordinary binding applies to events of a particular @dfn{event type},
171which is always a character or a symbol. @xref{Classifying Events}. 174which is always a character or a symbol. @xref{Classifying Events}.
175In this kind of binding, @var{binding} is a command.
176
177@item (@var{type} @var{item-name} .@: @var{binding})
178This specifies a binding which is also a menu item
179named @var{item-name}. @xref{Simple Menu Items}.
180
181@item (@var{type} menu-item .@: @var{details})
182This specifies a binding which is also a menu item and allows use of
183other features. @xref{Extended Menu Items}.
172 184
173@item (t .@: @var{binding}) 185@item (t .@: @var{binding})
174@cindex default key binding 186@cindex default key binding
@@ -1947,6 +1959,13 @@ This function returns the overall prompt string of @var{keymap},
1947or @code{nil} if it has none. 1959or @code{nil} if it has none.
1948@end defun 1960@end defun
1949 1961
1962The menu's items are the bindings in the keymap. Each binding
1963associates an event type to a definition, but the event types have no
1964significance for the menu appearance. (Usually we use pseudo-events,
1965symbols that the keyboard cannot generate, as the event types for menu
1966item bindings.) The menu is generated entirely from the bindings that
1967correspond in the keymap to these events.
1968
1950The order of items in the menu is the same as the order of bindings in 1969The order of items in the menu is the same as the order of bindings in
1951the keymap. Since @code{define-key} puts new bindings at the front, you 1970the keymap. Since @code{define-key} puts new bindings at the front, you
1952should define the menu items starting at the bottom of the menu and 1971should define the menu items starting at the bottom of the menu and
@@ -1967,8 +1986,8 @@ an existing menu, you can specify its position in the menu using
1967@node Simple Menu Items 1986@node Simple Menu Items
1968@subsubsection Simple Menu Items 1987@subsubsection Simple Menu Items
1969 1988
1970 The simpler and older way to define a menu keymap binding 1989 The simpler (and original) way to define a menu item is to bind some
1971looks like this: 1990event type (it doesn't matter what event type) to a binding like this:
1972 1991
1973@example 1992@example
1974(@var{item-string} . @var{real-binding}) 1993(@var{item-string} . @var{real-binding})
@@ -1984,25 +2003,26 @@ built with the Gtk+ toolkit.@footnote{In this case, the text is first
1984encoded using the @code{utf-8} coding system and then rendered by the 2003encoded using the @code{utf-8} coding system and then rendered by the
1985toolkit as it sees fit.} 2004toolkit as it sees fit.}
1986 2005
1987You can also supply a second string, called the help string, as follows: 2006 You can also supply a second string, called the help string, as follows:
1988 2007
1989@example 2008@example
1990(@var{item-string} @var{help} . @var{real-binding}) 2009(@var{item-string} @var{help} . @var{real-binding})
1991@end example 2010@end example
1992 2011
2012@noindent
1993@var{help} specifies a ``help-echo'' string to display while the mouse 2013@var{help} specifies a ``help-echo'' string to display while the mouse
1994is on that item in the same way as @code{help-echo} text properties 2014is on that item in the same way as @code{help-echo} text properties
1995(@pxref{Help display}). 2015(@pxref{Help display}).
1996 2016
1997As far as @code{define-key} is concerned, @var{item-string} and 2017 As far as @code{define-key} is concerned, @var{item-string} and
1998@var{help-string} are part of the event's binding. However, 2018@var{help-string} are part of the event's binding. However,
1999@code{lookup-key} returns just @var{real-binding}, and only 2019@code{lookup-key} returns just @var{real-binding}, and only
2000@var{real-binding} is used for executing the key. 2020@var{real-binding} is used for executing the key.
2001 2021
2002If @var{real-binding} is @code{nil}, then @var{item-string} appears in 2022 If @var{real-binding} is @code{nil}, then @var{item-string} appears in
2003the menu but cannot be selected. 2023the menu but cannot be selected.
2004 2024
2005If @var{real-binding} is a symbol and has a non-@code{nil} 2025 If @var{real-binding} is a symbol and has a non-@code{nil}
2006@code{menu-enable} property, that property is an expression that 2026@code{menu-enable} property, that property is an expression that
2007controls whether the menu item is enabled. Every time the keymap is 2027controls whether the menu item is enabled. Every time the keymap is
2008used to display a menu, Emacs evaluates the expression, and it enables 2028used to display a menu, Emacs evaluates the expression, and it enables
@@ -2010,12 +2030,12 @@ the menu item only if the expression's value is non-@code{nil}. When a
2010menu item is disabled, it is displayed in a ``fuzzy'' fashion, and 2030menu item is disabled, it is displayed in a ``fuzzy'' fashion, and
2011cannot be selected. 2031cannot be selected.
2012 2032
2013The menu bar does not recalculate which items are enabled every time you 2033 The menu bar does not recalculate which items are enabled every time you
2014look at a menu. This is because the X toolkit requires the whole tree 2034look at a menu. This is because the X toolkit requires the whole tree
2015of menus in advance. To force recalculation of the menu bar, call 2035of menus in advance. To force recalculation of the menu bar, call
2016@code{force-mode-line-update} (@pxref{Mode Line Format}). 2036@code{force-mode-line-update} (@pxref{Mode Line Format}).
2017 2037
2018You've probably noticed that menu items show the equivalent keyboard key 2038 You've probably noticed that menu items show the equivalent keyboard key
2019sequence (if any) to invoke the same command. To save time on 2039sequence (if any) to invoke the same command. To save time on
2020recalculation, menu display caches this information in a sublist in the 2040recalculation, menu display caches this information in a sublist in the
2021binding, like this: 2041binding, like this:
@@ -2035,9 +2055,9 @@ the item strings themselves, since that is redundant.
2035@kindex menu-item 2055@kindex menu-item
2036 2056
2037 An extended-format menu item is a more flexible and also cleaner 2057 An extended-format menu item is a more flexible and also cleaner
2038alternative to the simple format. It consists of a list that starts 2058alternative to the simple format. You define an event type with a
2039with the symbol @code{menu-item}. To define a non-selectable string, 2059binding that's a list starting with the symbol @code{menu-item}.
2040the item looks like this: 2060For a non-selectable string, the binding looks like this:
2041 2061
2042@example 2062@example
2043(menu-item @var{item-name}) 2063(menu-item @var{item-name})
@@ -2048,7 +2068,7 @@ A string starting with two or more dashes specifies a separator line;
2048see @ref{Menu Separators}. 2068see @ref{Menu Separators}.
2049 2069
2050 To define a real menu item which can be selected, the extended format 2070 To define a real menu item which can be selected, the extended format
2051item looks like this: 2071binding looks like this:
2052 2072
2053@example 2073@example
2054(menu-item @var{item-name} @var{real-binding} 2074(menu-item @var{item-name} @var{real-binding}
diff --git a/lispref/lists.texi b/lispref/lists.texi
index 1c6247d818c..17ed62a6d6c 100644
--- a/lispref/lists.texi
+++ b/lispref/lists.texi
@@ -1395,6 +1395,27 @@ The function @code{delq} offers a way to perform this operation
1395destructively. See @ref{Sets And Lists}. 1395destructively. See @ref{Sets And Lists}.
1396@end defun 1396@end defun
1397 1397
1398@defun memql object list
1399The function @code{member} tests to see whether @var{object} is a member
1400of @var{list}, comparing members with @var{object} using @code{eql},
1401so floating point elements are compared by value.
1402If @var{object} is a member, @code{memql} returns a list starting with
1403its first occurrence in @var{list}. Otherwise, it returns @code{nil}.
1404
1405Compare this with @code{memq}:
1406
1407@example
1408@group
1409(memql 1.2 '(1.1 1.2 1.3) ; @r{@code{1.2} and @code{1.2} are @code{eql}.}
1410 @result{} (1.2 1.3)
1411@end group
1412@group
1413(memq 1.2 '(1.1 1.2 1.3) ; @r{@code{1.2} and @code{1.2} are not @code{eq}.}
1414 @result{} nil
1415@end group
1416@end example
1417@end defun
1418
1398The following three functions are like @code{memq}, @code{delq} and 1419The following three functions are like @code{memq}, @code{delq} and
1399@code{remq}, but use @code{equal} rather than @code{eq} to compare 1420@code{remq}, but use @code{equal} rather than @code{eq} to compare
1400elements. @xref{Equality Predicates}. 1421elements. @xref{Equality Predicates}.
diff --git a/lispref/searching.texi b/lispref/searching.texi
index e730d3b29ec..204cfa1d319 100644
--- a/lispref/searching.texi
+++ b/lispref/searching.texi
@@ -515,7 +515,7 @@ and what they mean:
515 515
516@table @samp 516@table @samp
517@item [:ascii:] 517@item [:ascii:]
518This matches any @acronym{ASCII} (unibyte) character. 518This matches any @acronym{ASCII} character (codes 0--127).
519@item [:alnum:] 519@item [:alnum:]
520This matches any letter or digit. (At present, for multibyte 520This matches any letter or digit. (At present, for multibyte
521characters, it matches anything that has word syntax.) 521characters, it matches anything that has word syntax.)
@@ -535,8 +535,10 @@ characters, space, and the delete character.
535@item [:lower:] 535@item [:lower:]
536This matches any lower-case letter, as determined by 536This matches any lower-case letter, as determined by
537the current case table (@pxref{Case Tables}). 537the current case table (@pxref{Case Tables}).
538@item [:multibyte:]
539This matches any multibyte character (@pxref{Text Representations}).
538@item [:nonascii:] 540@item [:nonascii:]
539This matches any non-@acronym{ASCII} (multibyte) character. 541This matches any non-@acronym{ASCII} character.
540@item [:print:] 542@item [:print:]
541This matches printing characters---everything except @acronym{ASCII} control 543This matches printing characters---everything except @acronym{ASCII} control
542characters and the delete character. 544characters and the delete character.
@@ -546,6 +548,8 @@ characters, it matches anything that has non-word syntax.)
546@item [:space:] 548@item [:space:]
547This matches any character that has whitespace syntax 549This matches any character that has whitespace syntax
548(@pxref{Syntax Class Table}). 550(@pxref{Syntax Class Table}).
551@item [:unibyte:]
552This matches any unibyte character (@pxref{Text Representations}).
549@item [:upper:] 553@item [:upper:]
550This matches any upper-case letter, as determined by 554This matches any upper-case letter, as determined by
551the current case table (@pxref{Case Tables}). 555the current case table (@pxref{Case Tables}).