Article View: gnu.emacs.bug
Article #99950Re: mailrc files
From: Mark D. Baushke
Date: Wed, 11 Apr 1990 02:59
Date: Wed, 11 Apr 1990 02:59
36 lines
2009 bytes
2009 bytes
rdh> When I edit my .mailrc file, I [empirically] have to kill emacs
rdh> and start a new emacs for any new aliasii added to .mailrc to be
rdh> noticed and used when sending mail. Is this a known bug, or am I
rdh> [not] doing something silly?
On 10 Apr 90 14:58:57 GMT, rdh@sli.com (Robert D. Houk) said:
Robert> I wonder why emacs doesn't do this automagically? Sigh. [You get
Robert> used to it being wonderful in almost every regard...]
You can get it to be done automatically...you just have to use the
right hammer.
I put the following as the last few lines of my ~/.mailrc ...
Note: the line which starts with '# write-file-hooks: has been split
into multiple lines to avoid truncation via e-mail. All of the lines
which do not begin with a '#' should be combined to be on the
write-file-hooks line.
# hack-o-rama
# local variables:
# mode: text
# write-file-hooks: ((lambda () (let ((xyzzy (make-temp-name
"/tmp/foo"))) (condition-case () (progn (message "Rehacking
aliases...") (write-region (point-min) (point-max) xyzzy nil 'foo)
(build-mail-aliases xyzzy) (delete-file xyzzy)) (file-error nil)))
nil))
# end:
Enjoy!
--
Mark D. Baushke
Internet: mdb@ESD.3Com.COM
UUCP: {3comvax,auspex,sun}!bridge2!mdb
Technical Details
Message-ID:
<MDB.90Apr10195948@kosciusko.ESD.3Com.COM>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!lll-winken!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!mips!bridge2!mdbReferences:
<9004100329.AA00700@ittc> <9004101458.AA02134@borodin.>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,fee184a1ec44c4a3 X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-04-11 04:00:32 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!lll-winken!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!mips!bridge2!mdb From: mdb@ESD.3Com.COM (Mark D. Baushke) Newsgroups: gnu.emacs.bug Subject: Re: mailrc files Message-ID: <MDB.90Apr10195948@kosciusko.ESD.3Com.COM> Date: 11 Apr 90 02:59:48 GMT References: <9004100329.AA00700@ittc> <9004101458.AA02134@borodin.> Sender: news@bridge2.ESD.3Com.COM Distribution: gnu Organization: 3Com Corp., Mountain View, CA. Lines: 36 Posted: Wed Apr 11 03:59:48 1990 In-reply-to: rdh@sli.com's message of 10 Apr 90 14:58:57 GMT