Mercurial > emacs
changeset 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 | 06b6c95cb76e |
children | 3abd89560852 |
files | lispref/text.texi |
diffstat | 1 files changed, 11 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/text.texi Mon Jul 14 15:30:21 2003 +0000 +++ b/lispref/text.texi Mon Jul 14 15:51:54 2003 +0000 @@ -2762,18 +2762,20 @@ @cindex keymap of character @kindex keymap @r{(text property)} The @code{keymap} property specifies an additional keymap for -commands. The property's value for the character after point, if -non-@code{nil}, is used for key lookup before the buffer's local map. -(For mouse clicks, the @code{keymap} property of the character clicked -on is the one used.) If the property value is a symbol, the symbol's -function definition is used as the keymap. @xref{Active Keymaps}. +commands. The property's value for the character before point applies +if it is non-@code{nil} and rear-sticky, and the property's value for +the character after point applies if it is non-@code{nil} and +front-sticky. When the value applies, it is used for key lookup +before the buffer's local map. (For mouse clicks, the position of the +click is used instead of the position of point.) If the property +value is a symbol, the symbol's function definition is used as the +keymap. @xref{Active Keymaps}. @item local-map @kindex local-map @r{(text property)} -This property specifies a keymap to use @emph{instead of} the buffer's -local map. If the property value is a symbol, the symbol's function -definition is used as the keymap. For most purposes (perhaps all -purposes), the @code{keymap} is superior. +This property works like @code{keymap} except that it specifies a +keymap to use @emph{instead of} the buffer's local map. For most +purposes (perhaps all purposes), the @code{keymap} is superior. @item syntax-table The @code{syntax-table} property overrides what the syntax table says