* [Patch] Fix jumping line when the summary gets recentered
@ 2012-03-25 15:18 Philipp Haselwarter
2012-04-10 19:28 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Philipp Haselwarter @ 2012-03-25 15:18 UTC (permalink / raw)
To: ding
[-- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Patch] Fix jumping line when the summary gets recentered
2012-03-25 15:18 [Patch] Fix jumping line when the summary gets recentered Philipp Haselwarter
@ 2012-04-10 19:28 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2012-04-10 19:28 UTC (permalink / raw)
To: Philipp Haselwarter; +Cc: ding
Philipp Haselwarter <philipp.haselwarter@gmx.de> writes:
> 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».
Thanks; applied.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-10 19:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-25 15:18 [Patch] Fix jumping line when the summary gets recentered Philipp Haselwarter
2012-04-10 19:28 ` 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).