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: Troubles with abbrev-mode Date: Tue, 26 Sep 2006 20:56:27 +0200 Organization: University Koblenz-Landau Campus Koblenz Message-ID: <87r6xytq1w.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 1159299648 5198 80.91.229.2 (26 Sep 2006 19:40:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Sep 2006 19:40:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 26 21:40:44 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 1GSIn5-0005uF-T8 for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Sep 2006 21:40:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSIn5-0003Z2-AB for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Sep 2006 15:40:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!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-029-049.pools.arcor-ip.net Original-X-Trace: cache.uni-koblenz.de 1159296987 19008 84.63.29.49 (26 Sep 2006 18:56:27 GMT) Original-X-Complaints-To: news@cache.uni-koblenz.de Original-NNTP-Posting-Date: Tue, 26 Sep 2006 18:56:27 +0000 (UTC) User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:5D9A5PZOqTwAl+7ua6dL3asH+Hk= Original-Xref: shelby.stanford.edu gnu.emacs.help:142031 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:37651 Archived-At: Hi all, I want to start using abbrev-mode but I don't get it right. I use emacs from the current CVS head, which I updated today. Those are my abbrevs (`list-abbrevs'): --8<---------------cut here---------------start------------->8--- (message-mode-abbrev-table) "lg" 0 "Liebe Grüße" "mw" 0 "meines Wissens" "vg" 0 "Viele Grüße," (text-mode-abbrev-table) "vg" 3 "Viele Grüße," (lisp-mode-abbrev-table) "da" 0 "defalias" "dl" 0 "dolist (" "dm" 0 "defmacro" "ia" 0 "interactive" "se" 0 "save-excursion" "swe" 0 "save-window-excursion" --8<---------------cut here---------------end--------------->8--- And those are my problems: a) The abbrevs for `message-mode' I defined with `edit-abbrevs'. Then I started writing a message (in `message-mode') and wondered why my abbrevs don't expand. I inserted a new abbrev with `add-mode-abbrev'. But that abbrev was added to `text-mode-abbrev-table' instead of message-mode's one. And in `message-mode' only abbrev defined in `text-mode-abbrev-table' expand. Why? Is it a bug? b) All the abbrevs below `lisp-mode-abbrev-table' were defined when I was in `emacs-lisp-mode'. But they also expand in SLIME's common lisp mode, where `save-excursion' and `interactive' are totally useless. Isn't it possible to save abbrevs strictly mode-specific? Best regards, Tassilo -- A child of five could understand this! Fetch me a child of five!