* summary-prepare-hook
@ 1998-01-22 17:20 Stefan Waldherr
1998-02-08 15:34 ` summary-prepare-hook Lars Magne Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Waldherr @ 1998-01-22 17:20 UTC (permalink / raw)
Hi,
when entering a mail group I find it annoying that the cursor is on the first
article. I much rather would like to see the cursor on the newest article
(ie., the last line in the summary buffer).
Unfortunately, the following hook does not give the expected result. Can
anybody give me a hint? (XEmacs barks at (previous-line)0, but even if I take
this out, it will not do the right thing).
(setq gnus-summary-prepare-hook
(lambda ()
(goto-char (point-max))
(previous-line)
(recenter)
)
)
I also tried various variations, like
(add-hook 'gnus-summary-prepare-hook
(lambda ()
(let (gnus-summary-prepare-hook)
(goto-char (point-max))
(recenter)
)
))
but to no avail.
Thanks,
Stefan.
--
Stefan Waldherr office +1 (412) 268-3837
fax +1 (412) 268-5576
e-Mail swa@cs.cmu.edu
www http://www.waldherr.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: summary-prepare-hook
1998-01-22 17:20 summary-prepare-hook Stefan Waldherr
@ 1998-02-08 15:34 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-02-08 15:34 UTC (permalink / raw)
Stefan Waldherr <swa@cs.cmu.edu> writes:
> when entering a mail group I find it annoying that the cursor is on the first
> article. I much rather would like to see the cursor on the newest article
> (ie., the last line in the summary buffer).
>
> Unfortunately, the following hook does not give the expected result.
I've now added a new hook, `gnus-summary-prepared-hook' to allow doing
this.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-02-08 15:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-22 17:20 summary-prepare-hook Stefan Waldherr
1998-02-08 15:34 ` summary-prepare-hook Lars Magne Ingebrigtsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).