Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bug#14413: 24.2; message-mode-abbrev-table

3 views
Skip to first unread message

Glenn Morris

unread,
May 16, 2013, 8:14:26 PM5/16/13
to Emanuel Berg, 14...@debbugs.gnu.org
Emanuel Berg wrote:

>> (add-hook 'message-mode-hook
>> (lambda ()
>> ;; dynamic abbreviations for org-mode
>> (setq local-abbrev-table message-mode-abbrev-table)))
>
> "This should not be needed. Please M-x report-emacs-bug RET" (Stefan
> Monnier @ gnu.emacs.help)

message-mode uses (has always used, AFAICS) the normal text-mode abbrev table:

(setq local-abbrev-table text-mode-abbrev-table)

What's the bug supposed to be?
That message-mode-abbrev-table exists at all, because message forgets to
pass an :abbrev argument to define-derived-mode?



Stefan Monnier

unread,
May 16, 2013, 8:43:08 PM5/16/13
to Glenn Morris, Emanuel Berg, 14...@debbugs.gnu.org
> message-mode uses (has always used, AFAICS) the normal text-mode
> abbrev table:

> (setq local-abbrev-table text-mode-abbrev-table)

> What's the bug supposed to be?
> That message-mode-abbrev-table exists at all, because message forgets to
> pass an :abbrev argument to define-derived-mode?

The right thing is for message-mode to use message-mode-abbrev-table and
for this abbrev-table to inherit from text-mode-abbrev-table.
In theory, it should happen automatically (assuming we remove the above
offending setq) thanks to define-derived-mode.


Stefan



Glenn Morris

unread,
May 17, 2013, 8:32:32 PM5/17/13
to 14413...@debbugs.gnu.org
Version: 24.4

Stefan Monnier wrote:

> The right thing is for message-mode to use message-mode-abbrev-table and
> for this abbrev-table to inherit from text-mode-abbrev-table.
> In theory, it should happen automatically (assuming we remove the above
> offending setq) thanks to define-derived-mode.

ok.



0 new messages