info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbies questions


From: Karl Kleinpaste
Subject: Re: Newbies questions
Date: Thu, 26 Jul 2007 06:33:07 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.5-b27 (linux)

Tassilo Horn <tassilo@member.fsf.org> writes:
> Maybe it doesn't work for him because
>       gnus-demon-scan-news-and-update
>       gnus-demon-scan-mail-and-update
> are no predefined gnus functions?

No, those are the functions I gave him.

But what I did wrong was to neglect to provide the base function
needed for the two utility functions:

;; level-specified group scanner.
(defun gnus-demon-scan-mail-or-news-and-update (level)
"Scan for new mail, updating the *Group* buffer."
  (let ((win (current-window-configuration)))
    (unwind-protect
        (save-window-excursion
          (save-excursion
            (when (gnus-alive-p)
              (save-excursion
                (set-buffer gnus-group-buffer)
                (gnus-group-get-new-news level)))))
      (set-window-configuration win))))

Without this, the two demon functions I offered should have blown up
completely on an undef error.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]