* gnus-demon.el (gnus-demon-init): run-with-timer should be called with
numerical parameters.
+2011-02-25 Julien Danjou <julien@danjou.info>
+
+ * gnus-gravatar.el: Use gnus-with-article-buffer.
+
+ * gnus-art.el (gnus-with-article-buffer): Check that the
+ gnus-article-buffer is alive.
+
2011-02-24 Teodor Zlatanov <tzz@lifelogs.com>
* auth-source.el (auth-source-creation-prompts): New variable to manage
(put 'gnus-with-article-headers 'edebug-form-spec '(body))
(defmacro gnus-with-article-buffer (&rest forms)
- `(with-current-buffer gnus-article-buffer
- (let ((inhibit-read-only t))
- ,@forms)))
+ `(when (buffer-live-p gnus-article-buffer)
+ (with-current-buffer gnus-article-buffer
+ (let ((inhibit-read-only t))
+ ,@forms))))
(put 'gnus-with-article-buffer 'lisp-indent-function 0)
(put 'gnus-with-article-buffer 'edebug-form-spec '(body))
"Insert GRAVATAR for ADDRESS in HEADER in current article buffer.
Set image category to CATEGORY."
(unless (eq gravatar 'error)
- (with-current-buffer gnus-article-buffer
+ (gnus-with-article-buffer
(let ((mark (point-marker))
- (inhibit-read-only t)
(inhibit-point-motion-hooks t)
(case-fold-search t))
(save-restriction