From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/8210 Path: main.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Fran=E7ois_Pinard?= Newsgroups: gmane.emacs.gnus.general Subject: Re: .mailrc again Date: 07 Oct 1996 14:09:18 -0400 Sender: pinard@progiciels-bpi.ca Message-ID: References: Reply-To: pinard@iro.umontreal.ca NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.72) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035148408 10748 80.91.224.250 (20 Oct 2002 21:13:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:13:28 +0000 (UTC) Cc: Mark Hovey , ding@ifi.uio.no Return-Path: Original-Received: (qmail 25644 invoked from smtpd); 7 Oct 1996 18:35:19 -0000 Original-Received: from ifi.uio.no (0@129.240.64.2) by deanna.miranova.com with SMTP; 7 Oct 1996 18:35:18 -0000 Original-Received: from rtsq.grics.qc.ca (root@rtsq.grics.qc.ca [199.84.132.10]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Mon, 7 Oct 1996 20:18:35 +0200 Original-Received: by rtsq.grics.qc.ca (8.7.5/8.7.3) with UUCP id OAA12617; Mon, 7 Oct 1996 14:10:13 -0400 X-Authentication-Warning: rtsq.grics.qc.ca: uicule set sender to pinard@icule.progiciels-bpi.ca using -f Original-Received: by icule.progiciels-bpi.ca (8.7.5/8.7.3) id OAA02015; 1996-10-07 14:09:24-04:00 Original-To: Roger Williams X-Face: "b_m|CE6#'Q8fliQrwHl9K,]PA_o'*S~Dva{~b1n*)K*A(BIwQW.:LY?t4~xhYka_.LV?Qq `}X|71X0ea&H]9Dsk!`kxBXlG;q$mLfv_vtaHK_rHFKu]4'<*LWCyUe@ZcI6"*wB5M@[m writes: | > ... if I change my .mailrc file, message-mode doesn't seem to | > reread it in the current Emacs session... |=20 | Of course, M-x rebuild-mail-abbrevs is pretty easy... For once I may help! :-) For years, I've been using such code: (defun maybe-reread-mail-aliases () (let ((mailrc (expand-file-name "~/.mailrc"))) (if (string-equal buffer-file-name mailrc) (rebuild-mail-abbrevs mailrc))) nil) (add-hook 'write-file-hooks 'maybe-reread-mail-aliases) So, I modify ~/.mailrc, and as soon as I do `C-x C-s' on it, changed aliases are immediately usable in the message composition buffer. --=20 Fran=E7ois Pinard ``Vivement GNU!'' pinard@iro.umontreal.c= a Support Programming Freedom, join our League! Ask lpf@lpf.org for info!