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: Sat, 30 Sep 2006 00:17:34 +0200	[thread overview]
Message-ID: <878xk2e2rl.fsf@baldur.nicundtas.de> (raw)
In-Reply-To: v97izmz984.fsf@marauder.physik.uni-ulm.de

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

>>> `message-mode' derived from `text-mode': Do we have guidelines /
>>> conventions / best practice in Emacs on how to deal with abbrevs in
>>> derived modes?
>>
>> As I'm not really involved in emacs development I don't know. Should
>> I start a new thread about point 2 in gmane.emacs.devel?
>
> Maybe a good idea.

Gnmpf, I cannot reproduce the problem anymore. I don't even know if the
problem existed sometime at all or if I was confused, which is more
likely.

,----[ ~/uni/repos/heimdall-uni/programs/elisp/th-abbrev.el ]
| [...]
| (define-abbrev-table 'th-emacs-lisp-mode-abbrev-table
|   '(("da" "(defalias °)" (lambda ()
|                            (th-abbrev-set-point)))
|     [...] ))))
| 
| (add-hook 'emacs-lisp-mode-hook
|           (lambda ()
|             (setq local-abbrev-table th-emacs-lisp-mode-abbrev-table)
|             (th-abbrev-mode-initialize)))
| 
| (define-abbrev-table 'th-message-mode-abbrev-table
|   '([...]
|     ("vg" "Viele Grüße,\n°" (lambda ()
|                               (th-abbrev-set-point)))))
| 
| (add-hook 'message-mode-hook
|           (lambda ()
|             (setq local-abbrev-table th-message-mode-abbrev-table)
|             (th-abbrev-mode-initialize)))
`----

Whenever I add an abbrev interactively it goes into the local
abbrev-table (one of the th-<mode>-abbrev-tables), which is correct.

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.

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

  reply	other threads:[~2006-09-29 22:17 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
2006-09-27  9:36       ` Tassilo Horn
2006-09-29 20:52         ` Reiner Steib
2006-09-29 22:17           ` Tassilo Horn [this message]
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=878xk2e2rl.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).