unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tassilo Horn <heimdall@uni-koblenz.de>
Subject: Re: Troubles with abbrev-mode
Date: Tue, 26 Sep 2006 23:33:22 +0200	[thread overview]
Message-ID: <87hcyu8g9p.fsf@baldur.nicundtas.de> (raw)
In-Reply-To: v9odt2fkqz.fsf@marauder.physik.uni-ulm.de

Reiner Steib <reinersteib+gmane@imap.cc> writes:

> FWIW, `message.el' sets `local-abbrev-table' to
> `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)

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'.

  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.)
  
  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?

Bye,
Tassilo
-- 
A morning without coffee is like something without something else.

  reply	other threads:[~2006-09-26 21:33 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 [this message]
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=87hcyu8g9p.fsf@baldur.nicundtas.de \
    --to=heimdall@uni-koblenz.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).