From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: Troubles with abbrev-mode
Date: Wed, 27 Sep 2006 09:56:10 +0200 [thread overview]
Message-ID: <v9ejtx3fqd.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: 87hcyu8g9p.fsf@baldur.nicundtas.de
On Tue, Sep 26 2006, Tassilo Horn wrote:
> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>> | 6.202 (zsh 07-Feb-02): (setq local-abbrev-table text-mode-abbrev-table)
>
> Hm, in my opinion that's a really bad behavior, because...
>
> a) if the user wants that behavior, he can set in `message-mode-hook'.
And if he doesn't want the current behavior, he can probably also do
it in `message-mode-hook' now? [1]
> b) adding abbrevs in message mode (with `add-mode-abbrev' or
> `inverse-add-mode-abbrev') adds it to
> `message-mode-abbrev-table'. So you effectively cannot add abbrevs
> interactively.
>
> So I see two possible fixes:
>
> 1) Delete the setq. (To me that seems right and proper.)
This will break existing configurations, wouldn't it? `message-mode'
derived from `text-mode': Do we have guidelines / conventions / best
practice in Emacs on how to deal with abbrevs in derived modes?
> 2) Fix `add-mode-abbrev' and `inverse-add-mode-abbrev', so that they
> insert into `local-abbrev-table'.
>
> To me the second point should be done, too, because that's what a user
> would expect. Only then he has the possibility to use a abbrev-table for
> multiple modes, e.g. text-mode-abbrev-table for
> message-mode-abbrev-table.
>
> What do you mean?
I don't have a strong opinion here (as I don't know what the docs
suggest here).
[1] BTW, in my init files I find...
(add-hook
'gnus-message-setup-hook
'(lambda ()
(when (boundp 'rs-message-mode-abbrev-table)
(setq local-abbrev-table rs-message-mode-abbrev-table))
[...]
... but I don't exactly recall it's purpose. At least, I have some
abbrevs in message-mode that are not present in text-mode.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next prev parent reply other threads:[~2006-09-27 7:56 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
2006-09-26 21:33 ` Tassilo Horn
2006-09-27 7:56 ` Reiner Steib [this message]
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=v9ejtx3fqd.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).