GNU bug report logs - #4698
23.1; C-l in gnus differs from other modes

Previous Next

Package: emacs;

Reported by: Tom Tromey <tromey <at> redhat.com>

Date: Sun, 11 Oct 2009 01:30:07 UTC

Severity: minor

Done: Reiner Steib <reinersteib+gmane <at> imap.cc>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Reiner Steib <reinersteib+gmane <at> imap.cc>
To: Tom Tromey <tromey <at> redhat.com>
Cc: 4698 <at> debbugs.gnu.org, ding <at> gnus.org
Subject: bug#4698: 23.1; C-l in gnus differs from other modes
Date: Wed, 14 Oct 2009 20:23:56 +0200
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/



This bug report was last modified 15 years and 180 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.