From: joakim@verona.se
To: ding@gnus.org
Subject: problem calling (gnus-group-get-new-news) from elisp
Date: Thu, 15 May 2008 11:40:28 +0200 [thread overview]
Message-ID: <m3d4nnzz03.fsf@verona.se> (raw)
I have code that calls (gnus-group-get-new-news) from elisp,
when a process finishes:
(defun jvfetchmail-sentinel (process event)
(setq jvfetchmail-in-progress nil) ;should rather be called lat but currently gnus might fail
(let*
((msg (format "fetchmail %s" event)))
(save-excursion
(set-buffer (get-buffer-create "*fetchmail*"))
(gnus-group-get-new-news)
(insert msg))
(princ msg)))
it kind of works, but I get "buffer readonly" messages, that I dont get
when I run the command interactively.
Also, the number of messages in my first group never gets updated, but
the others does.
--
Joakim Verona
reply other threads:[~2008-05-15 9:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=m3d4nnzz03.fsf@verona.se \
--to=joakim@verona.se \
--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).