From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Schubert Newsgroups: gmane.emacs.help Subject: Re: Add abbrev to default ones Date: Wed, 29 Nov 2006 11:21:08 +0100 Organization: Arcor Message-ID: <87fyc2k0yz.fsf@Satux.Puorg> References: <871wnnik74.fsf@Satux.Puorg> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164797034 4586 80.91.229.2 (29 Nov 2006 10:43:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2006 10:43:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 29 11:43:48 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 1GpMsY-000068-5P for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Nov 2006 11:41:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpMsX-0004Cp-Ir for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Nov 2006 05:41:25 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news.glorb.com!proxad.net!proxad.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) Cancel-Lock: sha1:G+HnQpMpoBytjEcGUCm0bkAoMFU= Original-Lines: 77 Original-NNTP-Posting-Date: 29 Nov 2006 11:21:32 CET Original-NNTP-Posting-Host: ebc6b3f5.newsspool2.arcor-online.net Original-X-Trace: DXC=Xo`L53FjEV\BH3Y2A@a=h@b\i@3<:[8lH]C7?=n`D; kb^[f90NL5H3GnkIa1]3KZ57eK; ; 1 Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:143482 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:39083 Archived-At: Andreas Roehler writes: > Sebastian Schubert wrote: > >> Hi, >> >> is there any variable which says that the abbrevs in >> .abbrev_defs should be >> added to the default ones? I wanted to add one in f90 mode. >> That worked but removed the standard ones after a restart. >> Hope I did enough rtfm, >> thx >> >> Sebastian > > What means `default' here? AFAIS exist mode-abbrev-tables > and a global-abbrev-table. I meant the local one. > What you describe should not happen. However, > encountered it too, without beeing able to locate the > reasons. > > Seems if, while closing Emacs the question `save > abbrevs` is answered `yes` sometimes only the mode > abbrevs are saved, the rest deleted. This not exactly my problem (did not try what you said). Here is what I did: M-x f90-mode M-x list-abbrevs ,----[ part of (f90-mode-abbrev-table), everything (sys) ] | "`ab" (sys) 0 "allocatable" | "`al" (sys) 0 "allocate" | "`as" (sys) 0 "assignment" | "`ba" (sys) 0 "backspace" | "`bd" (sys) 0 "block data" | ... | "`tr" (sys) 0 ".true." | "`wh" (sys) 0 "where" | "`wr" (sys) 0 "write" `---- M-x define-mode-abbrev RET `wrs RET write (*,*) RET M-x list-abbrevs ,----[ part of (f90-mode-abbrev-table), everything (sys) ] | "`ab" (sys) 0 "allocatable" | "`al" (sys) 0 "allocate" | "`as" (sys) 0 "assignment" | "`ba" (sys) 0 "backspace" | "`bd" (sys) 0 "block data" | ... | "`tr" (sys) 0 ".true." | "`wh" (sys) 0 "where" | "`wr" (sys) 0 "write" | "`wrs" 0 "write (*,*)" `---- Now I can do a M-x write-abbrev-file ~/.abbrev_defs or C-x C-c "question to save ~/.abbrev_defs" y and I get after restart: M-x list-abbrevs ,----[ (f90-mode-abbrev-table) ] | "`wrs" 0 "write (*,*)" `---- Any idea? Thanks