From 37db53265cd85357c709333120630101627c86f1 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Fri, 10 Jan 2003 08:02:32 +0000 Subject: [PATCH] Synch with Oort Gnus. --- lisp/ChangeLog | 7 +++++++ lisp/gnus-sum.el | 1 + lisp/nndraft.el | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d6e4560..d930374 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2003-01-10 Simon Josefsson + + * nndraft.el (nndraft-request-group): Avoid crash in + directory-files when draft directory doesn't exists. + + * gnus-sum.el (gnus-select-article-hook): Add :option. + 2003-01-10 Teodor Zlatanov * spam.el (spam-use-stat): new variable diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index b1744d1..7312f0c 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -820,6 +820,7 @@ following hook: (defcustom gnus-select-article-hook nil "*A hook called when an article is selected." :group 'gnus-summary-choose + :options '(gnus-agent-fetch-selected-article) :type 'hook) (defcustom gnus-visual-mark-article-hook diff --git a/lisp/nndraft.el b/lisp/nndraft.el index 0a0ff24..b0ffdbb 100644 --- a/lisp/nndraft.el +++ b/lisp/nndraft.el @@ -186,7 +186,8 @@ dir file) (nnheader-re-read-dir pathname) (setq dir (mapcar (lambda (name) (string-to-int (substring name 1))) - (directory-files pathname nil "^#[0-9]+#$" t))) + (ignore-errors (directory-files + pathname nil "^#[0-9]+#$" t)))) (dolist (n dir) (unless (file-exists-p (setq file (expand-file-name (int-to-string n) pathname))) -- 1.7.10.4