--- Begin Message ---
Subject: |
scroll-bar-mode should use define-minor-mode |
Date: |
Sun, 27 Apr 2008 21:43:24 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Severity: minor
[ resent from
http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01951.html ]
>> | (scroll-bar-mode &optional flag)
>> | [...]
>> | With a numeric argument, if the argument is negative,
>> | turn off scroll bars; otherwise, turn on scroll bars.
> Actually, `(scroll-bar-mode 0)' does turn on the mode.
Does it? Sounds like a bug. Could someone make it use
define-minor-mode to avoid such inconsistency.
Stefan
--- End Message ---
--- Begin Message ---
Subject: |
Re: 22.2.50; doc strings: menu-bar-mode scroll-bar-mode tool-bar-mode |
Date: |
Tue, 24 Feb 2009 17:11:39 +0100 |
On Mon, Apr 28, 2008 at 02:43, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> Actually, `(scroll-bar-mode 0)' does turn on the mode.
>
> Does it? Sounds like a bug.
Fixed.
> Could someone make it use
> define-minor-mode to avoid such inconsistency.
scroll-bar-mode is not well suited to define-minor-mode, because the
controlling variable is tri-state.
Juanma
--- End Message ---