From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66951 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.gnus.general Subject: problem calling (gnus-group-get-new-news) from elisp Date: Thu, 15 May 2008 11:40:28 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210888792 22435 80.91.229.12 (15 May 2008 21:59:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 May 2008 21:59:52 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15427@lists.math.uh.edu Fri May 16 00:00:28 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JwlUx-0001rm-4x for ding-account@gmane.org; Fri, 16 May 2008 00:00:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JwlTS-0006Hj-1r; Thu, 15 May 2008 16:58:54 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Jwa1J-0002e3-3F for ding@lists.math.uh.edu; Thu, 15 May 2008 04:45:05 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1Jwa1D-0000Sg-BM for ding@lists.math.uh.edu; Thu, 15 May 2008 04:45:04 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Jwa1O-00013v-00 for ; Thu, 15 May 2008 11:45:10 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jwa14-0007OS-1R for ding@gnus.org; Thu, 15 May 2008 09:44:50 +0000 Original-Received: from iwfs.imcode.com ([82.115.149.64]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 May 2008 09:44:50 +0000 Original-Received: from joakim by iwfs.imcode.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 May 2008 09:44:50 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: iwfs.imcode.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:JH82QmORSYW6RpDeMjXcr1Y4M50= X-Spam-Score: -1.6 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66951 Archived-At: 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