GNU bug report logs - #16475
24.3.50; enhancement request: remove vertical scroll bar automatically when not needed

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Fri, 17 Jan 2014 04:43:01 UTC

Severity: wishlist

Found in version 24.3.50

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 16475 <at> debbugs.gnu.org, esq <at> lawlist.com
Subject: bug#16475: enhancement request: remove vertical scroll bar automatically when not needed
Date: Fri, 27 Oct 2017 10:25:54 +0200
>> Obviously, an equivalent of ‘set-window-scroll-bars’ would have to be
>> used here.
>
> I agree, but then the right place to call this is not from redisplay,
> but from keyboard.c, before it calls read_char (which calls
> redisplay).  set-window-scroll-bars triggers a redisplay cycle, so
> calling it from (the end of) redisplay is not very wise, IMO.

It's ecologically questionable in any case: After every change affecting
the buffer (insertion/deletion, overlays, visibility) we'd have to check
whether its text still fits into its window(s) and then either add or
remove the scroll bar(s).  And note that we may scroll lines out of view
(and thus implicitly should show a vertical scroll bar) even when the
text would entirely fit into its window.

martin





This bug report was last modified 7 years and 231 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.