From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: mailabbrev.el, mailalias.el and related package. Date: Sun, 17 Feb 2002 09:48:47 -0700 (MST) Message-ID: <200202171648.g1HGmlu10290@aztec.santafe.edu> References: <200202140440.WAA20427@eel.dms.auburn.edu> <200202151036.g1FAaMU07264@santafe.santafe.edu> <200202160447.WAA29111@eel.dms.auburn.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: quimby2.netfonds.no X-Trace: quimby2.netfonds.no 1013965501 11563 195.204.10.66 (17 Feb 2002 17:05:01 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 17 Feb 2002 17:05:01 GMT Cc: 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 16cUkG-00030J-00 for ; Sun, 17 Feb 2002 18:05:00 +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 16cUXH-000207-00; Sun, 17 Feb 2002 11:51:35 -0500 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16cUUa-0001fo-00; Sun, 17 Feb 2002 11:48:48 -0500 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g1HGmlu12049; Sun, 17 Feb 2002 09:48:47 -0700 (MST) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g1HGmlu10290; Sun, 17 Feb 2002 09:48:47 -0700 (MST) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: teirllm@dms.auburn.edu In-reply-to: <200202160447.WAA29111@eel.dms.auburn.edu> (message from Luc Teirlinck on Fri, 15 Feb 2002 22:47:29 -0600 (CST)) 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:1261 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1261 Now, when I type To: emacs-devel@gnu.-!- it gets expanded to To: emacs-devel@ I reproduced the failure, and fixed it by changing the syntax of @. However, a subsequent message pointed out that other more obscure problem cases remain. I think the place to fix them is in the pre-abbrev-expand-hook function. It can check the context carefully, I think, and prevent expansion in inappropriate circumstances. The current mailabbrev.el needs to write mailabbrevs in ~/.abbrevs_defs, because that is the only way it can save them. Of course aliases defined in .mailrc are already stored there, but mailabbrev needs to worry about aliases defined in other ways. That is a bug, which I fixed recently by labeling abbrevs read from .mailrc as "system abbrevs" (a new feature). My package would change that totally, because it would have all aliases defined in .mailrc. It would still use abbrevs internally, but these would be essentially invisible to users. That is good. mailabbrev should never store these in .abbrev_defs. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel