aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorStefan Monnier2013-06-19 09:51:47 -0400
committerStefan Monnier2013-06-19 09:51:47 -0400
commit9716fedb62698b1f27e51a1dd185a612cbb4963a (patch)
tree1703c3941feffadd9a453a01a4f6f061b63800d1 /doc
parentd6491e24dd79ed3055c7f39574258c2a8cddb62a (diff)
downloademacs-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/ChangeLog8
-rw-r--r--doc/lispref/display.texi24
-rw-r--r--doc/lispref/keymaps.texi11
-rw-r--r--doc/lispref/modes.texi6
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 @@
12013-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
12013-06-19 Glenn Morris <rgm@gnu.org> 92013-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
1655an empty overlay a non-@code{nil} @code{evaporate} property, that deletes 1655an empty overlay a non-@code{nil} @code{evaporate} property, that deletes
1656it immediately. 1656it immediately.
1657 1657
1658@item local-map
1659@cindex keymap of character (and overlays)
1660@kindex local-map @r{(overlay property)}
1661If this property is non-@code{nil}, it specifies a keymap for a portion
1662of the text. The property's value replaces the buffer's local map, when
1663the 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)}
1667The @code{keymap} property is similar to @code{local-map} but overrides the 1661If this property is non-@code{nil}, it specifies a keymap for a portion of the
1668buffer's local map (and the map specified by the @code{local-map} 1662text. This keymap is used when the character after point is within the
1669property) rather than replacing it. 1663overlay, and takes precedence over most other keymaps. @xref{Active Keymaps}.
1664
1665@item local-map
1666@kindex local-map @r{(overlay property)}
1667The @code{local-map} property is similar to @code{keymap} but replaces the
1668buffer's local map rather than augmenting existing keymaps. This also means it
1669has lower precedence than minor mode keymaps.
1670@end table 1670@end table
1671 1671
1672The @code{local-map} and @code{keymap} properties do not affect a 1672The @code{keymap} and @code{local-map} properties do not affect a
1673string displayed by the @code{before-string}, @code{after-string}, or 1673string 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
1675other mouse events that fall on the string, since point is never on 1675other mouse events that fall on the string, since point is never on
1676the string. To bind special mouse events for the string, assign it a 1676the 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
1678Properties}. 1678Properties}.
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}
665text or overlay property. If that is non-@code{nil}, it is the first 665text or overlay property. If that is non-@code{nil}, it is the first
666keymap to be processed, in normal circumstances. Next comes 666keymap to be processed, in normal circumstances.
667any 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
671other keymaps for some of those. The variable 669other 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
673that replaces all the usual active keymaps except the global keymap. 671that replaces all the usual active keymaps except the global keymap.
674Another way to do this is with @code{overriding-terminal-local-map}; 672
675it operates on a per-terminal basis. These variables are documented 673The very highest precedence keymap comes from
676below. 674@code{overriding-terminal-local-map}; it operates on a per-terminal basis and
675is 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
1800characters which have no @code{face} properties are displayed, by 1800characters which have no @code{face} properties are displayed, by
1801default, in the face @code{mode-line} or @code{mode-line-inactive} 1801default, 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
1804special meanings. @xref{Properties in Mode}. 1804special 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
2206mode line. The @code{face} property affects the appearance of text; the 2206mode 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
2211line: 2211line:
@@ -2229,7 +2229,7 @@ structure, and make @var{form} evaluate to a string that has a text
2229property. 2229property.
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
2233keymap only takes real effect for mouse clicks; binding character keys 2233keymap only takes real effect for mouse clicks; binding character keys
2234and function keys to it has no effect, since it is impossible to move 2234and function keys to it has no effect, since it is impossible to move
2235point into the mode line. 2235point into the mode line.