From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christian Kruse Newsgroups: gmane.emacs.help Subject: Gnus: set the signing marker to the top of the new message Date: Wed, 27 Jan 2016 08:56:31 +0100 Message-ID: <87io2flakw.fsf@sunshine.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1453898292 5538 80.91.229.3 (27 Jan 2016 12:38:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Jan 2016 12:38:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 27 13:38:03 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aOPMJ-0008Qe-4j for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jan 2016 13:38:03 +0100 Original-Received: from localhost ([::1]:50177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOPMI-0004LY-Ff for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jan 2016 07:38:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOKy0-00028B-NP for help-gnu-emacs@gnu.org; Wed, 27 Jan 2016 02:56:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOKxx-00085h-IK for help-gnu-emacs@gnu.org; Wed, 27 Jan 2016 02:56:40 -0500 Original-Received: from jugulator.defunced.de ([89.238.65.41]:32877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOKxx-00084B-Bg for help-gnu-emacs@gnu.org; Wed, 27 Jan 2016 02:56:37 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by jugulator.defunced.de (Postfix) with ESMTP id 5B688726E039 for ; Wed, 27 Jan 2016 08:56:35 +0100 (CET) X-Virus-Scanned: amavisd-new at defunct.ch Original-Received: from jugulator.defunced.de ([127.0.0.1]) by localhost (painkiller.defunced.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uaiaEYcZgvbY for ; Wed, 27 Jan 2016 08:56:34 +0100 (CET) Original-Received: from localhost (p54952E7F.dip0.t-ipconnect.de [84.149.46.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by jugulator.defunced.de (Postfix) with ESMTPSA id 249B4726E034 for ; Wed, 27 Jan 2016 08:56:34 +0100 (CET) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.238.65.41 X-Mailman-Approved-At: Wed, 27 Jan 2016 07:37:26 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108882 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi folks, I try to switch from notmuch mail to Gnus (since the notmuch setup is too komplex; keeping the tags synchronized across three devices is very hard). In notmuch I wrote this little snippet to always sign messages with GnuPG: (defun ck/sign-message () (interactive) (goto-char (point-min)) (search-forward "--text follows this line--") (end-of-line) (insert "\n") (mml-secure-message-sign-pgpmime)) (add-hook 'message-setup-hook 'ck/sign-message) This ensures that the signing marker is always the first thing in the new message. But since Gnus yanks the text after the message-setup-hook gets executed I now end up with the signing marker after the message. Is there a hook that gets executed after the yanking? I could not find one, but maybe I=E2=80=99ve been overseeing it? If not: is there a different solution for this problem? I=E2=80=99d like to have the marker directly below the `--text follows this line--` marker and the quoted text below. Best regards, =2D-=20 Christian Kruse https://wwwtech.de/about --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWqHgvAAoJELjg80Kpmp1zWlcP/1lncxvSv6lrETEAOs55PFnS 5hbZqeZUgqLs8hOeEQlwuUN4i/9ZEf85f9NNhWefo6p15abgCRR9MxLf2EkBnaAw Cenbgwk8Pxj1QE/wRJIbffu5QQ+zOumetN6/xcOrUKC7QE2EQ+UHtZlZc519Ms7V BkHK3vRcfcGFGOf/Of3f2xb/A1UWhDAYHz2sXRqrZmbGOrKkID4w+MjK8JCYAfQI ZyYaas8qKbL3COBOaM7wHjqeCSYRDcqL6ICyiWMcIQ7ndrtVBxhfvc66ZMgBwqA3 LdeYY4x7FQ84Dp01Lan+oo/BHlE/qFymrGYmwyAmfHHeX0Z9I1+PlZMuwepC152O aNT1Y131Qo+AaedRrcExLTwmYrPEuEtQ8sF6hrIvsP5gtGSsNC05YUG6Rf6syLqX 3MfTGakon5ThCZS/f1bEFEoDcS1fCizGytbHmvdxkUHJL+CJbXGeJv7aWESev49d TmWZ0j0edM0TPO3Q04k3l49TI5zzSzrjBII20zxezNznVOQY02317nfXFn6FcENq 2DXe7OnnMXBqs4f04F3qFnHIHzQkuHGkC3dJa7HBOS0DsxyWIvrPF2XFz15dAUaV 3qdZHO0p3xDZCIjDsbxM6kQJqSGEaBr5nlbwUMPoJw5wAOUaoEH9edZdVFijPSwp t02gHpG8g97GF+t+PB9P =oYQI -----END PGP SIGNATURE----- --=-=-=--