summaryrefslogtreecommitdiff
path: root/doc/lispref/modes.texi
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2022-08-06 16:47:22 +0200
committerStefan Kangas <stefan@marxist.se>2022-08-06 17:17:38 +0200
commita3e894810a484aeac56d97f13d1c507e3d4eb0d5 (patch)
tree7aea4d825f4d77dc39ff9e2013dd31027e51dd36 /doc/lispref/modes.texi
parent56783e605c847c5af57fd6382157f75dd6b14e6f (diff)
downloademacs-a3e894810a484aeac56d97f13d1c507e3d4eb0d5.tar.gz
emacs-a3e894810a484aeac56d97f13d1c507e3d4eb0d5.tar.bz2
emacs-a3e894810a484aeac56d97f13d1c507e3d4eb0d5.zip
Fix defvar-keymap example in elisp manual
* lisp/textmodes/text-mode.el (text-mode-map): Convert to defvar-keymap. * doc/lispref/modes.texi (Example Major Modes): Fix example to match code.
Diffstat (limited to 'doc/lispref/modes.texi')
-rw-r--r--doc/lispref/modes.texi9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index e94093318fc..75eb21522f1 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -1356,11 +1356,10 @@ the conventions listed above:
;; @r{Create the keymap for this mode.}
@group
(defvar-keymap text-mode-map
- "C-M-i" #'ispell-complete-word
- @dots{})
- "Keymap for `text-mode'.
-Many other modes, such as `mail-mode', `outline-mode' and
-`indented-text-mode', inherit all the commands defined in this map.")
+ :doc "Keymap for `text-mode'.
+Many other modes, such as `mail-mode' and `outline-mode', inherit all
+the commands defined in this map."
+ "C-M-i" #'ispell-complete-word)
@end group
@end smallexample