aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-21 17:26:15 +0000
committerRichard M. Stallman1994-08-21 17:26:15 +0000
commit20285524e1e20ea140de5232e96dfd055d82985b (patch)
tree58f8c46d5bcdfe6b7f415fd2f58989c5449adf25 /lisp
parent31cc18672a16d801a348d464c152d73d3fb29efc (diff)
downloademacs-20285524e1e20ea140de5232e96dfd055d82985b.tar.gz
emacs-20285524e1e20ea140de5232e96dfd055d82985b.zip
(news-select-message): Do most of the work
even for nonexistent article. (Code copied from 18.59).
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/rnews.el17
1 files changed, 9 insertions, 8 deletions
diff --git a/lisp/mail/rnews.el b/lisp/mail/rnews.el
index d3e76dc1903..c793fa150eb 100644
--- a/lisp/mail/rnews.el
+++ b/lisp/mail/rnews.el
@@ -524,15 +524,16 @@ to a list (a . b)"
524 (let ((file (concat news-path 524 (let ((file (concat news-path
525 (string-subst-char ?/ ?. news-current-news-group) 525 (string-subst-char ?/ ?. news-current-news-group)
526 "/" arg))) 526 "/" arg)))
527 (if (= arg
528 (or (news-cadr (memq (news-cdar news-point-pdl) news-list-of-files))
529 0))
530 (setcdr (car news-point-pdl) arg))
531 (setq news-current-message-number arg)
527 (if (file-exists-p file) 532 (if (file-exists-p file)
528 (let ((buffer-read-only ())) 533 (let ((buffer-read-only nil))
529 (if (= arg 534 (news-read-in-file file)
530 (or (news-cadr (memq (news-cdar news-point-pdl) news-list-of-files)) 535 (news-set-mode-line))
531 0)) 536 (news-set-mode-line)
532 (setcdr (car news-point-pdl) arg))
533 (setq news-current-message-number arg)
534 (news-read-in-file file)
535 (news-set-mode-line))
536 (error "Article %d nonexistent" arg)))) 537 (error "Article %d nonexistent" arg))))
537 538
538(defun news-force-update () 539(defun news-force-update ()