[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: move cursor to the article being read
From: |
Katsumi Yamaoka |
Subject: |
Re: move cursor to the article being read |
Date: |
Thu, 08 Oct 2009 08:50:12 +0900 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) |
>>>>> Olivier Sirven wrote:
> Hello,
> I recently updated my gnus config to use a vertical slit when reading
> messages which is way more confortable with a wide screen. But there is
> one major issue now: the cursor on the summary buffer does not change
> article when I display another one. For example, if I have two messages
> displayed in my summary buffer and display the first one and then hit
> 'n' key I would like to have the cursor in the summary buffer moved to
> the second article which is not anymore the case with my changes. Would
> anyone knows how I can keep this feature with my vertical split config?
> Here is the lisp code I use to define the vertical split:
> (gnus-add-configuration
> '(article
> (horizontal 1.0
> (vertical 100 (summary 1.0))
> (vertical 1.0
> (article 1.0)))))
[...]
Though it may not be your taste, this makes it position the cursor
properly:
(gnus-add-configuration
'(article
(horizontal 1.0
(vertical 100 (summary 1.0 point))
(vertical 1.0
(article 1.0)))))
To ensure that the article window appears, I guess some Gnus
function uses this form
(gnus-configure-windows 'article)
and assumes that the summary window is focused after that. It's
obviously a bug, however seems to be hard to fix. For instance,
the `h' command (gnus-article-show-summary) doesn't work as usual
with your configuration (i.e., there's no `point' in the summary
section). I have no idea to fix even such a simple function so far.