From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Angel de Vicente Newsgroups: gmane.emacs.help Subject: Re: Signing message reply problem Date: Tue, 01 Nov 2022 09:52:41 +0000 Message-ID: <874jvj9f2u.fsf@gmail.com> References: <87eduqfcah.fsf@gmail.com> <87mt9cp0z6.fsf@gmail.com> <878rkww0sm.fsf@gmail.com> <871qqooxu9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2436"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:COdTBzvqmZ8U5L+QvSDLyphVGT8= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 01 10:53:59 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opny2-0000MI-Fz for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Nov 2022 10:53:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opnx9-0000xR-8v; Tue, 01 Nov 2022 05:53:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opnx7-0000xE-Rv for help-gnu-emacs@gnu.org; Tue, 01 Nov 2022 05:53:01 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opnx6-0007Dn-Az for help-gnu-emacs@gnu.org; Tue, 01 Nov 2022 05:53:01 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1opnx3-0009VB-1C for help-gnu-emacs@gnu.org; Tue, 01 Nov 2022 10:52:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140555 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, Robert Pluim writes: > >> (defun angel-message-setup () > >> (save-excursion > >> (message-goto-body) > >> (mml-secure-message-sign-pgpmime))) > >>=20 > >> (add-hook 'message-setup-hook 'angel-message-setup) > > Angel> Thanks, but unfortunately it behaves in the same way. > > Strange, it works for me. If you want to work out what=CA=BCs going on you > can use `edebug-defun' and then single step through > `angel-message-setup' to see what=CA=BCs going on. Maybe you were trying 'r' instead of 'R'? I edebug'ed it and basically it goes through the function, inserts the tag for signing the message, but afterwards it yanks the text right after the headers, so pushing down the tag. Which I think is what you expect from message-setup-hook: "Hook run as the last thing when the message buffer has been initialized, but before yanked text is inserted.". Ideally I would like to add the hook after the yanked text is inserted, but not sure how to proceed.. Cheers, =2D-=20 =C3=81ngel de Vicente -- (GPG: 0x64D9FDAE7CD5E939) Research Software Engineer (Supercomputing and BigData) Instituto de Astrof=C3=ADsica de Canarias (https://www.iac.es/en) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHUBAEBCAA+FiEEGQyM5qDLpMcIDuMKZNn9rnzV6TkFAmNg7GkgHGFuZ2VsLnZp Y2VudGUuZ2Fycmlkb0BnbWFpbC5jb20ACgkQZNn9rnzV6TmQ6AwAkOhRiNr2ujNy EjaYoA2gfxqLyTReM88NIafWms/GXqI9jlt2VExPjAtfo3XkpdpKRWwV113q9EEc 5c+M/M0fbhN3g7TvaSpXuSjPb5l4sAZJGmtxYvMkW3UgJ+fzd4RaPrwZ3Rbim3Lp XFrsc13Kq/0ZewvoozPTpcrKhrbrys8V/ExiuT1xjE4S7o+llGewMP5BMJ6QrxCm YWXsQASUMXQNWVqY9GwpDeMabtOgVGwXtn845StrgN9oBC+C5CYCcAI+3/DzPUlb HQXYL9G7HcDo4YnxnpeK0SUr338WLLdoaOKrLcxDV21e2ziXbdbID//5zBEx9htD f8YVYj+MKP4qxVqTcM7/LCohM//Ewpk2yBSrKCaGi+NKDFCB77om/x7Mt3fNYE1z 7H8kCEhSZzLD6Dn1RpAiZ1CNtYOnkUC3eWwemoMaAsMMJn5T9yr00WjLv3d/i+lj RmOCXxs6znnX0KSGeWNGtFLK0c2KZ0HNuGT0PZ11VHOV7Q8XM5cS =/qoX -----END PGP SIGNATURE----- --=-=-=--