From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/40615 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Default for message-tab-body-function Date: Thu, 29 Nov 2001 17:45:25 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035176138 1879 80.91.224.250 (21 Oct 2002 04:55:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:55:38 +0000 (UTC) Return-Path: Original-Received: (qmail 19817 invoked from network); 29 Nov 2001 16:46:55 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 29 Nov 2001 16:46:55 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 169UKF-0005p2-00; Thu, 29 Nov 2001 10:46:15 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 29 Nov 2001 10:46:00 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id KAA07500 for ; Thu, 29 Nov 2001 10:45:48 -0600 (CST) Original-Received: (qmail 19796 invoked by alias); 29 Nov 2001 16:45:58 -0000 Original-Received: (qmail 19791 invoked from network); 29 Nov 2001 16:45:58 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 29 Nov 2001 16:45:58 -0000 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id fATGjV626897 for ; Thu, 29 Nov 2001 17:45:31 +0100 (MET) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id RAA19258; Thu, 29 Nov 2001 17:45:26 +0100 (MET) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 1558E201B; Thu, 29 Nov 2001 17:45:25 +0100 (CET) Original-To: ding@gnus.org In-Reply-To: (Simon Josefsson's message of "Thu, 29 Nov 2001 16:49:41 +0100") Original-Lines: 25 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:40615 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:40615 Simon Josefsson writes: > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) 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. kai --=20 Simplification good! Oversimplification bad! (Larry Wall)