diff options
| author | Richard M. Stallman | 2002-02-14 01:31:21 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-02-14 01:31:21 +0000 |
| commit | ebda95a20c9fb82667af576e72676bde324fde75 (patch) | |
| tree | 574e5b30e29885a069d7de955c2802d3adf26bde /lisp/textmodes | |
| parent | f788be92aea47838c86f3f41eea7b50ea15355e5 (diff) | |
| download | emacs-ebda95a20c9fb82667af576e72676bde324fde75.tar.gz emacs-ebda95a20c9fb82667af576e72676bde324fde75.zip | |
(text-mode-hook-identify): Restore previous definition.
Add to text-mode-hook again.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/text-mode.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/textmodes/text-mode.el b/lisp/textmodes/text-mode.el index 2fe9efecdbd..ad39b6f896e 100644 --- a/lisp/textmodes/text-mode.el +++ b/lisp/textmodes/text-mode.el | |||
| @@ -95,8 +95,14 @@ Turning on Paragraph-Indent minor mode runs the normal hook | |||
| 95 | 95 | ||
| 96 | (defalias 'indented-text-mode 'text-mode) | 96 | (defalias 'indented-text-mode 'text-mode) |
| 97 | 97 | ||
| 98 | ;; No-op, defined because some user customizations use it. | 98 | ;; This can be made a no-op once all modes that use text-mode-hook |
| 99 | (defun text-mode-hook-identify () nil) | 99 | ;; are "derived" from text-mode. |
| 100 | (defun text-mode-hook-identify () | ||
| 101 | "Mark that this mode has run `text-mode-hook'. | ||
| 102 | This is how `toggle-text-mode-auto-fill' knows which buffers to operate on." | ||
| 103 | (set (make-local-variable 'text-mode-variant) t)) | ||
| 104 | |||
| 105 | (add-hook 'text-mode-hook 'text-mode-hook-identify) | ||
| 100 | 106 | ||
| 101 | (defun toggle-text-mode-auto-fill () | 107 | (defun toggle-text-mode-auto-fill () |
| 102 | "Toggle whether to use Auto Fill in Text mode and related modes. | 108 | "Toggle whether to use Auto Fill in Text mode and related modes. |