From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74301 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] message-goto-body after <#secure Date: Wed, 24 Nov 2010 18:28:55 +0100 Message-ID: <877hg2wrzc.fsf@keller.adm.naquadah.org> References: <87fwurlpyw.fsf@kotik.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1290619808 27846 80.91.229.12 (24 Nov 2010 17:30:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 17:30:08 +0000 (UTC) Cc: ding@gnus.org To: =?utf-8?Q?=C5=81ukasz?= Stelmach Original-X-From: ding-owner+M22666@lists.math.uh.edu Wed Nov 24 18:30:03 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PLJAR-00022v-Hm for ding-account@gmane.org; Wed, 24 Nov 2010 18:30:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PLJA0-0001H8-0w; Wed, 24 Nov 2010 11:29:36 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PLJ9y-0001Gw-Qv for ding@lists.math.uh.edu; Wed, 24 Nov 2010 11:29:34 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PLJ9t-0005NX-ON for ding@lists.math.uh.edu; Wed, 24 Nov 2010 11:29:34 -0600 Original-Received: from prometheus.naquadah.org ([212.85.154.174] helo=mx1.naquadah.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PLJ9s-0000G6-00 for ; Wed, 24 Nov 2010 18:29:29 +0100 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id C8AC55C1A5; Wed, 24 Nov 2010 18:28:57 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on prometheus.naquadah.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Original-Received: from keller.adm.naquadah.org (unknown [IPv6:2a01:e35:2e39:e900:222:faff:fe9d:ce44]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id C243B5C19F; Wed, 24 Nov 2010 18:28:55 +0100 (CET) Original-Received: from jd by keller.adm.naquadah.org with local (Exim 4.72) (envelope-from ) id 1PLJ9L-0007uy-2G; Wed, 24 Nov 2010 18:28:55 +0100 Mail-Followup-To: =?utf-8?Q?=C5=81ukasz?= Stelmach , ding@gnus.org In-Reply-To: <87fwurlpyw.fsf@kotik.lan> (=?utf-8?Q?=22=C5=81ukasz?= Stelmach"'s message of "Tue, 23 Nov 2010 21:55:35 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74301 Archived-At: On Tue, Nov 23 2010, =C5=81ukasz Stelmach wrote: > The following patch makes message-goto-body function put cursor after > possible "<#secure" tag. This hits two birds with one stone: pressing > C-c C-b moves me where I can start typing and any citations that get > inserted into a new message buffer when replying (I have not tested > resending or forwarding yet but I suppose it works the same way) leave > the tag at the very begining of a message. > > Why I wrote this? I've set up mml-secure-message-sign-pgpmime as a part > of message-setup-hook. I prefere this to putting it in message-send-hook > because I can decide whether to sign a message or not. And it works well > for a new message. However, it fails for replies because just before > citations are inserted message-goto-body sets point *brefore* > the <#secure tag that is there since message-setup-hook gets fired > before citations. Thanks, pushed. Cheers, --=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info