From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/42967 Path: main.gmane.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.gnus.general Subject: Re: problem whith abbrevs in message-mode Date: Thu, 07 Feb 2002 10:03:33 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: <87adul5imy.fsf__37192.3232371502$1042212346@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: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035178134 15001 80.91.224.250 (21 Oct 2002 05:28:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:28:54 +0000 (UTC) Cc: larsi@gnus.org, zsh@cs.rochester.edu, ding@gnus.org, emacs-devel@gnu.org Return-Path: Original-Received: (qmail 17094 invoked from network); 7 Feb 2002 17:05:57 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 7 Feb 2002 17:05:57 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16YrzY-0007qR-00; Thu, 07 Feb 2002 11:05:49 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 07 Feb 2002 11:05:24 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id LAA06533 for ; Thu, 7 Feb 2002 11:03:41 -0600 (CST) Original-Received: (qmail 17064 invoked by alias); 7 Feb 2002 17:03:38 -0000 Original-Received: (qmail 17054 invoked from network); 7 Feb 2002 17:03:38 -0000 Original-Received: from hank.lickey.com (ident-is-dumb@64.81.100.235) by gnus.org with SMTP; 7 Feb 2002 17:03:38 -0000 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 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:42967 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:42967 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