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: Sat, 30 Sep 2006 00:17:34 +0200 Organization: University Koblenz-Landau Campus Koblenz Message-ID: <878xk2e2rl.fsf@baldur.nicundtas.de> References: <87r6xytq1w.fsf@baldur.nicundtas.de> <87hcyu8g9p.fsf@baldur.nicundtas.de> <871wpx1whw.fsf@baldur.nicundtas.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1159572725 22321 80.91.229.2 (29 Sep 2006 23:32:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2006 23:32:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 30 01:32:00 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 1GTRpl-0000Ia-1S for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Sep 2006 01:31:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTRpk-0002IX-Ip for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Sep 2006 19:31:56 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-kl.de!cache.uni-koblenz.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: dslb-084-063-026-144.pools.arcor-ip.net Original-X-Trace: cache.uni-koblenz.de 1159568255 12280 84.63.26.144 (29 Sep 2006 22:17:35 GMT) Original-X-Complaints-To: news@cache.uni-koblenz.de Original-NNTP-Posting-Date: Fri, 29 Sep 2006 22:17:35 +0000 (UTC) User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:x3oF017V6U4ek/2vL+WHBIKjgnA= Original-Xref: shelby.stanford.edu gnu.emacs.help:142104 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:37724 Archived-At: Reiner Steib writes: >>> `message-mode' derived from `text-mode': Do we have guidelines / >>> conventions / best practice in Emacs on how to deal with abbrevs in >>> derived modes? >> >> As I'm not really involved in emacs development I don't know. Should >> I start a new thread about point 2 in gmane.emacs.devel? > > Maybe a good idea. Gnmpf, I cannot reproduce the problem anymore. I don't even know if the problem existed sometime at all or if I was confused, which is more likely. ,----[ ~/uni/repos/heimdall-uni/programs/elisp/th-abbrev.el ] | [...] | (define-abbrev-table 'th-emacs-lisp-mode-abbrev-table | '(("da" "(defalias °)" (lambda () | (th-abbrev-set-point))) | [...] )))) | | (add-hook 'emacs-lisp-mode-hook | (lambda () | (setq local-abbrev-table th-emacs-lisp-mode-abbrev-table) | (th-abbrev-mode-initialize))) | | (define-abbrev-table 'th-message-mode-abbrev-table | '([...] | ("vg" "Viele Grüße,\n°" (lambda () | (th-abbrev-set-point))))) | | (add-hook 'message-mode-hook | (lambda () | (setq local-abbrev-table th-message-mode-abbrev-table) | (th-abbrev-mode-initialize))) `---- Whenever I add an abbrev interactively it goes into the local abbrev-table (one of the th--abbrev-tables), which is correct. So the only question is why gnus uses text-mode-abbrev-table (where interactively added abbrevs go, too) when there's a message-mode-abbrev-table in `edit-abbrevs' by default. Regards, Tassilo -- A morning without coffee is like something without something else.