Gnus development mailing list
 help / color / mirror / Atom feed
From: Philipp Haselwarter <philipp.haselwarter@gmx.de>
To: ding@gnus.org
Subject: [Patch] Fix jumping line when the summary gets recentered
Date: Sun, 25 Mar 2012 17:18:47 +0200	[thread overview]
Message-ID: <87iphsn1yg.fsf@nzebook.haselwarter.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 299 bytes --]

When `scroll-margin' > `gnus-auto-center-summary' then recentering the
summary window first recenters according to `gnus-auto-center-summary',
then according to `scroll-margin', which causes the display to «jump».

There are surely other ways to fix this issue, the attached patch
WorksForMe™.


[-- Attachment #2: 0001-Fix-jumping-line-when-the-summary-gets-recentered.patch --]
[-- Type: message/rfc822, Size: 940 bytes --]

From: Philipp Haselwarter <philipp.haselwarter@gmx.de>
Subject: [PATCH] Fix jumping line when the summary gets recentered.
Date: Sun, 25 Mar 2012 15:21:29 +0200

* lisp/gnus-sum.el (gnus-auto-center-summary): Set default to respect
  `scroll-margin'
---
 lisp/gnus-sum.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el
index b37562d..51cdcaa 100644
--- a/lisp/gnus-sum.el
+++ b/lisp/gnus-sum.el
@@ -451,7 +451,7 @@ current article is unread."
   :group 'gnus-summary-maneuvering
   :type 'boolean)
 
-(defcustom gnus-auto-center-summary 2
+(defcustom gnus-auto-center-summary (max scroll-margin 2)
   "*If non-nil, always center the current summary buffer.
 In particular, if `vertical' do only vertical recentering.  If non-nil
 and non-`vertical', do both horizontal and vertical recentering."
-- 
1.7.9.4


[-- Attachment #3: Type: text/plain, Size: 26 bytes --]



-- 
Philipp Haselwarter

             reply	other threads:[~2012-03-25 15:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-25 15:18 Philipp Haselwarter [this message]
2012-04-10 19:28 ` Lars Magne Ingebrigtsen

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=87iphsn1yg.fsf@nzebook.haselwarter.org \
    --to=philipp.haselwarter@gmx.de \
    --cc=ding@gnus.org \
    /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).