Gnus development mailing list
 help / color / mirror / Atom feed
* 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

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).