emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/textmodes/text-mode.el


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/textmodes/text-mode.el
Date: Wed, 13 Feb 2002 20:28:57 -0500

Index: emacs/lisp/textmodes/text-mode.el
diff -c emacs/lisp/textmodes/text-mode.el:1.38 
emacs/lisp/textmodes/text-mode.el:1.39
*** emacs/lisp/textmodes/text-mode.el:1.38      Fri Feb  8 08:57:03 2002
--- emacs/lisp/textmodes/text-mode.el   Wed Feb 13 20:28:57 2002
***************
*** 95,102 ****
        
  (defalias 'indented-text-mode 'text-mode)
  
! ;; No-op, defined because some user customizations use it.
! (defun text-mode-hook-identify () nil)
  
  (defun toggle-text-mode-auto-fill ()
    "Toggle whether to use Auto Fill in Text mode and related modes.
--- 95,108 ----
        
  (defalias 'indented-text-mode 'text-mode)
  
! ;; 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]