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:35:02 +0200 Message-ID: <8739m8u4g9.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 1301232379 31053 80.91.229.12 (27 Mar 2011 13:26:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2011 13:26:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 27 15:26:15 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 1Q3pyx-00057B-2d for ged-emacs-devel@m.gmane.org; Sun, 27 Mar 2011 15:26:15 +0200 Original-Received: from localhost ([127.0.0.1]:51956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3pyw-0003fc-3u for ged-emacs-devel@m.gmane.org; Sun, 27 Mar 2011 09:26:14 -0400 Original-Received: from [140.186.70.92] (port=51088 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3pBW-0008OW-59 for emacs-devel@gnu.org; Sun, 27 Mar 2011 08:35:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3pBU-0005W1-MG for emacs-devel@gnu.org; Sun, 27 Mar 2011 08:35:10 -0400 Original-Received: from mail-ww0-f41.google.com ([74.125.82.41]:40862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3pBU-0005Vr-HD for emacs-devel@gnu.org; Sun, 27 Mar 2011 08:35:08 -0400 Original-Received: by wwi18 with SMTP id 18so898989wwi.0 for ; Sun, 27 Mar 2011 05:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=TxLu2bINIUp8uOB6J/T+INJLpNqOAfJ7BXiwyo05pd8=; b=D+IdB8XLW5+lEFmfz73i9bJFNUUrJDH7vl11vC61W3P+DBne/OEKDoCVSvQOgdcvMc KMg32xOnrFioQLrLxRlao9fVgaUNYIw3VxG8A7fb8p6+4u4GjkxcfNiuWu660fzYWrzN loC8kgI+umxjbcz7VrS73vRX47ZnSeXl3onDE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=Ep8Sr8jTghBZvknkJDsnIupO7RDk79nZUCvcLeeUWIHZim2wu0T2yiemhTfUkYj1ZJ 9Cn4RiPcEdDOXmcT0NzAHURPLGpVIwffLE9vGjtPKOJ8wirrEdyOYVzs0EhP8gNve4f6 qTlpCCFzRoPHdlGskf9sj/U8p3hiWeP7P3HJA= Original-Received: by 10.216.143.7 with SMTP id k7mr2601342wej.95.1301229307193; Sun, 27 Mar 2011 05:35:07 -0700 (PDT) Original-Received: from lambda (ney92-7-78-233-218-202.fbx.proxad.net [78.233.218.202]) by mx.google.com with ESMTPS id d54sm1080044wej.34.2011.03.27.05.35.04 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Mar 2011 05:35:05 -0700 (PDT) In-Reply-To: (Juanma Barranquero's message of "Sun, 27 Mar 2011 14:15:36 +0200") 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, 2) X-Received-From: 74.125.82.41 X-Mailman-Approved-At: Sun, 27 Mar 2011 09:26:10 -0400 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:137754 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