* Emacs does not know state of my abbrevs
@ 2015-03-22 12:54 Guido Van Hoecke
2015-03-22 14:25 ` Guido Van Hoecke
[not found] ` <mailman.2516.1427034345.31049.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 3+ messages in thread
From: Guido Van Hoecke @ 2015-03-22 12:54 UTC (permalink / raw)
To: Emacs
Hi,
After I M-x (edit-abbrevs) followed by my desired changes, I do
M-x (abbrev-edit-save-buffer) which saves my abbrevs in my
/Users/guivho/emacs-guivho/abbref-devs.
If I then quit Emacs, it asks:
"Save abbrevs in /Users/guivho/emacs-guivho/abbref-devs (y or n)"
I have not defined nor changed any abbrevs since the previously
described (abbrev-edit-save-buffer), so why does it insist upon
bothering me with a question that is totaly irrelevant?
There must be some setting to control this behavior, but I fail to
discover it.
Any suggestions?
TIA,
Guido
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Emacs does not know state of my abbrevs
2015-03-22 12:54 Emacs does not know state of my abbrevs Guido Van Hoecke
@ 2015-03-22 14:25 ` Guido Van Hoecke
[not found] ` <mailman.2516.1427034345.31049.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 3+ messages in thread
From: Guido Van Hoecke @ 2015-03-22 14:25 UTC (permalink / raw)
To: Emacs
On 22 March 2015 at 13:54, Guido Van Hoecke <guivho@gmail.com> wrote:
> Hi,
>
> After I M-x (edit-abbrevs) followed by my desired changes, I do
> M-x (abbrev-edit-save-buffer) which saves my abbrevs in my
> /Users/guivho/emacs-guivho/abbref-devs.
>
> If I then quit Emacs, it asks:
> "Save abbrevs in /Users/guivho/emacs-guivho/abbref-devs (y or n)"
>
> I have not defined nor changed any abbrevs since the previously
> described (abbrev-edit-save-buffer), so why does it insist upon
> bothering me with a question that is totaly irrelevant?
>
> There must be some setting to control this behavior, but I fail to
> discover it.
>
Sorry to answer my own question, but for the record:
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.
Guido
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Emacs does not know state of my abbrevs
[not found] ` <mailman.2516.1427034345.31049.help-gnu-emacs@gnu.org>
@ 2015-03-22 23:07 ` Emanuel Berg
0 siblings, 0 replies; 3+ messages in thread
From: Emanuel Berg @ 2015-03-22 23:07 UTC (permalink / raw)
To: help-gnu-emacs
Guido Van Hoecke <guivho@gmail.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-22 23:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-22 12:54 Emacs does not know state of my abbrevs Guido Van Hoecke
2015-03-22 14:25 ` Guido Van Hoecke
[not found] ` <mailman.2516.1427034345.31049.help-gnu-emacs@gnu.org>
2015-03-22 23:07 ` Emanuel Berg
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).