From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: Gnus: set the signing marker to the top of the new message Date: Wed, 27 Jan 2016 15:03:51 +0200 Message-ID: <87vb6fyy14.fsf@mithlond.arda> References: <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 1453899874 31380 80.91.229.3 (27 Jan 2016 13:04:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Jan 2016 13:04:34 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Christian Kruse Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 27 14:04:26 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 1aOPlm-0002iR-4C for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jan 2016 14:04:22 +0100 Original-Received: from localhost ([::1]:50444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOPll-0007k1-7d for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jan 2016 08:04:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOPlY-0007jr-GN for help-gnu-emacs@gnu.org; Wed, 27 Jan 2016 08:04:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOPlU-0008Qm-Fr for help-gnu-emacs@gnu.org; Wed, 27 Jan 2016 08:04:08 -0500 Original-Received: from mta-out1.inet.fi ([62.71.2.231]:38247 helo=johanna2.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOPlU-0008Pk-66 for help-gnu-emacs@gnu.org; Wed, 27 Jan 2016 08:04:04 -0500 RazorGate-KAS: Status: not_detected RazorGate-KAS: Rate: 0 RazorGate-KAS: Envelope from: RazorGate-KAS: Version: 5.5.3 RazorGate-KAS: LuaCore: 80 2014-11-10_18-01-23 260f8afb9361da3c7edfd3a8e3a4ca908191ad29 RazorGate-KAS: Lua profiles 69136 [Nov 12 2014] RazorGate-KAS: Method: none Original-Received: from mithlond.arda (84.251.143.106) by johanna2.inet.fi (9.0.002.03-2-gbe5d057) id 5697DD8901037A6C; Wed, 27 Jan 2016 15:03:55 +0200 Original-Received: from dtw by mithlond.arda with local (Exim 4.84) (envelope-from ) id 1aOPlK-0002TV-JT; Wed, 27 Jan 2016 15:03:54 +0200 In-Reply-To: <87io2flakw.fsf@sunshine.fritz.box> (Christian Kruse's message of "Wed, 27 Jan 2016 08:56:31 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 62.71.2.231 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:108886 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Christian Kruse [2016-01-27 08:56:31+01] wrote: > (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. Just this does the right thing here: (add-hook 'gnus-message-setup-hook #'mml-secure-message-sign) The difference is that i use gnus-...-hook, not message-...-hook. I also have mml-secure-message-sign which, by default, uses PGP MIME method so it's effectively the same as yours. =2D-=20 /// Teemu Likonen - .-.. // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 /// --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWqMA6AAoJEHGdadMkU5RQMAsP/RGZ0LmERbCMMKtHLgK3nLmv XVXDJOrATpXRODeCIn1rszzlxsiFsGNJPES3+ofkoLzozbVvPnAFD6kNX6EkavYK F1U+WLctoqAIE3EDWtGusemPUfuQmP3ELtPgtJbJTu0kuzvVichZx1bp16YcvZf2 Qo0CzsScyBDj61vDbMRxrvYNqnvTmDDGWcemK3r6UX0aTtJdgWETblY44EfyeBX4 1XqQRD882QX1WLBNTOI/Ni3VFCpoAV58WGSkkeu5cIl6Tg7Jfq2jtiE+yQs6+wWz IumCHbPBVbB28HEZLY0omJq9ZZA/Wlr9qvqlKcrP/vrj/VgTrIdpr3AuEQj0bKAq nBvtGZ44xLGRawi/aCoVjntO2n+UaKrY0UEAR3OvUnMG/ifovvUvqefLwq2FlPBU oZ42+5CV1rc3t+xnqMdRBy+mpvgAv8nta9WHSm4uCUjsyEjqnj0j9S4AVYvVOVCG FRFpCf9jBjFv31xQZc3XNU4K760l/u5sUQaUDZh4sxCPK14lAKdl0XWltIDUJ6hp dmeCSxys0jrjkd7gI95x1fydy8Tz7FyfTmt/4Kv+uBl7Q8BsOTmDyi7kI+L5PawA MURgU8IozxunJa3657mOzodv9AOfC8f0ejvuRv77wYL9845JIKmVx2BoXMUVkxyw WTz6RQAMGPvChFDmv2UZ =5neu -----END PGP SIGNATURE----- --=-=-=--