diff options
| author | Gerd Moellmann | 2002-04-12 09:49:18 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2002-04-12 09:49:18 +0000 |
| commit | b19f34c7d9aa2c5df6417c8c07b12afd66be1a1a (patch) | |
| tree | e98ff83322b76f97d1947efaef7e790da49ea645 /lispref | |
| parent | e9f8a3abf3230e0141b4ab934a77708408770ae8 (diff) | |
| download | emacs-b19f34c7d9aa2c5df6417c8c07b12afd66be1a1a.tar.gz emacs-b19f34c7d9aa2c5df6417c8c07b12afd66be1a1a.zip | |
From Dave Love. Description of events in marginal areas.
Diffstat (limited to 'lispref')
| -rw-r--r-- | lispref/commands.texi | 29 |
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 | ||
| 1113 | or, for clicks on strings in the mode line, header line or marginal | ||
| 1114 | areas: | ||
| 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 | |||
| 1113 | Here is what the elements normally mean: | 1122 | Here 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} |
| 1141 | This is the time at which the event occurred, in milliseconds. (Since | 1150 | This is the time at which the event occurred, in milliseconds. (Since |
| 1142 | this value wraps around the entire range of Emacs Lisp integers in about | 1151 | this value wraps around the entire range of Emacs Lisp integers in about |
| 1143 | five hours, it is useful only for relating the times of nearby events.) | 1152 | five hours, it is useful only for relating the times of nearby |
| 1153 | events.) | ||
| 1154 | |||
| 1155 | @item @var{string} | ||
| 1156 | This is the string on which the click occurred, including any | ||
| 1157 | properties. | ||
| 1158 | |||
| 1159 | @item @var{string-pos} | ||
| 1160 | This is the position in the string on which the click occurred, | ||
| 1161 | relevant if properties at the click need to be looked up. | ||
| 1144 | 1162 | ||
| 1145 | @item @var{click-count} | 1163 | @item @var{click-count} |
| 1146 | This is the number of rapid repeated presses so far of the same mouse | 1164 | This 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 | |||
| 1158 | the top or left end of the scroll bar, and @var{whole} is the length of | 1176 | the top or left end of the scroll bar, and @var{whole} is the length of |
| 1159 | the entire scroll bar. | 1177 | the entire scroll bar. |
| 1160 | 1178 | ||
| 1161 | If the position is on a mode line or the vertical line separating | 1179 | If 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, |
| 1163 | the symbol @code{mode-line}, @code{header-line}, or | 1181 | then @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 | ||
| 1165 | meaningful data. For the vertical line, @var{x} does not have | 1184 | meaningful data. For the vertical line, @var{x} does not have |
| 1166 | meaningful data. | 1185 | meaningful data. |
| 1167 | 1186 | ||