[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#4698: 23.1; C-l in gnus differs from other modes
From: |
Reiner Steib |
Subject: |
bug#4698: 23.1; C-l in gnus differs from other modes |
Date: |
Wed, 14 Oct 2009 20:23:56 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) |
On Sun, Oct 11 2009, Tom Tromey wrote:
> Emacs changed the default C-l binding to recenter-top-bottom.
> However, C-l in the gnus summary buffer is still gnus-recenter,
> which just calls recenter.
> I think it would be nice if gnus followed the user's setting here.
Here's a mostly untested patch:
--8<---------------cut here---------------start------------->8---
--- gnus-sum.el 9 Sep 2009 09:31:35 -0000 7.240
+++ gnus-sum.el 14 Oct 2009 18:19:46 -0000
@@ -6722,7 +6725,9 @@
(when (and gnus-auto-center-summary
(not (eq gnus-auto-center-summary 'vertical)))
(gnus-horizontal-recenter))
- (recenter n))
+ (if (fboundp 'recenter-top-bottom)
+ (recenter-top-bottom n)
+ (recenter n)))
(defun gnus-summary-recenter ()
"Center point in the summary window.
--8<---------------cut here---------------end--------------->8---
Could you please test it for a while and report back?
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/