[mew-int 2948] Flowed mode hook

Christophe TROESTLER <[email protected]> Sat, 11 Dec 2010 14:55:29 +0100 (CET)
Newsgroups gmane.mail.mew.general
Organization Universite de Mons (http://math.umons.ac.be/an/)
Message-ID <20101211.145529.49501227768953300.Christophe.Troestler@umons.ac.be>
Hi,

When using mew-draft-use-format-flowed-hooks to set/unset minor modes 
according to whether the flowed mode is enabled, one would like them 
to be executed when the draft mode is entered.  The attached patch 
fixes that.

Best,
C.
mew-draft.el.patch (text/x-patch, 600 B)
--- mew-draft.el	2010-12-11 14:45:51.000000000 +0100
+++ ../trunk/mew-draft.el	2010-08-31 12:20:48.000000000 +0200
@@ -79,8 +79,7 @@
   (mew-tinfo-set-privacy-type nil)
   (mew-tinfo-set-use-flowed (mew-use-format-flowed (mew-tinfo-get-case)))
   (mew-draft-mode-name) ;; must be after (mew-tinfo-set-encrypted-p encrypted)
-  (run-hooks 'text-mode-hook 'mew-draft-mode-hook
-	     'mew-draft-use-format-flowed-hooks)
+  (run-hooks 'text-mode-hook 'mew-draft-mode-hook)
   ;; auto-fill-function is set by mew-draft-mode-hook
   (when auto-fill-function
     (make-local-variable 'auto-fill-function)