diff options
| author | Stefan Monnier | 2013-06-19 09:51:47 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-06-19 09:51:47 -0400 |
| commit | 9716fedb62698b1f27e51a1dd185a612cbb4963a (patch) | |
| tree | 1703c3941feffadd9a453a01a4f6f061b63800d1 /doc | |
| parent | d6491e24dd79ed3055c7f39574258c2a8cddb62a (diff) | |
| download | emacs-9716fedb62698b1f27e51a1dd185a612cbb4963a.tar.gz emacs-9716fedb62698b1f27e51a1dd185a612cbb4963a.zip | |
* doc/lispref/keymaps.texi (Active Keymaps): Fix documentation of
set-temporary-overlay-map and overriding-terminal-local-map.
* doc/lispref/modes.texi (Mode Line Data, Properties in Mode): Advertise
`keymap' rather than `local-map'.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 8 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 24 | ||||
| -rw-r--r-- | doc/lispref/keymaps.texi | 11 | ||||
| -rw-r--r-- | doc/lispref/modes.texi | 6 |
4 files changed, 28 insertions, 21 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 8572fbe3e88..65fc76d15f5 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-06-19 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * modes.texi (Mode Line Data, Properties in Mode): Advertise `keymap' | ||
| 4 | rather than `local-map'. | ||
| 5 | |||
| 6 | * keymaps.texi (Active Keymaps): Fix documentation of | ||
| 7 | set-temporary-overlay-map and overriding-terminal-local-map. | ||
| 8 | |||
| 1 | 2013-06-19 Glenn Morris <rgm@gnu.org> | 9 | 2013-06-19 Glenn Morris <rgm@gnu.org> |
| 2 | 10 | ||
| 3 | * Makefile.in (dist): Edit more configure variables. | 11 | * Makefile.in (dist): Edit more configure variables. |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 4ad22898046..34eda6ecd6f 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -1655,26 +1655,26 @@ if it becomes empty (i.e., if its length becomes zero). If you give | |||
| 1655 | an empty overlay a non-@code{nil} @code{evaporate} property, that deletes | 1655 | an empty overlay a non-@code{nil} @code{evaporate} property, that deletes |
| 1656 | it immediately. | 1656 | it immediately. |
| 1657 | 1657 | ||
| 1658 | @item local-map | ||
| 1659 | @cindex keymap of character (and overlays) | ||
| 1660 | @kindex local-map @r{(overlay property)} | ||
| 1661 | If this property is non-@code{nil}, it specifies a keymap for a portion | ||
| 1662 | of the text. The property's value replaces the buffer's local map, when | ||
| 1663 | the character after point is within the overlay. @xref{Active Keymaps}. | ||
| 1664 | |||
| 1665 | @item keymap | 1658 | @item keymap |
| 1659 | @cindex keymap of character (and overlays) | ||
| 1666 | @kindex keymap @r{(overlay property)} | 1660 | @kindex keymap @r{(overlay property)} |
| 1667 | The @code{keymap} property is similar to @code{local-map} but overrides the | 1661 | If this property is non-@code{nil}, it specifies a keymap for a portion of the |
| 1668 | buffer's local map (and the map specified by the @code{local-map} | 1662 | text. This keymap is used when the character after point is within the |
| 1669 | property) rather than replacing it. | 1663 | overlay, and takes precedence over most other keymaps. @xref{Active Keymaps}. |
| 1664 | |||
| 1665 | @item local-map | ||
| 1666 | @kindex local-map @r{(overlay property)} | ||
| 1667 | The @code{local-map} property is similar to @code{keymap} but replaces the | ||
| 1668 | buffer's local map rather than augmenting existing keymaps. This also means it | ||
| 1669 | has lower precedence than minor mode keymaps. | ||
| 1670 | @end table | 1670 | @end table |
| 1671 | 1671 | ||
| 1672 | The @code{local-map} and @code{keymap} properties do not affect a | 1672 | The @code{keymap} and @code{local-map} properties do not affect a |
| 1673 | string displayed by the @code{before-string}, @code{after-string}, or | 1673 | string displayed by the @code{before-string}, @code{after-string}, or |
| 1674 | @code{display} properties. This is only relevant for mouse clicks and | 1674 | @code{display} properties. This is only relevant for mouse clicks and |
| 1675 | other mouse events that fall on the string, since point is never on | 1675 | other mouse events that fall on the string, since point is never on |
| 1676 | the string. To bind special mouse events for the string, assign it a | 1676 | the string. To bind special mouse events for the string, assign it a |
| 1677 | @code{local-map} or @code{keymap} text property. @xref{Special | 1677 | @code{keymap} or @code{local-map} text property. @xref{Special |
| 1678 | Properties}. | 1678 | Properties}. |
| 1679 | 1679 | ||
| 1680 | @node Finding Overlays | 1680 | @node Finding Overlays |
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index 822e952ef98..ef020364082 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi | |||
| @@ -663,17 +663,16 @@ additional active keymaps through the variable | |||
| 663 | 663 | ||
| 664 | The highest precedence normal keymap comes from the @code{keymap} | 664 | The highest precedence normal keymap comes from the @code{keymap} |
| 665 | text or overlay property. If that is non-@code{nil}, it is the first | 665 | text or overlay property. If that is non-@code{nil}, it is the first |
| 666 | keymap to be processed, in normal circumstances. Next comes | 666 | keymap to be processed, in normal circumstances. |
| 667 | any keymap added by the function @code{set-temporary-overlay-map}. | ||
| 668 | @xref{Controlling Active Maps}. | ||
| 669 | 667 | ||
| 670 | However, there are also special ways for programs to substitute | 668 | However, there are also special ways for programs to substitute |
| 671 | other keymaps for some of those. The variable | 669 | other keymaps for some of those. The variable |
| 672 | @code{overriding-local-map}, if non-@code{nil}, specifies a keymap | 670 | @code{overriding-local-map}, if non-@code{nil}, specifies a keymap |
| 673 | that replaces all the usual active keymaps except the global keymap. | 671 | that replaces all the usual active keymaps except the global keymap. |
| 674 | Another way to do this is with @code{overriding-terminal-local-map}; | 672 | |
| 675 | it operates on a per-terminal basis. These variables are documented | 673 | The very highest precedence keymap comes from |
| 676 | below. | 674 | @code{overriding-terminal-local-map}; it operates on a per-terminal basis and |
| 675 | is normally used for modal/transient keybindings. | ||
| 677 | 676 | ||
| 678 | @cindex major mode keymap | 677 | @cindex major mode keymap |
| 679 | Since every buffer that uses the same major mode normally uses the | 678 | Since every buffer that uses the same major mode normally uses the |
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 7d42d2591d6..59729380ea7 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -1800,7 +1800,7 @@ display of the text just as they would text in the buffer. Any | |||
| 1800 | characters which have no @code{face} properties are displayed, by | 1800 | characters which have no @code{face} properties are displayed, by |
| 1801 | default, in the face @code{mode-line} or @code{mode-line-inactive} | 1801 | default, in the face @code{mode-line} or @code{mode-line-inactive} |
| 1802 | (@pxref{Standard Faces,,, emacs, The GNU Emacs Manual}). The | 1802 | (@pxref{Standard Faces,,, emacs, The GNU Emacs Manual}). The |
| 1803 | @code{help-echo} and @code{local-map} properties in @var{string} have | 1803 | @code{help-echo} and @code{keymap} properties in @var{string} have |
| 1804 | special meanings. @xref{Properties in Mode}. | 1804 | special meanings. @xref{Properties in Mode}. |
| 1805 | 1805 | ||
| 1806 | @item @var{symbol} | 1806 | @item @var{symbol} |
| @@ -2205,7 +2205,7 @@ The value of @code{global-mode-string}. | |||
| 2205 | Certain text properties are meaningful in the | 2205 | Certain text properties are meaningful in the |
| 2206 | mode line. The @code{face} property affects the appearance of text; the | 2206 | mode line. The @code{face} property affects the appearance of text; the |
| 2207 | @code{help-echo} property associates help strings with the text, and | 2207 | @code{help-echo} property associates help strings with the text, and |
| 2208 | @code{local-map} can make the text mouse-sensitive. | 2208 | @code{keymap} can make the text mouse-sensitive. |
| 2209 | 2209 | ||
| 2210 | There are four ways to specify text properties for text in the mode | 2210 | There are four ways to specify text properties for text in the mode |
| 2211 | line: | 2211 | line: |
| @@ -2229,7 +2229,7 @@ structure, and make @var{form} evaluate to a string that has a text | |||
| 2229 | property. | 2229 | property. |
| 2230 | @end enumerate | 2230 | @end enumerate |
| 2231 | 2231 | ||
| 2232 | You can use the @code{local-map} property to specify a keymap. This | 2232 | You can use the @code{keymap} property to specify a keymap. This |
| 2233 | keymap only takes real effect for mouse clicks; binding character keys | 2233 | keymap only takes real effect for mouse clicks; binding character keys |
| 2234 | and function keys to it has no effect, since it is impossible to move | 2234 | and function keys to it has no effect, since it is impossible to move |
| 2235 | point into the mode line. | 2235 | point into the mode line. |