aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorGerd Moellmann2002-04-12 09:49:18 +0000
committerGerd Moellmann2002-04-12 09:49:18 +0000
commitb19f34c7d9aa2c5df6417c8c07b12afd66be1a1a (patch)
treee98ff83322b76f97d1947efaef7e790da49ea645 /lispref
parente9f8a3abf3230e0141b4ab934a77708408770ae8 (diff)
downloademacs-b19f34c7d9aa2c5df6417c8c07b12afd66be1a1a.tar.gz
emacs-b19f34c7d9aa2c5df6417c8c07b12afd66be1a1a.zip
From Dave Love. Description of events in marginal areas.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/commands.texi29
1 files changed, 24 insertions, 5 deletions
diff --git a/lispref/commands.texi b/lispref/commands.texi
index 343617c6169..46b7124c54b 100644
--- a/lispref/commands.texi
+++ b/lispref/commands.texi
@@ -1110,6 +1110,15 @@ this form:
1110 @var{click-count}) 1110 @var{click-count})
1111@end example 1111@end example
1112 1112
1113or, for clicks on strings in the mode line, header line or marginal
1114areas:
1115
1116@example
1117(@var{event-type}
1118 (@var{window} @var{buffer-pos} (@var{x} . @var{y}) @var{timestamp} (@var{string} . @var{string-pos})
1119 @var{click-count})
1120@end example
1121
1113Here is what the elements normally mean: 1122Here is what the elements normally mean:
1114 1123
1115@table @asis 1124@table @asis
@@ -1140,7 +1149,16 @@ This is the buffer position of the character clicked on.
1140@item @var{timestamp} 1149@item @var{timestamp}
1141This is the time at which the event occurred, in milliseconds. (Since 1150This is the time at which the event occurred, in milliseconds. (Since
1142this value wraps around the entire range of Emacs Lisp integers in about 1151this value wraps around the entire range of Emacs Lisp integers in about
1143five hours, it is useful only for relating the times of nearby events.) 1152five hours, it is useful only for relating the times of nearby
1153events.)
1154
1155@item @var{string}
1156This is the string on which the click occurred, including any
1157properties.
1158
1159@item @var{string-pos}
1160This is the position in the string on which the click occurred,
1161relevant if properties at the click need to be looked up.
1144 1162
1145@item @var{click-count} 1163@item @var{click-count}
1146This is the number of rapid repeated presses so far of the same mouse 1164This is the number of rapid repeated presses so far of the same mouse
@@ -1158,10 +1176,11 @@ If the location is in a scroll bar, then @var{buffer-pos} is the symbol
1158the top or left end of the scroll bar, and @var{whole} is the length of 1176the top or left end of the scroll bar, and @var{whole} is the length of
1159the entire scroll bar. 1177the entire scroll bar.
1160 1178
1161If the position is on a mode line or the vertical line separating 1179If the position is on a mode line, the vertical line separating
1162@var{window} from its neighbor to the right, then @var{buffer-pos} is 1180@var{window} from its neighbor to the right, or in a marginal area,
1163the symbol @code{mode-line}, @code{header-line}, or 1181then @var{buffer-pos} is the symbol @code{mode-line},
1164@code{vertical-line}. For the mode line, @var{y} does not have 1182@code{header-line}, @code{vertical-line}, @code{left-margin}, or
1183@code{right-margin}. For the mode line, @var{y} does not have
1165meaningful data. For the vertical line, @var{x} does not have 1184meaningful data. For the vertical line, @var{x} does not have
1166meaningful data. 1185meaningful data.
1167 1186