unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: Troubles with abbrev-mode
Date: Tue, 26 Sep 2006 22:14:44 +0200	[thread overview]
Message-ID: <v9odt2fkqz.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: 87r6xytq1w.fsf@baldur.nicundtas.de

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	other threads:[~2006-09-26 20:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-26 18:56 Troubles with abbrev-mode Tassilo Horn
2006-09-26 20:14 ` Reiner Steib [this message]
2006-09-26 21:33   ` Tassilo Horn
2006-09-27  7:56     ` Reiner Steib
2006-09-27  9:36       ` Tassilo Horn
2006-09-29 20:52         ` Reiner Steib
2006-09-29 22:17           ` Tassilo Horn
2006-09-30  8:02             ` Reiner Steib

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9odt2fkqz.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).