help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs does not know state of my abbrevs


From: Emanuel Berg
Subject: Re: Emacs does not know state of my abbrevs
Date: Mon, 23 Mar 2015 00:07:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Guido Van Hoecke <address@hidden> writes:

> Sorry to answer my own question, but for the record:

Yes, that is a good thing to do. First, other people
don't have to answer it, at least if their's solution
coincide precisely with yours. Second, if this problem
gets G00gled and the user ends up at your post, [s]he
can find your answer as well. Third, (well, it goes on
an on) ...

> The file does change whenever an abbrev is used: the
> usage count gets stepped up.
>
> I changed (setq save-abbrevs t) into (set ā€‹qā€‹
> save-abbrevs 'silently) and that fixed thi ā€‹nā€‹ gs
> as desired.

Ha ha, far out!

    (setq save-abbrevs 'silently)

I have my abbrevs hard coded in an init file, then
I just likewise do

    (define-abbrev-table 'global-abbrev-table DEFINITIONS)

on startup. Perhaps there is a speed deficiency but
for a small number of abbrevs it hasn't slowed me down
at least. The advantage is that I can edit the abbrevs
swiftly as I am any file, and never bother with that
whole interactive interface which I don't know where
it ends up.

DEFINITIONS is just a list, e.g. for Usenet newsgroups:

       '(("ctt" "comp.text.tex")
         ("geg" "gnu.emacs.gnus")
         ("geh" "gnu.emacs.help")
         ("ges" "gnu.emacs.sources")
         ("rsb" "rec.sport.boxing")
         ("rbt" "rec.bicycles.tech")
        )

-- 
underground experts united


reply via email to

[Prev in Thread] Current Thread [Next in Thread]