Gnus development mailing list
 help / color / mirror / Atom feed
From: ShengHuo ZHU <zsh@cs.rochester.edu>
Subject: Re: Default for message-tab-body-function
Date: Thu, 29 Nov 2001 11:59:04 -0500	[thread overview]
Message-ID: <2ng06xwm1z.fsf@zsh.cs.rochester.edu> (raw)
In-Reply-To: <vaf3d2xttju.fsf@INBOX.auto.gnus.tok.lucy.cs.uni-dortmund.de> (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Thu, 29 Nov 2001 17:45:25 +0100")

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> Simon Josefsson <jas@extundo.com> writes:
>
>> Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
>>
>>> I think the default behavior for TAB in the body of a message should
>>> be whatever TAB in text-mode does.  (Even if the user has changed
>>> what TAB in text-mode does.)
>>>
>>> Is there a way to achieve this, or to come close?
>>
>> Like this?  Message even runs text-mode-hook, so frobing text-mode-map
>> from that hook should work using Message as well.
>
> This of course looks up the key at the time when message.el* is
> loaded.  So it does not work to do
>
>     (require 'message)
>     (define-key text-mode-map (kbd "TAB") ...)
>
> But then, maybe that's not necessary.  Maybe your suggestion is good
> enough.

How about the following code?

(defcustom message-tab-body-function nil
           ...)

(defun message-tab ()
      ...
    (funcall (or (cdar alist) message-tab-body-function 
                 (lookup-key text-mode-map "\t")))
   )

ShengHuo



  reply	other threads:[~2001-11-29 16:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-29  8:50 Kai Großjohann
2001-11-29 15:49 ` Simon Josefsson
2001-11-29 16:45   ` Kai Großjohann
2001-11-29 16:59     ` ShengHuo ZHU [this message]
2001-11-29 17:09       ` Kai Großjohann

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

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

  git send-email \
    --in-reply-to=2ng06xwm1z.fsf@zsh.cs.rochester.edu \
    --to=zsh@cs.rochester.edu \
    /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 NNTP newsgroup(s).