From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: add-mode-abbrev writes to fundamental table only
Date: Mon, 28 Feb 2005 12:19:25 -0700 [thread overview]
Message-ID: <38h95vF5nvi4iU1@individual.net> (raw)
In-Reply-To: <1109358818.758581.83330@l41g2000cwc.googlegroups.com>
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? If I run
emacs-21.3 -q --no-site-file -f sh-mode, `C-h f local-abbrev-table'
displays
| local-abbrev-table's value is
| [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
|
| Local in buffer redstone_build; global value is
| [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
|
|
| Documentation:
| Local (mode-specific) abbrev table of current buffer.
And `M-: (eq local-abbrev-table (default-value 'local-abbrev-table))'
returns nil.
I guess the workaround for OP is something like:
(add-hook 'sh-mode-hook
(lambda ()
(or local-abbrev-table
(setq local-abbrev-table (make-abbrev-table)))))
--
Kevin Rodgers
next prev parent reply other threads:[~2005-02-28 19:19 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 [this message]
2005-02-28 21:03 ` rgb
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=38h95vF5nvi4iU1@individual.net \
--to=ihs_4664@yahoo.com \
/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.