GNU bug report logs - #16474
24.3.50; `set-window-scroll-bars` has no effect after you set it once to zero

Previous Next

Package: emacs;

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

Date: Fri, 17 Jan 2014 04:05:02 UTC

Severity: normal

Found in version 24.3.50

Done: Drew Adams <drew.adams <at> oracle.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16474 in the body.
You can then email your comments to 16474 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16474; Package emacs. (Fri, 17 Jan 2014 04:05:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 17 Jan 2014 04:05:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; `set-window-scroll-bars` has no effect after you set it once
 to zero
Date: Thu, 16 Jan 2014 20:03:45 -0800 (PST)
emacs -Q

M-: (set-window-scroll-bars nil 0)

The scroll bar disappears.

M-: (window-scroll-bars) 

returns (0 0 nil nil)

M-: (set-window-scroll-bars nil 20)

has no visible effect.

M-: (window-scroll-bars) 

still returns (0 0 nil nil)

Toggling `scroll-bar-mode' any number of times also has no effect.

While I'm at it: a doc bug for `window-scroll-bars': There is no
description of any of these terms that are introduced, hence there
is no real description of the return-value: zero information, other
than it being a list of 4 elements):

WIDTH
COLS
VERTICAL-TYPE
HORIZONTAL-TYPE

For a function that *gets* some information, this doc string tells you
almost nothing about what that information is.


In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2014-01-07 on ODIEONE
Bzr revision: 115916 bzg <at> gnu.org-20140107233629-du2solx6tmxnx0np
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
 'CFLAGS=-O0 -g3' LDFLAGS=-Lc:/Devel/emacs/lib
 CPPFLAGS=-Ic:/Devel/emacs/include'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16474; Package emacs. (Fri, 17 Jan 2014 07:21:01 GMT) Full text and rfc822 format available.

Message #8 received at 16474 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 16474 <at> debbugs.gnu.org
Subject: Re: bug#16474: 24.3.50; `set-window-scroll-bars` has no effect after
 you set it once to zero
Date: Fri, 17 Jan 2014 08:20:06 +0100
> M-: (set-window-scroll-bars nil 0)
>
> The scroll bar disappears.
>
> M-: (window-scroll-bars)
>
> returns (0 0 nil nil)
>
> M-: (set-window-scroll-bars nil 20)
>
> has no visible effect.

Obviously so:

Third parameter VERTICAL-TYPE specifies the type of the vertical scroll
bar: left, right, or nil.

You specified nil.

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16474; Package emacs. (Fri, 17 Jan 2014 15:36:02 GMT) Full text and rfc822 format available.

Message #11 received at 16474 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 16474 <at> debbugs.gnu.org
Subject: RE: bug#16474: 24.3.50; `set-window-scroll-bars` has no effect after
 you set it once to zero
Date: Fri, 17 Jan 2014 07:35:21 -0800 (PST)
>  > M-: (set-window-scroll-bars nil 0)
>  > The scroll bar disappears.
>  > M-: (window-scroll-bars)
>  > returns (0 0 nil nil)
>  > M-: (set-window-scroll-bars nil 20)
>  > has no visible effect.
> 
> Third parameter VERTICAL-TYPE specifies the type of the vertical scroll
> bar: left, right, or nil.  You specified nil.

Oops.  Thx.  I will close the bug.




bug closed, send any further explanations to 16474 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Drew Adams <drew.adams <at> oracle.com> to control <at> debbugs.gnu.org. (Fri, 17 Jan 2014 15:36:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 15 Feb 2014 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 184 days ago.

Previous Next


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