From: Lars Ingebrigtsen <larsi@gnus.org>
To: Gnus Beta Testers <ding@gnus.org>
Subject: Re: [Q] Programmatically remembering the backend to post with ?
Date: Sat, 06 Feb 2016 18:07:28 +1100 [thread overview]
Message-ID: <871t8qnwpb.fsf@gnus.org> (raw)
In-Reply-To: <m1bnaq2rit.fsf@xemacs.org> (Didier Verna's message of "Thu, 19 Nov 2015 11:49:14 +0100")
Didier Verna <didier@xemacs.org> writes:
> When I programmatically post, however, it doesn't so I must be missing
> something. Here's a skeleton of a posting function that I use.
>
> (defmacro* post-message
> ((group subject message &optional (to-group group)) &body body)
> ;; Post a Gnus MESSAGE about SUBJECT, from GROUP.
> ;; Destination group will be the same unless TO-GROUP is provided.
> ;; Execute BODY in the message buffer.
>
> ;; #### WARNING: SAVE-EXCURSION is important to avoid local-variable value
> ;; leaking. See some similar tricks in gnus-group-mail and such. I can't
> ;; remember the exact problem though.
> `(save-excursion
> (let ((gnus-newsgroup-name ,group)
> gnus-article-copy)
> (gnus-post-news 'post ,to-group)
> (gmm-fill ,subject ,message)
> ,@body)))
Do you include the full Gnus group name in your function? I think
that's all that Gnus does...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2016-02-06 7:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 10:49 Didier Verna
2016-02-06 7:07 ` Lars Ingebrigtsen [this message]
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=871t8qnwpb.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=ding@gnus.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).