From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.help Subject: Re: Troubles with abbrev-mode Date: Wed, 27 Sep 2006 09:56:10 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <87r6xytq1w.fsf@baldur.nicundtas.de> <87hcyu8g9p.fsf@baldur.nicundtas.de> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159346592 6895 80.91.229.2 (27 Sep 2006 08:43:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Sep 2006 08:43:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 27 10:43:04 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 1GSUzl-0007Vb-0n for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Sep 2006 10:42:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSUz1-0004jd-C9 for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Sep 2006 04:41:35 -0400 Original-Newsgroups: gnu.emacs.help X-Face: .*T0'iU(sujq_j9\J>-d4fg; N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:Pqw/4YDdcKJXdn35NZ5VvkWPwtI= Original-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1159343969 134.60.10.123 (27 Sep 2006 09:59:29 +0200) Original-Lines: 54 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!news.tiscali.de!news.belwue.de!news.uni-ulm.de!viandante.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:142046 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:37665 Archived-At: On Tue, Sep 26 2006, Tassilo Horn wrote: > Reiner Steib writes: >> | 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'. And if he doesn't want the current behavior, he can probably also do it in `message-mode-hook' now? [1] > 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.) This will break existing configurations, wouldn't it? `message-mode' derived from `text-mode': Do we have guidelines / conventions / best practice in Emacs on how to deal with abbrevs in derived modes? > 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? I don't have a strong opinion here (as I don't know what the docs suggest here). [1] BTW, in my init files I find... (add-hook 'gnus-message-setup-hook '(lambda () (when (boundp 'rs-message-mode-abbrev-table) (setq local-abbrev-table rs-message-mode-abbrev-table)) [...] ... but I don't exactly recall it's purpose. At least, I have some abbrevs in message-mode that are not present in text-mode. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/