Subject: bug#1527 closed by Juanma Barranquero <[email-masked]> (Re: 22.2.50; doc strings: menu-bar-mode scroll-bar-mode tool-bar-mode)

From: [email-masked] (Emacs bug Tracking System)
Date: Tue, 24 Feb 2009 16:20:04 +0000

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#1527: scroll-bar-mode should use define-minor-mode

It has been closed by Juanma Barranquero <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Juanma Barranquero <[email-masked]> by
replying to this email.

-- 
1527: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1527
Emacs Bug Tracking System
Contact [email-masked] with problems

Subject: Re: 22.2.50; doc strings: menu-bar-mode scroll-bar-mode tool-bar-mode
From: Juanma Barranquero <[email-masked]>
To: Stefan Monnier <[email-masked]>
Cc: [email-masked]
Date: Tue, 24 Feb 2009 17:11:39 +0100

On Mon, Apr 28, 2008 at 02:43, Stefan Monnier <[email-masked]> 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

>From [email-masked] Tue Dec  9 19:08:53 2008
From: Stefan Monnier <[email-masked]>
To: [email-masked]
Subject: scroll-bar-mode should use define-minor-mode
Date: Sun, 27 Apr 2008 21:43:24 -0400
Lines: 15
Sender: Glenn Morris <[email-masked]>

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