emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug] Gnus weird behavior


From: Leo
Subject: Re: [bug] Gnus weird behavior
Date: Wed, 27 Dec 2006 00:31:51 +0000
User-agent: Gnus v5.11, Emacs/23.0.0.4 (20061218), Fedora 6 gnu/linux

* Daiki Ueno (2006-12-26 10:16 +0900) said:
  ^^^^^^^^^^
>>>>>> In <address@hidden> 
>>>>>>  Leo <address@hidden> 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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]