]> code.delx.au - gnu-emacs/commitdiff
Minor fixes for Lispref's modes.texi
authorChong Yidong <cyd@gnu.org>
Wed, 18 Dec 2013 05:31:11 +0000 (13:31 +0800)
committerChong Yidong <cyd@gnu.org>
Wed, 18 Dec 2013 05:31:11 +0000 (13:31 +0800)
* modes.texi (Defining Minor Modes): Fix typo.
(Keymaps and Minor Modes): Fix binding convention.

Fixes: debbugs:11522 debbugs:14874
doc/lispref/ChangeLog
doc/lispref/modes.texi

index 4f5ff0ecf4483b218022b41423dc78e0619baaf8..07d153ed80e95f5ff7954583d48f15083f9c3546 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-18  Chong Yidong  <cyd@gnu.org>
+
+       * modes.texi (Defining Minor Modes): Fix typo (Bug#14874).
+       (Keymaps and Minor Modes): Fix binding convention (Bug#11522).
+
 2013-12-13  Glenn Morris  <rgm@gnu.org>
 
        * internals.texi (Building Emacs):
index dc643bda9c8669d2f8b6559942d3f5407e091976..f04c0c1ea9f58323267762dd11df7c50d18f6154 100644 (file)
@@ -1506,9 +1506,11 @@ designed for abbrevs and Auto Fill mode.  Do not try substituting your
 own definition of @code{self-insert-command} for the standard one.  The
 editor command loop handles this function specially.)
 
-The key sequences bound in a minor mode should consist of @kbd{C-c}
-followed by one of @kbd{.,/?`'"[]\|~!#$%^&*()-_+=}.  (The other
-punctuation characters are reserved for major modes.)
+Minor modes may bind commands to key sequences consisting of @kbd{C-c}
+followed by a punctuation character.  However, sequences consisting of
+@kbd{C-c} followed by one of @kbd{@{@}<>:;}, or a control character or
+digit, are reserved for major modes.  Also, @kbd{C-c @var{letter}} is
+reserved for users.  @xref{Key Binding Conventions}.
 
 @node Defining Minor Modes
 @subsection Defining Minor Modes
@@ -1683,7 +1685,7 @@ minor modes don't need any.
 This defines a global toggle named @var{global-mode} whose meaning is
 to enable or disable the buffer-local minor mode @var{mode} in all
 buffers.  To turn on the minor mode in a buffer, it uses the function
-@var{turn-on}; to turn off the minor mode, it calls @code{mode} with
+@var{turn-on}; to turn off the minor mode, it calls @var{mode} with
 @minus{}1 as argument.
 
 Globally enabling the mode also affects buffers subsequently created