From: "rgb" <rbielaws@i1.net>
Subject: Re: add-mode-abbrev writes to fundamental table only
Date: 28 Feb 2005 13:03:11 -0800 [thread overview]
Message-ID: <1109624591.857708.243780@f14g2000cwb.googlegroups.com> (raw)
In-Reply-To: 38h95vF5nvi4iU1@individual.net
Kevin Rodgers wrote:
> rgb wrote:
> >>I'm finding when I have entered any mode (Here we use sh-mode)
that
> >>running `add-mode-abbrev' will only write my new abbrev to the
> >>Fundamental-mode-abbrev-table.
> >
> > I just had this problem in a mode I'm writing. I found that
> > it occurs when local-abbrev-table is not set.
> > local-abbrev-table is buffer local when set but if it's not
> > set the default is usually fundamental-mode.
>
> What version of Emacs doesn't set local-abbrev-table?
It might just be an unwanted side effect of something in OP's .emacs.
For example I saw the code below on emacswiki. It would cause these
symptoms and a user may not connect the two without understanding the
connection between add-mode-abbrev and local-abbrev-table.
(defun sql-pre-abbrev-expand-hook ()
;; Allow our abbrevs only in a code context.
(setq local-abbrev-table
(if (sql-in-code-context-p)
sql-mode-abbrev-table)))
next prev parent reply other threads:[~2005-02-28 21:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2354.1091375582.1960.help-gnu-emacs@gnu.org>
2005-02-25 19:13 ` add-mode-abbrev writes to fundamental table only rgb
2005-02-28 19:19 ` Kevin Rodgers
2005-02-28 21:03 ` rgb [this message]
2004-08-01 15:46 Harry Putnam
2004-08-01 15:54 ` Harry Putnam
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=1109624591.857708.243780@f14g2000cwb.googlegroups.com \
--to=rbielaws@i1.net \
/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.