diff options
| author | Hong Xu | 2019-10-19 10:43:37 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-19 10:43:37 +0200 |
| commit | fc6de411a7afeeb197eef0a23b83a5ea9a14bbc6 (patch) | |
| tree | 3934f91c12e5a957f4fa58d94552e957c8b50bdd | |
| parent | e4a4aa3057e4ab50ba690fbea3a06e578f62722b (diff) | |
| download | emacs-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.el | 5 |
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 | |||
| 479 | A special major mode is intended to view specially formatted data | ||
| 480 | rather 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. |