summaryrefslogtreecommitdiff
path: root/lispref
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-06-28 21:19:54 +0000
committerRichard M. Stallman <rms@gnu.org>1998-06-28 21:19:54 +0000
commit0758bd7153245cc0fd1c9ee3167435304cae4dc1 (patch)
treee9d6d9cb2095afb0c29420f15d5949840f30c07e /lispref
parent6d93207c6b477f7ee533d1ef07d380bb1cacb900 (diff)
downloademacs-0758bd7153245cc0fd1c9ee3167435304cae4dc1.tar.gz
*** empty log message ***
Diffstat (limited to 'lispref')
-rw-r--r--lispref/tips.texi13
1 files changed, 13 insertions, 0 deletions
diff --git a/lispref/tips.texi b/lispref/tips.texi
index 5a1b6cc5dcf..b52c0352e0a 100644
--- a/lispref/tips.texi
+++ b/lispref/tips.texi
@@ -147,6 +147,19 @@ any context prevents recognition of escape sequences as function keys in
that context.
@item
+Anything which acts like a temporary mode or state which the user can
+enter and leave should define @kbd{@key{ESC} @key{ESC}} of
+@kbd{@key{ESC} @key{ESC} @key{ESC}} as a way to escape.
+
+For a state which accepts ordinary Emacs commands, or more generally any
+kind of state in which @key{ESC} followed by a function key or arrow key
+is potentially meaningful, then you must not define @kbd{@key{ESC}
+@key{ESC}}, since that would preclude recognizing an escape sequence
+after @key{ESC}. In these states, you should define @kbd{@key{ESC}
+@key{ESC} @key{ESC}} as the way to escape. Otherwise, define
+@kbd{@key{ESC} @key{ESC}} instead.
+
+@item
Applications should not bind mouse events based on button 1 with the
shift key held down. These events include @kbd{S-mouse-1},
@kbd{M-S-mouse-1}, @kbd{C-S-mouse-1}, and so on. They are reserved for