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: Tue, 26 Sep 2006 22:14:44 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

On Tue, Sep 26 2006, Tassilo Horn wrote:

> a) The abbrevs for `message-mode' I defined with `edit-abbrevs'. Then I
>    started writing a message (in `message-mode') and wondered why my
>    abbrevs don't expand. I inserted a new abbrev with
>    `add-mode-abbrev'. But that abbrev was added to
>    `text-mode-abbrev-table' instead of message-mode's one. And in
>    `message-mode' only abbrev defined in `text-mode-abbrev-table'
>    expand. Why? Is it a bug?

FWIW, `message.el' sets `local-abbrev-table' to
`text-mode-abbrev-table':

(define-derived-mode message-mode text-mode "Message"
  "Major mode for editing mail and news to be sent.
Like Text Mode but with these additional commands:\\<message-mode-map>
[...]
M-RET    `message-newline-and-reformat' (break the line and reformat)."
  (setq local-abbrev-table text-mode-abbrev-table)
[...]

I don't know if this is good or not, but it has been there since ages:

| 6.202 (zsh 07-Feb-02): (setq local-abbrev-table text-mode-abbrev-table)

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]