]> git.eshelyaron.com Git - emacs.git/commitdiff
; Comments.
authorGlenn Morris <rgm@gnu.org>
Tue, 28 Apr 2015 06:46:09 +0000 (23:46 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 28 Apr 2015 06:46:09 +0000 (23:46 -0700)
lisp/mail/rmailedit.el
lisp/textmodes/text-mode.el

index 15d27a085fe129ff68980cc4d8500f032067d1ef..0b49782d80f43442577a855285fe174c207ee971 100644 (file)
@@ -44,6 +44,8 @@
 
 (declare-function rmail-summary-disable "rmailsum" ())
 
+;; We can't straightforwardly make this derive from text-mode, because
+;; we need to bind (rmail-buffer-swapped) around the text-mode call.  :(
 (defun rmail-edit-mode ()
   "Major mode for editing the contents of an Rmail message.
 The editing commands are the same as in Text mode, together with
index 7effa6ade59331858a9fb3f2de88870d382bb28e..1466556ab59e6a1aa85433b92c5732a531a928d6 100644 (file)
@@ -149,7 +149,8 @@ Turning on Paragraph-Indent minor mode runs the normal hook
 (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.
+;; are "derived" from text-mode.  (As of 2015/04, and probably well before,
+;; the only one I can find that doesn't so derive is rmail-edit-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."