diff options
| author | Richard M. Stallman | 2002-02-06 14:57:57 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-02-06 14:57:57 +0000 |
| commit | 540f653db1742c720077ca50e87c13a17077fc02 (patch) | |
| tree | 3cf36852683be608439d9c6d5ebf2045e5f28252 | |
| parent | e77c1e8c4d7381fc0f6b0f67df083daf4d30992c (diff) | |
| download | emacs-540f653db1742c720077ca50e87c13a17077fc02.tar.gz emacs-540f653db1742c720077ca50e87c13a17077fc02.zip | |
(text-mode-hook-identify): Function deleted.
(text-mode): Set text-mode-variant here.
| -rw-r--r-- | lisp/textmodes/text-mode.el | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lisp/textmodes/text-mode.el b/lisp/textmodes/text-mode.el index e35d02a9a30..90018b067da 100644 --- a/lisp/textmodes/text-mode.el +++ b/lisp/textmodes/text-mode.el | |||
| @@ -65,6 +65,8 @@ You can thus get the full benefit of adaptive filling | |||
| 65 | (see the variable `adaptive-fill-mode'). | 65 | (see the variable `adaptive-fill-mode'). |
| 66 | \\{text-mode-map} | 66 | \\{text-mode-map} |
| 67 | Turning on Text mode runs the normal hook `text-mode-hook'." | 67 | Turning on Text mode runs the normal hook `text-mode-hook'." |
| 68 | (make-local-variable 'text-mode-variant) | ||
| 69 | (setq text-mode-variant t) | ||
| 68 | (set (make-local-variable 'indent-line-function) 'indent-relative)) | 70 | (set (make-local-variable 'indent-line-function) 'indent-relative)) |
| 69 | 71 | ||
| 70 | (define-derived-mode paragraph-indent-text-mode text-mode "Parindent" | 72 | (define-derived-mode paragraph-indent-text-mode text-mode "Parindent" |
| @@ -93,13 +95,6 @@ Turning on Paragraph-Indent minor mode runs the normal hook | |||
| 93 | 95 | ||
| 94 | (defalias 'indented-text-mode 'text-mode) | 96 | (defalias 'indented-text-mode 'text-mode) |
| 95 | 97 | ||
| 96 | (defun text-mode-hook-identify () | ||
| 97 | "Mark that this mode has run `text-mode-hook'. | ||
| 98 | This is how `toggle-text-mode-auto-fill' knows which buffers to operate on." | ||
| 99 | (set (make-local-variable 'text-mode-variant) t)) | ||
| 100 | |||
| 101 | (add-hook 'text-mode-hook 'text-mode-hook-identify) | ||
| 102 | |||
| 103 | (defun toggle-text-mode-auto-fill () | 98 | (defun toggle-text-mode-auto-fill () |
| 104 | "Toggle whether to use Auto Fill in Text mode and related modes. | 99 | "Toggle whether to use Auto Fill in Text mode and related modes. |
| 105 | This command affects all buffers that use modes related to Text mode, | 100 | This command affects all buffers that use modes related to Text mode, |