all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stuart D. Herring" <herring@lanl.gov>
Cc: emacs-devel@gnu.org
Subject: Re: saved user abbrevs and system abbrevs
Date: Fri, 1 Dec 2006 12:50:36 -0800 (PST)	[thread overview]
Message-ID: <58374.128.165.123.18.1165006236.squirrel@webmail.lanl.gov> (raw)
In-Reply-To: <2godqqnetw.fsf@fencepost.gnu.org>

> Does anyone see a better fix than changing each mode that defines
> abbrevs to use something like this:
>
> (defvar foo-abbrev-table nil)
>
> ;; Do not override any user abbrev for "foo".
> (unless (abbrev-expansion "foo" foo-abbrev-table)
>   (define-abbrev foo-abbrev-table "foo" "foobar" nil 0 t))

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

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)

...which would read either an entire file appropriate to the mode, or
perhaps read that part of a master file (lisp/sys.abbrevs or so) that
defined the table in question.

WDOT?
Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

  parent reply	other threads:[~2006-12-01 20:50 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 [this message]
2006-12-02  0:04   ` Glenn Morris

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=58374.128.165.123.18.1165006236.squirrel@webmail.lanl.gov \
    --to=herring@lanl.gov \
    --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.