From: Angel de Vicente <angel.vicente.garrido@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Signing message reply problem
Date: Tue, 01 Nov 2022 09:52:41 +0000 [thread overview]
Message-ID: <874jvj9f2u.fsf@gmail.com> (raw)
In-Reply-To: 871qqooxu9.fsf@gmail.com
[-- Attachment #1: Type: text/plain, Size: 1234 bytes --]
Hello,
Robert Pluim <rpluim@gmail.com> writes:
> >> (defun angel-message-setup ()
> >> (save-excursion
> >> (message-goto-body)
> >> (mml-secure-message-sign-pgpmime)))
> >>
> >> (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ʼs going on you
> can use `edebug-defun' and then single step through
> `angel-message-setup' to see whatʼs 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,
--
Ángel de Vicente -- (GPG: 0x64D9FDAE7CD5E939)
Research Software Engineer (Supercomputing and BigData)
Instituto de Astrofísica de Canarias (https://www.iac.es/en)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 702 bytes --]
next prev parent reply other threads:[~2022-11-01 9:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-29 23:19 Signing message reply problem Angel de Vicente
2022-10-31 13:38 ` Robert Pluim
2022-10-31 14:00 ` Angel de Vicente
2022-10-31 14:46 ` Robert Pluim
2022-10-31 15:22 ` Emanuel Berg
2022-11-02 10:33 ` Robert Pluim
2022-11-02 13:10 ` Emanuel Berg
2022-11-03 11:15 ` Robert Pluim
2022-11-30 10:46 ` Supportet browsers in browse-url.elc Alexandros Prekates
2022-11-30 14:17 ` Eli Zaretskii
2022-11-01 9:52 ` Angel de Vicente [this message]
2022-11-02 10:38 ` Signing message reply problem Robert Pluim
2022-10-31 15:38 ` Emanuel Berg
2022-11-02 22:06 ` Angel de Vicente
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874jvj9f2u.fsf@gmail.com \
--to=angel.vicente.garrido@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.