From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51132 Path: main.gmane.org!not-for-mail From: deskpot@despammed.com (Vasily Korytov) Newsgroups: gmane.emacs.gnus.general Subject: Re: message-(news|mail)-p in (gnus-)?message-setup-hook Date: Mon, 31 Mar 2003 22:50:22 +0400 Sender: owner-ding@hpc.uh.edu Message-ID: <87he9js74h.fsf@unix.home> References: <87lm00cw5a.fsf@unix.home> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: main.gmane.org 1049137979 26224 80.91.224.249 (31 Mar 2003 19:12:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 31 Mar 2003 19:12:59 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Mon Mar 31 21:12:58 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1904hL-0006jS-00 for ; Mon, 31 Mar 2003 21:12:00 +0200 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 1904gT-0001sS-00; Mon, 31 Mar 2003 13:11:05 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 31 Mar 2003 13:12:08 -0600 (CST) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id NAA13886 for ; Mon, 31 Mar 2003 13:11:56 -0600 (CST) Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1904fc-0006ZL-00 for ; Mon, 31 Mar 2003 21:10:12 +0200 Mail-Followup-To: ding@hpc.uh.edu X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@hpc.uh.edu Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1904MK-0004oY-00 for ; Mon, 31 Mar 2003 20:50:16 +0200 Original-Lines: 31 Original-X-Complaints-To: usenet@main.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:47WPaSsu5SHokv7MA/0fP/94+VA= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:51132 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51132 --=-=-= Content-Transfer-Encoding: quoted-printable On 31 Mar 2003, Lars Magne Ingebrigtsen wrote: > deskpot@myrealbox.com (Vasily Korytov) writes: > >> Actually, it's not surprising, because when I evaluate (message-mail-p) >> or (message-news-p) in a new message buffer, they're both nil. But I >> didn't get, why do they work in message-setup-hook. Can anyone help me? > > The composing functions bind `message-this-is-mail' (etc.) before > calling the hook functions. Maybe we should also bind it in gnus-message-setup-hook then? =2D-=20 I accept RFC3156 and RFC2440-compatible encrypted mail. PGP key fingerprint: 123A 7CCE 6E26 6233 0D87 E01A A0F8 3524 FCD8 1841 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+iI3uoPg1JPzYGEERAg2FAJ4x8zM60QBm2oJ63PQ5V2UHx1gH/wCg1mS7 tPfPI7tldWbmJ9SnnHNKqlA= =Y8sH -----END PGP SIGNATURE----- --=-=-=--