From b8f0a954b883d4d46983078f70a8b59a61cfa693 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 17 Sep 2011 15:49:57 -0400 Subject: [PATCH] * doc/lispref/tips.texi: Don't bind a key sequence ending in C-g. Suggested by Edward O'Connor. --- doc/lispref/ChangeLog | 5 +++++ doc/lispref/tips.texi | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index a5db84e8777..24108cc6a46 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,8 @@ +2011-09-17 Chong Yidong + + * tips.texi (Key Binding Conventions): Don't bind a key sequence + ending in C-g. Suggested by Edward O'Connor. + 2011-09-17 Eli Zaretskii * numbers.texi (Integer Basics): Add indexing for diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi index be37eb2034b..fd875b45be9 100644 --- a/doc/lispref/tips.texi +++ b/doc/lispref/tips.texi @@ -319,6 +319,10 @@ The reason for this rule is that a non-prefix binding for @key{ESC} in any context prevents recognition of escape sequences as function keys in that context. +@item +Similarly, don't bind a key sequence ending in @key{C-g}, since that +is commonly used to cancel a key sequence. + @item Anything which acts like a temporary mode or state which the user can enter and leave should define @kbd{@key{ESC} @key{ESC}} or -- 2.39.5