Mh_Init called too soon?

"Andy Bradford" <[email protected]> 30 Sep 2010 23:09:25 -0600
Newsgroups gmane.mail.exmh.devel
Message-ID <[email protected]>
Hello,

I tried override Mh_ReplyAllSetup from mh.tcl by creating:

~/.exmh/lib/mh.patch

and  updating  tclIndex,  however,  because  Mh_Init  is  called  before
SourceHook_Init (in main.tcl), it wasn't loading my patch. Attached is a
patch to main.tcl that seems innocuous. Any reason why this shouldn't be
moved?

Additionally,   maybe   Mh_ReplyAllSetup   should   be   searching   for
replgroupcomps instead of replcomps in mh.tcl? I realize that many users
might already  be accustomed  to the  current behavior  (replcomps being
used for  both Mh_ReplyAllSetup and  Mh_ReplySetup), which is why  I was
trying to put it in my own lib.

Andy

_______________________________________________
Exmh-workers mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/exmh-workers
main.tcl.patch (application/x-patch, 564 B)
--- main.tcl.orig	Thu Sep 30 23:00:09 2010
+++ main.tcl	Thu Sep 30 23:01:12 2010
@@ -15,7 +15,6 @@
     global exmh argv 
 
     Tcl_Tk_Vers_Init	;# Do per-release Tcl/Tk setup here
-    Mh_Init		;# Defines mhProfile and identifies mh vs nmh
 
     Preferences_Init "~/.exmh/exmh-defaults" "$exmh(library)/app-defaults"
 
@@ -50,6 +49,7 @@
 
     SourceHook_Init				;# patches for old modules
 
+    Mh_Init		;# Defines mhProfile and identifies mh vs nmh
     Exec_Init		;# Wrapper around exec
     Mh_Preferences
     Sedit_BindInit	;# Text, Entry class bindings