From 988cd8e73d3d23308fa72e6b8660f5dd35ef00be Mon Sep 17 00:00:00 2001 From: Jared Finder Date: Sun, 4 Oct 2020 00:01:23 -0700 Subject: [PATCH 2/2] Updating docs with all special window prefix keys. * doc/lispref/commands.texi (Key Sequence Input): Add documentation for missing special window areas. Explicitly call out window or frame. --- doc/lispref/commands.texi | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi index 8959175def..85bd2c1ed9 100644 --- a/doc/lispref/commands.texi +++ b/doc/lispref/commands.texi @@ -2516,8 +2516,14 @@ Key Sequence Input @cindex @code{vertical-scroll-bar} prefix key @cindex @code{menu-bar} prefix key @cindex @code{tab-bar} prefix key -@cindex mouse events, in special parts of frame -When mouse events occur in special parts of a window, such as a mode +@cindex @code{left-margin} prefix key +@cindex @code{right-margin} prefix key +@cindex @code{left-fringe} prefix key +@cindex @code{right-fringe} prefix key +@cindex @code{right-divider} prefix key +@cindex @code{bottom-divider} prefix key +@cindex mouse events, in special parts of window or frame +When mouse events occur in special parts of a window or frame, such as a mode line or a scroll bar, the event type shows nothing special---it is the same symbol that would normally represent that combination of mouse button and modifier keys. The information about the window part is kept @@ -2525,9 +2531,11 @@ Key Sequence Input @code{read-key-sequence} translates this information into imaginary prefix keys, all of which are symbols: @code{tab-line}, @code{header-line}, @code{horizontal-scroll-bar}, @code{menu-bar}, @code{tab-bar}, @code{mode-line}, -@code{vertical-line}, and @code{vertical-scroll-bar}. You can define -meanings for mouse clicks in special window parts by defining key -sequences using these imaginary prefix keys. +@code{vertical-line}, @code{vertical-scroll-bar}, @code{left-margin}, +@code{right-margin}, @code{left-fringe}, @code{right-fringe}, +@code{right-divider}, and @code{bottom-divider}. You can define meanings for +mouse clicks in special window parts by defining key sequences using these +imaginary prefix keys. For example, if you call @code{read-key-sequence} and then click the mouse on the window's mode line, you get two events, like this: -- 2.20.1