diff options
| author | Miles Bader | 2006-10-15 02:54:13 +0000 |
|---|---|---|
| committer | Miles Bader | 2006-10-15 02:54:13 +0000 |
| commit | bb9c4b4f8b3dcd1b5fc96d2d0275cc532832fbd6 (patch) | |
| tree | 8c4ae9640abcb8f33326e96e661f711417e5307c /lispref | |
| parent | 5be4d5336db8be316100a5b80ee8c5e428438b9e (diff) | |
| parent | 92edaeeda5c362acf2c7e7f72b3666ab7673699a (diff) | |
| download | emacs-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/ChangeLog | 22 | ||||
| -rw-r--r-- | lispref/frames.texi | 3 | ||||
| -rw-r--r-- | lispref/keymaps.texi | 44 | ||||
| -rw-r--r-- | lispref/lists.texi | 21 | ||||
| -rw-r--r-- | lispref/searching.texi | 8 |
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 @@ | |||
| 1 | 2006-10-13 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * frames.texi (Frame Titles): %c and %l are ignored in | ||
| 4 | frame-title-format. | ||
| 5 | |||
| 6 | 2006-10-11 Richard Stallman <rms@gnu.org> | ||
| 7 | |||
| 8 | * keymaps.texi (Key Sequences): Clarify use of kbd. | ||
| 9 | |||
| 10 | 2006-10-10 Kim F. Storm <storm@cua.dk> | ||
| 11 | |||
| 12 | * lists.texi (Sets And Lists): Add memql. | ||
| 13 | |||
| 14 | 2006-10-03 Richard Stallman <rms@gnu.org> | ||
| 15 | |||
| 16 | * searching.texi (Char Classes): Document :multibyte: and :unibyte:. | ||
| 17 | Clarify :ascii: and :nonascii:. | ||
| 18 | |||
| 1 | 2006-09-29 Juri Linkov <juri@jurta.org> | 19 | 2006-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 | ||
| 21 | 2006-09-21 Kim F. Storm <storm@cua.dk> | ||
| 22 | |||
| 23 | * lists.texi (Sets And Lists): Add memql. | ||
| 24 | |||
| 25 | 2006-09-20 Richard Stallman <rms@gnu.org> | 39 | 2006-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 |
| 900 | This variable specifies how to compute a name for a frame when you have | 900 | This variable specifies how to compute a name for a frame when you have |
| 901 | not explicitly specified one. The variable's value is actually a mode | 901 | not explicitly specified one. The variable's value is actually a mode |
| 902 | line construct, just like @code{mode-line-format}. @xref{Mode Line | 902 | line construct, just like @code{mode-line-format}, except that the |
| 903 | @samp{%c} and @samp{%l} constructs are ignored. @xref{Mode Line | ||
| 903 | Data}. | 904 | Data}. |
| 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 | |||
| 98 | This macro is not meant for use with arguments that vary---only | ||
| 99 | with string constants. | ||
| 97 | @end defmac | 100 | @end defmac |
| 98 | 101 | ||
| 99 | @node Keymap Basics | 102 | @node Keymap Basics |
| @@ -169,6 +172,15 @@ keymap. | |||
| 169 | This specifies one binding, for events of type @var{type}. Each | 172 | This specifies one binding, for events of type @var{type}. Each |
| 170 | ordinary binding applies to events of a particular @dfn{event type}, | 173 | ordinary binding applies to events of a particular @dfn{event type}, |
| 171 | which is always a character or a symbol. @xref{Classifying Events}. | 174 | which is always a character or a symbol. @xref{Classifying Events}. |
| 175 | In this kind of binding, @var{binding} is a command. | ||
| 176 | |||
| 177 | @item (@var{type} @var{item-name} .@: @var{binding}) | ||
| 178 | This specifies a binding which is also a menu item | ||
| 179 | named @var{item-name}. @xref{Simple Menu Items}. | ||
| 180 | |||
| 181 | @item (@var{type} menu-item .@: @var{details}) | ||
| 182 | This specifies a binding which is also a menu item and allows use of | ||
| 183 | other 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}, | |||
| 1947 | or @code{nil} if it has none. | 1959 | or @code{nil} if it has none. |
| 1948 | @end defun | 1960 | @end defun |
| 1949 | 1961 | ||
| 1962 | The menu's items are the bindings in the keymap. Each binding | ||
| 1963 | associates an event type to a definition, but the event types have no | ||
| 1964 | significance for the menu appearance. (Usually we use pseudo-events, | ||
| 1965 | symbols that the keyboard cannot generate, as the event types for menu | ||
| 1966 | item bindings.) The menu is generated entirely from the bindings that | ||
| 1967 | correspond in the keymap to these events. | ||
| 1968 | |||
| 1950 | The order of items in the menu is the same as the order of bindings in | 1969 | The order of items in the menu is the same as the order of bindings in |
| 1951 | the keymap. Since @code{define-key} puts new bindings at the front, you | 1970 | the keymap. Since @code{define-key} puts new bindings at the front, you |
| 1952 | should define the menu items starting at the bottom of the menu and | 1971 | should 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 |
| 1971 | looks like this: | 1990 | event 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 | |||
| 1984 | encoded using the @code{utf-8} coding system and then rendered by the | 2003 | encoded using the @code{utf-8} coding system and then rendered by the |
| 1985 | toolkit as it sees fit.} | 2004 | toolkit as it sees fit.} |
| 1986 | 2005 | ||
| 1987 | You 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 |
| 1994 | is on that item in the same way as @code{help-echo} text properties | 2014 | is on that item in the same way as @code{help-echo} text properties |
| 1995 | (@pxref{Help display}). | 2015 | (@pxref{Help display}). |
| 1996 | 2016 | ||
| 1997 | As 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 | ||
| 2002 | If @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 |
| 2003 | the menu but cannot be selected. | 2023 | the menu but cannot be selected. |
| 2004 | 2024 | ||
| 2005 | If @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 |
| 2007 | controls whether the menu item is enabled. Every time the keymap is | 2027 | controls whether the menu item is enabled. Every time the keymap is |
| 2008 | used to display a menu, Emacs evaluates the expression, and it enables | 2028 | used 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 | |||
| 2010 | menu item is disabled, it is displayed in a ``fuzzy'' fashion, and | 2030 | menu item is disabled, it is displayed in a ``fuzzy'' fashion, and |
| 2011 | cannot be selected. | 2031 | cannot be selected. |
| 2012 | 2032 | ||
| 2013 | The 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 |
| 2014 | look at a menu. This is because the X toolkit requires the whole tree | 2034 | look at a menu. This is because the X toolkit requires the whole tree |
| 2015 | of menus in advance. To force recalculation of the menu bar, call | 2035 | of 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 | ||
| 2018 | You've probably noticed that menu items show the equivalent keyboard key | 2038 | You've probably noticed that menu items show the equivalent keyboard key |
| 2019 | sequence (if any) to invoke the same command. To save time on | 2039 | sequence (if any) to invoke the same command. To save time on |
| 2020 | recalculation, menu display caches this information in a sublist in the | 2040 | recalculation, menu display caches this information in a sublist in the |
| 2021 | binding, like this: | 2041 | binding, 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 |
| 2038 | alternative to the simple format. It consists of a list that starts | 2058 | alternative to the simple format. You define an event type with a |
| 2039 | with the symbol @code{menu-item}. To define a non-selectable string, | 2059 | binding that's a list starting with the symbol @code{menu-item}. |
| 2040 | the item looks like this: | 2060 | For 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; | |||
| 2048 | see @ref{Menu Separators}. | 2068 | see @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 |
| 2051 | item looks like this: | 2071 | binding 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 | |||
| 1395 | destructively. See @ref{Sets And Lists}. | 1395 | destructively. See @ref{Sets And Lists}. |
| 1396 | @end defun | 1396 | @end defun |
| 1397 | 1397 | ||
| 1398 | @defun memql object list | ||
| 1399 | The function @code{member} tests to see whether @var{object} is a member | ||
| 1400 | of @var{list}, comparing members with @var{object} using @code{eql}, | ||
| 1401 | so floating point elements are compared by value. | ||
| 1402 | If @var{object} is a member, @code{memql} returns a list starting with | ||
| 1403 | its first occurrence in @var{list}. Otherwise, it returns @code{nil}. | ||
| 1404 | |||
| 1405 | Compare 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 | |||
| 1398 | The following three functions are like @code{memq}, @code{delq} and | 1419 | The 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 |
| 1400 | elements. @xref{Equality Predicates}. | 1421 | elements. @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:] |
| 518 | This matches any @acronym{ASCII} (unibyte) character. | 518 | This matches any @acronym{ASCII} character (codes 0--127). |
| 519 | @item [:alnum:] | 519 | @item [:alnum:] |
| 520 | This matches any letter or digit. (At present, for multibyte | 520 | This matches any letter or digit. (At present, for multibyte |
| 521 | characters, it matches anything that has word syntax.) | 521 | characters, it matches anything that has word syntax.) |
| @@ -535,8 +535,10 @@ characters, space, and the delete character. | |||
| 535 | @item [:lower:] | 535 | @item [:lower:] |
| 536 | This matches any lower-case letter, as determined by | 536 | This matches any lower-case letter, as determined by |
| 537 | the current case table (@pxref{Case Tables}). | 537 | the current case table (@pxref{Case Tables}). |
| 538 | @item [:multibyte:] | ||
| 539 | This matches any multibyte character (@pxref{Text Representations}). | ||
| 538 | @item [:nonascii:] | 540 | @item [:nonascii:] |
| 539 | This matches any non-@acronym{ASCII} (multibyte) character. | 541 | This matches any non-@acronym{ASCII} character. |
| 540 | @item [:print:] | 542 | @item [:print:] |
| 541 | This matches printing characters---everything except @acronym{ASCII} control | 543 | This matches printing characters---everything except @acronym{ASCII} control |
| 542 | characters and the delete character. | 544 | characters and the delete character. |
| @@ -546,6 +548,8 @@ characters, it matches anything that has non-word syntax.) | |||
| 546 | @item [:space:] | 548 | @item [:space:] |
| 547 | This matches any character that has whitespace syntax | 549 | This matches any character that has whitespace syntax |
| 548 | (@pxref{Syntax Class Table}). | 550 | (@pxref{Syntax Class Table}). |
| 551 | @item [:unibyte:] | ||
| 552 | This matches any unibyte character (@pxref{Text Representations}). | ||
| 549 | @item [:upper:] | 553 | @item [:upper:] |
| 550 | This matches any upper-case letter, as determined by | 554 | This matches any upper-case letter, as determined by |
| 551 | the current case table (@pxref{Case Tables}). | 555 | the current case table (@pxref{Case Tables}). |