From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81649 Path: news.gmane.org!not-for-mail From: Philipp Haselwarter Newsgroups: gmane.emacs.gnus.general Subject: [Patch] Fix jumping line when the summary gets recentered Date: Sun, 25 Mar 2012 17:18:47 +0200 Message-ID: <87iphsn1yg.fsf@nzebook.haselwarter.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Aldergrove-Comirex-ARPA-hackers-Etacs-bootleg-Mole-jNqz3Bd8TG" X-Trace: dough.gmane.org 1332688813 31689 80.91.229.3 (25 Mar 2012 15:20:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 25 Mar 2012 15:20:13 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29929@lists.math.uh.edu Sun Mar 25 17:20:09 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SBpEl-0000qp-E4 for ding-account@gmane.org; Sun, 25 Mar 2012 17:20:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1SBpDn-0007tJ-Vl; Sun, 25 Mar 2012 10:19:08 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1SBpDm-0007t9-8p for ding@lists.math.uh.edu; Sun, 25 Mar 2012 10:19:06 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SBpDk-00052f-Rb for ding@lists.math.uh.edu; Sun, 25 Mar 2012 10:19:05 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SBpDi-0006Ww-Rn for ding@gnus.org; Sun, 25 Mar 2012 17:19:02 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SBpDh-00006r-RR for ding@gnus.org; Sun, 25 Mar 2012 17:19:01 +0200 Original-Received: from 104.163.112.78.rev.sfr.net ([78.112.163.104]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Mar 2012 17:19:01 +0200 Original-Received: from philipp.haselwarter by 104.163.112.78.rev.sfr.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Mar 2012 17:19:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 54 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 104.163.112.78.rev.sfr.net X-NSA-Fodder: Ortega import Delta Force PLO Albanian David John Oates X-Tom-Swifty: "Ed is the Standard Text Editor," Tom sed. User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux) Cancel-Lock: sha1:lkyZn8tPxKSJf3VPJ/qUoACQCrY= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81649 Archived-At: --Aldergrove-Comirex-ARPA-hackers-Etacs-bootleg-Mole-jNqz3Bd8TG Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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™. --Aldergrove-Comirex-ARPA-hackers-Etacs-bootleg-Mole-jNqz3Bd8TG Content-Type: message/rfc822 Content-Disposition: attachment; filename=0001-Fix-jumping-line-when-the-summary-gets-recentered.patch >From 8ea2a5ee803aa7d252bb0466474a11b4a2d47678 Mon Sep 17 00:00:00 2001 From: Philipp Haselwarter Date: Sun, 25 Mar 2012 15:21:29 +0200 Subject: [PATCH] Fix jumping line when the summary gets recentered. * 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 --Aldergrove-Comirex-ARPA-hackers-Etacs-bootleg-Mole-jNqz3Bd8TG Content-Type: text/plain -- Philipp Haselwarter --Aldergrove-Comirex-ARPA-hackers-Etacs-bootleg-Mole-jNqz3Bd8TG--