From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Troubles with abbrev-mode Date: Tue, 26 Sep 2006 23:33:22 +0200 Organization: University Koblenz-Landau Campus Koblenz Message-ID: <87hcyu8g9p.fsf@baldur.nicundtas.de> References: <87r6xytq1w.fsf@baldur.nicundtas.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159310445 10769 80.91.229.2 (26 Sep 2006 22:40:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Sep 2006 22:40:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 27 00:40:39 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GSLbE-0001rb-UA for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Sep 2006 00:40:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSLbE-00033k-Ff for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Sep 2006 18:40:24 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!news.belwue.de!news.uni-kl.de!cache.uni-koblenz.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: dslb-084-063-029-049.pools.arcor-ip.net Original-X-Trace: cache.uni-koblenz.de 1159306402 27685 84.63.29.49 (26 Sep 2006 21:33:22 GMT) Original-X-Complaints-To: news@cache.uni-koblenz.de Original-NNTP-Posting-Date: Tue, 26 Sep 2006 21:33:22 +0000 (UTC) User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:rEvF1jT7mtkYtYPuek2opQ68InM= Original-Xref: shelby.stanford.edu gnu.emacs.help:142037 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37657 Archived-At: Reiner Steib writes: > FWIW, `message.el' sets `local-abbrev-table' to > `text-mode-abbrev-table': > > [...] > > I don't know if this is good or not, but it has been there since ages: > > | 6.202 (zsh 07-Feb-02): (setq local-abbrev-table text-mode-abbrev-table) Hm, in my opinion that's a really bad behavior, because... a) if the user wants that behavior, he can set in `message-mode-hook'. b) adding abbrevs in message mode (with `add-mode-abbrev' or `inverse-add-mode-abbrev') adds it to `message-mode-abbrev-table'. So you effectively cannot add abbrevs interactively. So I see two possible fixes: 1) Delete the setq. (To me that seems right and proper.) 2) Fix `add-mode-abbrev' and `inverse-add-mode-abbrev', so that they insert into `local-abbrev-table'. To me the second point should be done, too, because that's what a user would expect. Only then he has the possibility to use a abbrev-table for multiple modes, e.g. text-mode-abbrev-table for message-mode-abbrev-table. What do you mean? Bye, Tassilo -- A morning without coffee is like something without something else.