[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Box attribute in mode-line and scrolling
From: |
Antoine Levitt |
Subject: |
Re: Box attribute in mode-line and scrolling |
Date: |
Sun, 27 Mar 2011 14:47:20 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
27/03/11 14:15, Juanma Barranquero
> On Sun, Mar 27, 2011 at 13:43, Antoine Levitt <address@hidden> 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