all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: saved user abbrevs and system abbrevs
Date: Fri, 01 Dec 2006 19:04:11 -0500	[thread overview]
Message-ID: <cgu00f17us.fsf@fencepost.gnu.org> (raw)
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)")

"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.

      reply	other threads:[~2006-12-02  0:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-29 21:05 saved user abbrevs and system abbrevs Glenn Morris
2006-11-30 19:48 ` Richard Stallman
2006-12-01  2:54   ` Glenn Morris
2006-12-01 22:02     ` Richard Stallman
2006-12-01 20:50 ` Stuart D. Herring
2006-12-02  0:04   ` Glenn Morris [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cgu00f17us.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.