From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Box attribute in mode-line and scrolling Date: Sun, 27 Mar 2011 10:39:07 -0700 Message-ID: References: <87zkogu6u4.fsf@gmail.com> <87tyeospbb.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1301247564 9323 80.91.229.12 (27 Mar 2011 17:39:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2011 17:39:24 +0000 (UTC) To: "'Antoine Levitt'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 27 19:39:20 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q3tvs-0005Un-9x for ged-emacs-devel@m.gmane.org; Sun, 27 Mar 2011 19:39:20 +0200 Original-Received: from localhost ([127.0.0.1]:42473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3tvr-0007K9-RO for ged-emacs-devel@m.gmane.org; Sun, 27 Mar 2011 13:39:19 -0400 Original-Received: from [140.186.70.92] (port=39198 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3tvm-0007Jt-OY for emacs-devel@gnu.org; Sun, 27 Mar 2011 13:39:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3tvl-00045p-BK for emacs-devel@gnu.org; Sun, 27 Mar 2011 13:39:14 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:56070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3tvl-00045V-6P for emacs-devel@gnu.org; Sun, 27 Mar 2011 13:39:13 -0400 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p2RHd7c8004351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 27 Mar 2011 17:39:09 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p2RHd7BD001599 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 27 Mar 2011 17:39:07 GMT Original-Received: from abhmt002.oracle.com (abhmt002.oracle.com [141.146.116.11]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p2RHd7KI008077; Sun, 27 Mar 2011 12:39:07 -0500 Original-Received: from dradamslap1 (/10.159.60.136) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 27 Mar 2011 10:39:06 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87tyeospbb.fsf@gmail.com> Thread-Index: AcvsfTHBnagJwKWzTnmf9GVC2EjNGQAJoVXg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Source-IP: acsmt356.oracle.com [141.146.40.156] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4D8F763B.0069,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 148.87.113.121 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137762 Archived-At: >> >> There seems to be a conflict between scrolling and the box >> >> attribute in mode-line. I have in my config a ":box t" >> >> attribute in mode-line (from the theme I use, zenburn.el). >> >> With this setting on, C-v M-v produces a net displacement >> >> of one line up, which is annoying. This seems to be >> >> irrespective of settings such as scroll-conservatively or >> >> scroll-preserve-screen-position. >> >> >> >> This is a pretty old bug. It might (or might not) be >> >> related to >> >> http://lists.gnu.org/archive/html/emacs-devel/2010-10/msg00339.html >> > >> > That doesn't seem like a bug, but the fact that adding the box >> > enlarges the size of the modeline, and likely the last line of the >> > window isn't fully displayed. >> >> Yes, that seems to be what's happening. But how is that not a >> bug? Even if the last line isn't fully displayed, can't emacs >> try and figure out a way to respect the semantics of C-v and >> M-v cancelling each other out in the middle of a file? >> >> > Does it also happen if, instead of ":box t" you use ":box >> > '(:line-width -1 :style released-button)"? >> >> Yup, that fixes it, and even if I don't use :style released-button. >> >> > This gotcha should be pointed out more clearly in the doc, >> > since the default behavior increases the height of the >> > current line, which can throw off various things. >> > >> > [And/or let's] change the default :line-width to -1 instead of 1. > > Right. That seems to be a different issue though. Even with a larger > mode line, why do the scrolling commands behave this way? My guess is that it is not a different issue. As you guessed in citing the October message (see e.g. the last message in that thread), as Juanma indicated is likely, and as you seem to have confirmed using the fix he suggested, the problem for the scrolling commands is also (I'm guessing) the increased (mode-)line height. Documenting this unfortunate side effect better, and changing the default so as to not increase the line height, would (if our guesses are correct) directly address your issue.