From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.devel Subject: Re: Box attribute in mode-line and scrolling Date: Sun, 27 Mar 2011 14:47:20 +0200 Message-ID: <87tyeospbb.fsf@gmail.com> References: <87zkogu6u4.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1301230069 20300 80.91.229.12 (27 Mar 2011 12:47:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2011 12:47:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 27 14:47:46 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 1Q3pNh-0008Mz-UP for ged-emacs-devel@m.gmane.org; Sun, 27 Mar 2011 14:47:46 +0200 Original-Received: from localhost ([127.0.0.1]:47484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3pNh-00058c-Ds for ged-emacs-devel@m.gmane.org; Sun, 27 Mar 2011 08:47:45 -0400 Original-Received: from [140.186.70.92] (port=59006 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3pNc-000532-9b for emacs-devel@gnu.org; Sun, 27 Mar 2011 08:47:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3pNb-0006se-1R for emacs-devel@gnu.org; Sun, 27 Mar 2011 08:47:40 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:57868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3pNa-0006sN-Oc for emacs-devel@gnu.org; Sun, 27 Mar 2011 08:47:38 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q3pNY-0008Ko-2f for emacs-devel@gnu.org; Sun, 27 Mar 2011 14:47:36 +0200 Original-Received: from ney92-7-78-233-218-202.fbx.proxad.net ([78.233.218.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Mar 2011 14:47:36 +0200 Original-Received: from antoine.levitt by ney92-7-78-233-218-202.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Mar 2011 14:47:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ney92-7-78-233-218-202.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:137752 Archived-At: 27/03/11 14:15, Juanma Barranquero > On Sun, Mar 27, 2011 at 13:43, Antoine Levitt wrote: > >> 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. > > 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. Antoine