Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ce75fd23
Commit
ce75fd23
authored
May 23, 2000
by
Gerd Moellmann
Browse files
*** empty log message ***
parent
d1e4948d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
31 deletions
+21
-31
etc/NEWS
etc/NEWS
+5
-0
lisp/ChangeLog
lisp/ChangeLog
+1
-1
lispref/display.texi
lispref/display.texi
+2
-10
lispref/modes.texi
lispref/modes.texi
+8
-8
lispref/text.texi
lispref/text.texi
+4
-11
src/ChangeLog
src/ChangeLog
+1
-1
No files found.
etc/NEWS
View file @
ce75fd23
...
...
@@ -1184,6 +1184,11 @@ functionality with aliases for the mldrag functions.
*** eval-reg.el has been obsoleted by changes to edebug.el and removed.
*** ph.el has been obsoleted by EUDC and removed.
*
Lisp changes made after edition 2.6 of the Emacs Lisp Manual,
(Display-related
features are described in a page of their own below.)
*
Lisp changes in Emacs 21.1 (see following page for display-related features)
...
...
lisp/ChangeLog
View file @
ce75fd23
...
...
@@ -17,7 +17,7 @@
2000-05-22 Sam Steingold <sds@gnu.org>
* info.el (Info-fontify-node):
f
ixed the call to
* info.el (Info-fontify-node):
F
ixed the call to
`add-text-properties' (bug introduced on 2000-05-18).
2000-05-22 Dave Love <fx@gnu.org>
...
...
lispref/display.texi
View file @
ce75fd23
...
...
@@ -895,22 +895,14 @@ sense---only on the screen.
If
this
property
is
non
-@
code
{
nil
},
the
overlay
is
deleted
automatically
if
it
ever
becomes
empty
(
i
.
e
.,
if
it
spans
no
characters
).
@
item
key
map
@
item
local
-
map
@
cindex
keymap
of
character
(
and
overlays
)
@
kindex
key
map
@
r
{(
overlay
property
)}
@
kindex
local
-
map
@
r
{(
overlay
property
)}
If
this
property
is
non
-@
code
{
nil
},
it
specifies
a
keymap
for
a
portion
of
the
text
.
The
property
's value replaces the buffer'
s
local
map
,
when
the
character
after
point
is
within
the
overlay
.
@
xref
{
Active
Keymaps
}.
@
end
table
@
item
local
-
map
@
cindex
keymap
of
character
(
and
overlays
)
@
kindex
local
-
map
@
r
{(
overlay
property
)}
This
property
is
like
the
@
code
{
keymap
}
property
,
except
that
it
doesn
't
replace the buffer'
s
local
map
.
Keys
not
defined
in
the
keymap
specified
with
@
code
{
local
-
map
}
are
looked
up
in
the
buffer
's local map.
@end table
@
node
Managing
Overlays
@
subsection
Managing
Overlays
...
...
lispref/modes.texi
View file @
ce75fd23
...
...
@@ -1449,28 +1449,28 @@ The value of @code{global-mode-string}. Currently, only
Starting in Emacs 21, certain text properties are meaningful in the
mode line. The @code{face} property affects the appearance of text; the
@code{help-echo} property associate help strings with the text, and
@code{
key
map} can make the text mouse-sensitive.
@code{
local-
map} can make the text mouse-sensitive.
There are three ways to specify text properties for text in the mode
line:
@enumerate
@item
Put a string with the @code{
key
map} property directly into the
mode-line
data structure.
Put a string with the @code{
local-
map} property directly into the
mode-line
data structure.
@item
Put a @code{
key
map} property on a mode-line %-construct
such as
@samp{%12b}; then the expansion of the %-construct
will have that same
text property.
Put a @code{
local-
map} property on a mode-line %-construct
such as
@samp{%12b}; then the expansion of the %-construct
will have that same
text property.
@item
Use a list containing @code{:eval @var{form}} in the mode-line data
structure, and make @var{form} evaluate to a string that has a
@code{
key
map} property.
@code{
local-
map} property.
@end enumerate
You use the @code{
key
map} property to specify a keymap. Like any
You use the @code{
local-
map} property to specify a keymap. Like any
keymap, it can bind character keys and function keys; but that has no
effect, since it is impossible to move point into the mode line. This
keymap can only take real effect for mouse clicks.
...
...
lispref/text.texi
View file @
ce75fd23
...
...
@@ -2659,23 +2659,16 @@ move the mouse onto that text, Emacs displays that string in the echo
area, or in the tooltip window. This feature is used in the mode line.
It is available starting in Emacs 21.
@item
key
map
@item
local-
map
@cindex keymap of character
@kindex
key
map @r{(text property)}
@kindex
local-
map @r{(text property)}
You can specify a different keymap for some of the text in a buffer by
means of the @code{
key
map} property. The property's value for the
means of the @code{
local-
map} property. The property's value for the
character after point, if non-@code{nil}, is used for key lookup instead
of the buffer's local map. If the property value is a symbol, the
symbol's function definition is used as the keymap. @xref{Active
Keymaps}.
@item local-map
@cindex keymap of character
@kindex local-map @r{(text property)}
This property is like the @code{keymap} property, except that it doesn't
replace the buffer's local map. Keys not defined in the keymap
specified with @code{local-map} are looked up in the buffer's local map.
@item syntax-table
The @code{syntax-table} property overrides what the syntax table says
about this particular character. @xref{Syntax Properties}.
...
...
@@ -3069,7 +3062,7 @@ file to visit, based on the position found in the event.
Instead of defining a mouse command for the major mode, you can define
a key binding for the clickable text itself, using the @code{local-map}
or @code{keymap}
text propert
ies
:
text propert
y
:
@example
(let ((map (make-sparse-keymap)))
...
...
src/ChangeLog
View file @
ce75fd23
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment