Article View: gnu.emacs.bug
Article #87851Bug in rnews.el
From: Leonard N. Zubkoff
Date: Sat, 20 Aug 1994 07:56
Date: Sat, 20 Aug 1994 07:56
46 lines
2185 bytes
2185 bytes
In 19.25, it is impossible to N over a nonexistent article, whereas this works
reasonably in 18.59
19.25:
(defun news-select-message (arg)
(if (stringp arg) (setq arg (string-to-int arg)))
(let ((file (concat news-path
(string-subst-char ?/ ?. news-current-news-group)
"/" arg)))
(if (file-exists-p file)
(let ((buffer-read-only ()))
(if (= arg
(or (news-cadr (memq (news-cdar news-point-pdl) news-list-of-files))
0))
(setcdr (car news-point-pdl) arg))
(setq news-current-message-number arg)
(news-read-in-file file)
(news-set-mode-line))
(error "Article %d nonexistent" arg))))
18.59:
(defun news-select-message (arg)
(if (stringp arg) (setq arg (string-to-int arg)))
(let ((file (concat news-path
(string-subst-char ?/ ?. news-current-news-group)
"/" arg)))
(if (= arg
(or (news-cadr (memq (news-cdar news-point-pdl) news-list-of-files))
0))
(setcdr (car news-point-pdl) arg))
(setq news-current-message-number arg)
(if (file-exists-p file)
(let ((buffer-read-only nil))
(news-read-in-file file)
(news-set-mode-line))
(news-set-mode-line)
(error "Article %d nonexistent" arg))))
Is there some reason to make skipping over nonexistent articles painful? The
18.59 code signals an error but has arranged to keep going, whereas the 19.25
code stops dead, since news-current-message-number never gets updated.
Leonard
Technical Details
Message-ID:
<199408200751.AAA16651@dandelion.com>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!yeshua.marcam.com!usc!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!dandelion.com!lnzShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,b1df5f25d793bcbe,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-08-20 01:11:22 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!yeshua.marcam.com!usc!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!dandelion.com!lnz From: lnz@dandelion.com (Leonard N. Zubkoff) Newsgroups: gnu.emacs.bug Subject: Bug in rnews.el Date: 20 Aug 1994 03:56:34 -0400 Organization: GNUs Not Usenet Lines: 46 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <199408200751.AAA16651@dandelion.com>