From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.devel Subject: Re: problem whith abbrevs in message-mode Date: Thu, 07 Feb 2002 10:03:33 -0700 Message-ID: <87adul5imy.fsf@squeaker.lickey.com> References: <2n3d0wo299.fsf@zsh.cs.rochester.edu> <200201240800.g0O806B17062@aztec.santafe.edu> <200201250621.g0P6LGk18813@aztec.santafe.edu> <200201271856.g0RIu1v21410@aztec.santafe.edu> <873d0ng0p7.fsf@squeaker.lickey.com> <200202030441.g134fwE02150@aztec.santafe.edu> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1013102072 22672 195.204.10.66 (7 Feb 2002 17:14:32 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 7 Feb 2002 17:14:32 GMT Cc: larsi@gnus.org, zsh@cs.rochester.edu, ding@gnus.org, emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16Ys7z-0005ta-00 for ; Thu, 07 Feb 2002 18:14:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16Yrzt-0003wd-00; Thu, 07 Feb 2002 12:06:09 -0500 Original-Received: from hank.lickey.com ([64.81.100.235]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16YrxT-0003pD-00; Thu, 07 Feb 2002 12:03:39 -0500 Original-Received: from squeaker.lickey.com (squeaker.lickey.com [192.168.100.10]) by hank.lickey.com (Postfix) with ESMTP id 53A4CEE41; Thu, 7 Feb 2002 10:03:36 -0700 (MST) Original-Received: from localhost (localhost [127.0.0.1]) by squeaker.lickey.com (Postfix) with ESMTP id 87C06BF74; Thu, 7 Feb 2002 10:03:34 -0700 (MST) Original-Received: by squeaker.lickey.com (Postfix, from userid 1000) id A54C0BD49; Thu, 7 Feb 2002 10:03:33 -0700 (MST) Mail-Copies-To: never Original-To: rms@gnu.org Mail-Followup-To: rms@gnu.org, larsi@gnus.org, zsh@cs.rochester.edu, ding@gnus.org, emacs-devel@gnu.org In-Reply-To: <200202030441.g134fwE02150@aztec.santafe.edu> (Richard Stallman's message of "Sat, 2 Feb 2002 21:41:58 -0700 (MST)") Original-Lines: 41 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i386-debian-linux-gnu) X-Virus-Scanned: by AMaViS snapshot-20010714 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:859 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:859 Richard Stallman writes: > This is very strange. mailabbrev.el does assume the existence > of mail-mode-abbrev-table, as you say. But the code in > sendmail.el seems not to have used mail-mode-abbrev-table > until a few months ago. Perhaps this was an unreported bug. > I had better investigate further. > > Maybe sendmail-pre-abbrev-expand-hook needs to always restore > local-abbrev-table and the syntax table to whatever they were > before it was called? > > I agree. The reason this was not done was an undoc feature I didn't > know about: setting up a different, convenient syntax table for > address headers. The feature could be useful but the implementation > was unreliable, so I eliminated it. > > Does this version solve the problem? Yes, thanks for looking into it. I've now got message-mode using text-mode-abbrev-table and the setting takes. > ;;; mailabbrev.el --- abbrev-expansion of mail aliases [...] > (defun sendmail-pre-abbrev-expand-hook () [...] > (let ((local-abbrev-table mail-abbrevs) > (old-syntax-table (syntax-table))) [...] I assume that let statement is the key. -- matt _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel