From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Emacs does not know state of my abbrevs Date: Mon, 23 Mar 2015 00:07:06 +0100 Organization: Aioe.org NNTP Server Message-ID: <87fv8wmy1x.fsf@debian.uxu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1427065536 20119 80.91.229.3 (22 Mar 2015 23:05:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Mar 2015 23:05:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 23 00:05:23 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YZovp-0006JW-Bn for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Mar 2015 00:05:21 +0100 Original-Received: from localhost ([::1]:52883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZovo-0008D2-Fb for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Mar 2015 19:05:20 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 46 Original-NNTP-Posting-Host: feB02bRejf23rfBm51Mt7Q.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:Wq6Y4vCYTOp0XBbYbN5QIByBrBI= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:210974 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103255 Archived-At: Guido Van Hoecke 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