* Daiki Ueno (2006-12-26 10:16 +0900) said: ^^^^^^^^^^ >>>>>> In <[EMAIL PROTECTED]> >>>>>> Leo <[EMAIL PROTECTED]> wrote: >> To reproduce: > >> - go to the article buffer >> - click the right arrow in the toolbar > >> Backtrace: >> ,---- >> | Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) >> | gnus-summary-next-article(nil) >> | call-interactively(gnus-summary-next-article) >> `---- > > The cause of the problem seems that gnus-article-mode uses > gnus-summary-mode's tool-bar-map and a few commands in it expect to be > called from the summary buffers. > >> BTW, left arrow does not have this problem. > > However, it doesn't select the previous article, does it?
No it does not. > > Here is a patch. With this patch both arrows work as expected. Thank you. > > Index: lisp/gnus/gnus-sum.el >=================================================================== >RCS file: /sources/emacs/emacs/lisp/gnus/gnus-sum.el,v retrieving >revision 1.96 diff -c -r1.96 gnus-sum.el *** lisp/gnus/gnus-sum.el 12 >Dec 2006 16:12:12 -0000 1.96 --- lisp/gnus/gnus-sum.el 26 Dec 2006 >01:12:40 -0000 *************** *** 7333,7338 **** --- 7333,7341 ---- >If SUBJECT, only articles with SUBJECT are selected. If BACKWARD, >the previous article is selected instead of the next." (interactive >"P") > + ;; Make sure we are in the summary buffer. > + (unless (eq major-mode 'gnus-summary-mode) > + (set-buffer gnus-summary-buffer)) > (cond > ;; Is there such an article? > ((and (gnus-summary-search-forward unread subject backward) -- Leo <sdl.web AT gmail.com> (GPG Key: 9283AA3F) _______________________________________________ emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
