From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: saved user abbrevs and system abbrevs Date: Fri, 01 Dec 2006 19:04:11 -0500 Message-ID: References: <2godqqnetw.fsf@fencepost.gnu.org> <58374.128.165.123.18.1165006236.squirrel@webmail.lanl.gov> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165017874 1429 80.91.229.2 (2 Dec 2006 00:04:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Dec 2006 00:04:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 02 01:04:31 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GqIMj-0002hR-7n for ged-emacs-devel@m.gmane.org; Sat, 02 Dec 2006 01:04:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GqIMi-0002H8-PF for ged-emacs-devel@m.gmane.org; Fri, 01 Dec 2006 19:04:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GqIMY-0002H2-9W for emacs-devel@gnu.org; Fri, 01 Dec 2006 19:04:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GqIMX-0002Gq-S5 for emacs-devel@gnu.org; Fri, 01 Dec 2006 19:04:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GqIMX-0002Gn-PG for emacs-devel@gnu.org; Fri, 01 Dec 2006 19:04:13 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GqIMX-0007uW-84 for emacs-devel@gnu.org; Fri, 01 Dec 2006 19:04:13 -0500 Original-Received: from localhost ([127.0.0.1]) by fencepost.gnu.org with esmtp (Exim 4.52) id 1GqIMW-00038i-9q; Fri, 01 Dec 2006 19:04:12 -0500 Original-To: herring@lanl.gov X-Spook: bank TELINT Forte Albania ANDVT 2600 Magazine SSL AGT. X-Ran: RRO-$0Y0E\e}fq]/8dA)O&HW^+RMx'?LXnX\}3kCnQBVD~d[d'd4,-ji8>81DW\|F6YDHF X-Hue: cyan X-Attribution: GM In-Reply-To: <58374.128.165.123.18.1165006236.squirrel@webmail.lanl.gov> (Stuart D. Herring's message of "Fri, 1 Dec 2006 12:50:36 -0800 (PST)") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63211 Archived-At: "Stuart D. Herring" wrote: > Well, one thing that would make doing it manually much less painful > would be to implement a trivial function allowing > > (populate-abbrev-table 'table-symbol '(("foo" "foobar" nil 0 t) ...)) Sure, this is little more than a mapcar, which is how I do it already. As I said in another mail, I did not explain the issue well the first time round. What I thought was the main problem is that one cannot initialize system abbreviations in the defvar for the mode abbrev table any more (because the abbrev table may already defined before the mode is loaded, thanks to loading of the user's saved abbrevs). This seemed like the kind of unexpected behaviour it would be hard to remember. In hindsight, I have no idea how I expected anyone to guess that's what I meant. :) > Alternatively, the system abbrevs could be stored in some other file > or files which major modes would load, similarly to the way that > user abbrevs are already handled: > > (load-system-abbrev-table 'my-mode-abbrev-table) Hmm. I think this is just more work than the current arrangement.