aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHong Xu2019-10-19 10:43:37 +0200
committerLars Ingebrigtsen2019-10-19 10:43:37 +0200
commitfc6de411a7afeeb197eef0a23b83a5ea9a14bbc6 (patch)
tree3934f91c12e5a957f4fa58d94552e957c8b50bdd
parente4a4aa3057e4ab50ba690fbea3a06e578f62722b (diff)
downloademacs-fc6de411a7afeeb197eef0a23b83a5ea9a14bbc6.tar.gz
emacs-fc6de411a7afeeb197eef0a23b83a5ea9a14bbc6.zip
special-mode doc string clarification
* lisp/simple.el (special-mode): Make the doc string explain what special modes are for (bug#37787).
-rw-r--r--lisp/simple.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index cd674c36e7b..338f3e3fd89 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -474,7 +474,10 @@ Other major modes are defined by comparison with this one."
474 474
475(put 'special-mode 'mode-class 'special) 475(put 'special-mode 'mode-class 'special)
476(define-derived-mode special-mode nil "Special" 476(define-derived-mode special-mode nil "Special"
477 "Parent major mode from which special major modes should inherit." 477 "Parent major mode from which special major modes should inherit.
478
479A special major mode is intended to view specially formatted data
480rather than files. These modes usually use read-only buffers."
478 (setq buffer-read-only t)) 481 (setq buffer-read-only t))
479 482
480;; Making and deleting lines. 483;; Making and deleting lines.