all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 22.2.50; doc strings: menu-bar-mode scroll-bar-mode tool-bar-mode
@ 2008-04-26 17:15 Reiner Steib
  2008-04-26 21:37 ` Johan Bockgård
  0 siblings, 1 reply; 3+ messages in thread
From: Reiner Steib @ 2008-04-26 17:15 UTC (permalink / raw)
  To: emacs-pretest-bug

Hi,

maybe the doc strings of menu-bar-mode, scroll-bar-mode and
tool-bar-mode should be unified with regards to the numeric arguments.
Currently, some of the doc strings mention positive, some negative
arguments:

| (menu-bar-mode &optional arg)
| [...] 
| With a numeric argument, if the argument is positive,
| turn on menu bars; otherwise, turn off menu bars.

| (scroll-bar-mode &optional flag)
| [...]
| With a numeric argument, if the argument is negative,
| turn off scroll bars; otherwise, turn on scroll bars.

| (tool-bar-mode &optional arg)
| [...]
| With numeric arg, display the tool bar if and only if arg is positive.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 22.2.50; doc strings: menu-bar-mode scroll-bar-mode tool-bar-mode
  2008-04-26 17:15 22.2.50; doc strings: menu-bar-mode scroll-bar-mode tool-bar-mode Reiner Steib
@ 2008-04-26 21:37 ` Johan Bockgård
  2008-04-28  1:43   ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Bockgård @ 2008-04-26 21:37 UTC (permalink / raw)
  To: emacs-devel; +Cc: emacs-pretest-bug

Reiner Steib <reinersteib+gmane@imap.cc> writes:

> | (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.  So the doc
correctly describes its behavior, but the behavior is wrong.  (The Emacs
manual says "With an argument, it turns use of scroll bars on if and
only if the argument is positive.")

-- 
Johan Bockgård





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 22.2.50; doc strings: menu-bar-mode scroll-bar-mode tool-bar-mode
  2008-04-26 21:37 ` Johan Bockgård
@ 2008-04-28  1:43   ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2008-04-28  1:43 UTC (permalink / raw)
  To: emacs-devel

>> | (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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-28  1:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-26 17:15 22.2.50; doc strings: menu-bar-mode scroll-bar-mode tool-bar-mode Reiner Steib
2008-04-26 21:37 ` Johan Bockgård
2008-04-28  1:43   ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.