comparison lispref/text.texi @ 51911:9c44faf04f59

(Special Properties): local-map and keymap properties apply based on their stickiness.
author Richard M. Stallman <rms@gnu.org>
date Mon, 14 Jul 2003 15:51:54 +0000
parents 82502bf293e0
children aeb0d981dc7e
comparison
equal deleted inserted replaced
51910:06b6c95cb76e 51911:9c44faf04f59
2760 2760
2761 @item keymap 2761 @item keymap
2762 @cindex keymap of character 2762 @cindex keymap of character
2763 @kindex keymap @r{(text property)} 2763 @kindex keymap @r{(text property)}
2764 The @code{keymap} property specifies an additional keymap for 2764 The @code{keymap} property specifies an additional keymap for
2765 commands. The property's value for the character after point, if 2765 commands. The property's value for the character before point applies
2766 non-@code{nil}, is used for key lookup before the buffer's local map. 2766 if it is non-@code{nil} and rear-sticky, and the property's value for
2767 (For mouse clicks, the @code{keymap} property of the character clicked 2767 the character after point applies if it is non-@code{nil} and
2768 on is the one used.) If the property value is a symbol, the symbol's 2768 front-sticky. When the value applies, it is used for key lookup
2769 function definition is used as the keymap. @xref{Active Keymaps}. 2769 before the buffer's local map. (For mouse clicks, the position of the
2770 click is used instead of the position of point.) If the property
2771 value is a symbol, the symbol's function definition is used as the
2772 keymap. @xref{Active Keymaps}.
2770 2773
2771 @item local-map 2774 @item local-map
2772 @kindex local-map @r{(text property)} 2775 @kindex local-map @r{(text property)}
2773 This property specifies a keymap to use @emph{instead of} the buffer's 2776 This property works like @code{keymap} except that it specifies a
2774 local map. If the property value is a symbol, the symbol's function 2777 keymap to use @emph{instead of} the buffer's local map. For most
2775 definition is used as the keymap. For most purposes (perhaps all 2778 purposes (perhaps all purposes), the @code{keymap} is superior.
2776 purposes), the @code{keymap} is superior.
2777 2779
2778 @item syntax-table 2780 @item syntax-table
2779 The @code{syntax-table} property overrides what the syntax table says 2781 The @code{syntax-table} property overrides what the syntax table says
2780 about this particular character. @xref{Syntax Properties}. 2782 about this particular character. @xref{Syntax Properties}.
2781 2783