Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: Tom Tromey <tromey@redhat.com>
Cc: 4698@emacsbugs.donarmstrong.com, ding@gnus.org
Subject: Re: bug#4698: 23.1; C-l in gnus differs from other modes
Date: Wed, 14 Oct 2009 20:23:56 +0200	[thread overview]
Message-ID: <87vdihomv7.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <m3vdim4tch.fsf@fleche.redhat.com> (Tom Tromey's message of "Sat, 10 Oct 2009 19:22:54 -0600")

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/



       reply	other threads:[~2009-10-14 18:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m3vdim4tch.fsf@fleche.redhat.com>
2009-10-14 18:23 ` Reiner Steib [this message]
2009-10-16  7:46   ` Katsumi Yamaoka
2009-11-30 18:24     ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vdihomv7.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=4698@emacsbugs.donarmstrong.com \
    --cc=Reiner.Steib@gmx.de \
    --cc=ding@gnus.org \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).