From: Sebastian Schubert <sebastian-schubert@gmx.de>
Subject: Re: Add abbrev to default ones
Date: Wed, 29 Nov 2006 11:21:08 +0100 [thread overview]
Message-ID: <87fyc2k0yz.fsf@Satux.Puorg> (raw)
In-Reply-To: eki87j$rmh$1@online.de
Andreas Roehler <andreas.roehler@online.de> 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
next prev parent reply other threads:[~2006-11-29 10:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-28 16:56 Add abbrev to default ones Sebastian Schubert
2006-11-28 21:05 ` Andreas Roehler
2006-11-29 10:21 ` Sebastian Schubert [this message]
2006-11-29 19:52 ` Glenn Morris
2006-11-30 11:03 ` Sebastian Schubert
2006-11-30 19:16 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fyc2k0yz.fsf@Satux.Puorg \
--to=sebastian-schubert@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).