mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 11:50:51 -08:00
(text-mode-hook-identify): Restore previous definition.
Add to text-mode-hook again.
This commit is contained in:
parent
f788be92ae
commit
ebda95a20c
2 changed files with 11 additions and 2 deletions
|
|
@ -95,8 +95,14 @@ Turning on Paragraph-Indent minor mode runs the normal hook
|
|||
|
||||
(defalias 'indented-text-mode 'text-mode)
|
||||
|
||||
;; No-op, defined because some user customizations use it.
|
||||
(defun text-mode-hook-identify () nil)
|
||||
;; This can be made a no-op once all modes that use text-mode-hook
|
||||
;; are "derived" from text-mode.
|
||||
(defun text-mode-hook-identify ()
|
||||
"Mark that this mode has run `text-mode-hook'.
|
||||
This is how `toggle-text-mode-auto-fill' knows which buffers to operate on."
|
||||
(set (make-local-variable 'text-mode-variant) t))
|
||||
|
||||
(add-hook 'text-mode-hook 'text-mode-hook-identify)
|
||||
|
||||
(defun toggle-text-mode-auto-fill ()
|
||||
"Toggle whether to use Auto Fill in Text mode and related modes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue