help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Troubles with abbrev-mode


From: Reiner Steib
Subject: Re: Troubles with abbrev-mode
Date: Sat, 30 Sep 2006 10:02:08 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

On Sat, Sep 30 2006, Tassilo Horn wrote:

> So the only question is why gnus uses text-mode-abbrev-table (where
> interactively added abbrevs go, too) when there's a
> message-mode-abbrev-table in `edit-abbrevs' by default.

`define-derived-mode' does this by default:

,----[ (info "(elisp)Derived Modes") | Emacs 22 ]
|         * The new mode has its own abbrev table, kept in the variable
|           `VARIANT-abbrev-table', unless you override this using the
|           `:abbrev-table' keyword (see below).
|
| [...]
|
|     `:abbrev-table'
|           You can use this to explicitly specify an abbrev table for
|           the new mode.  If you specify a `nil' value, the new mode
|           uses the same abbrev table as PARENT, or
|           `fundamental-mode-abbrev-table' if PARENT is `nil'.  (Again,
|           a `nil' value is _not_ equivalent to not specifying this
|           keyword.)
`----

Maybe `message-mode' could use ":abbrev-table nil" instead of "(setq
local-abbrev-table text-mode-abbrev-table)".  (Probably we need it for
compatibility with Emacs 21 and/or XEmacs.)

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]