From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#12405: 24.2.50; doc of `menu-bar-mode' is incorrect Date: Mon, 10 Sep 2012 09:20:15 -0700 Message-ID: <72D158AC1048415AB3D8C2F3F963031B@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347294097 13283 80.91.229.3 (10 Sep 2012 16:21:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2012 16:21:37 +0000 (UTC) To: 12405@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 10 18:21:40 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TB6jz-0001rp-AK for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 18:21:39 +0200 Original-Received: from localhost ([::1]:47533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB6jv-0000d7-SR for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 12:21:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB6js-0000cu-FZ for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 12:21:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB6jm-0001s5-LL for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 12:21:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB6jm-0001s1-Hi for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 12:21:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TB6kL-000415-Ol for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 12:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Sep 2012 16:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12405 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.134729407015363 (code B ref -1); Mon, 10 Sep 2012 16:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Sep 2012 16:21:10 +0000 Original-Received: from localhost ([127.0.0.1]:52537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB6jV-0003zj-8y for submit@debbugs.gnu.org; Mon, 10 Sep 2012 12:21:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38229) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB6jT-0003zb-BU for submit@debbugs.gnu.org; Mon, 10 Sep 2012 12:21:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB6io-0001aR-9c for submit@debbugs.gnu.org; Mon, 10 Sep 2012 12:20:31 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:56881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB6io-0001aN-66 for submit@debbugs.gnu.org; Mon, 10 Sep 2012 12:20:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB6ii-0000O2-F2 for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 12:20:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB6ig-0001Rz-QD for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 12:20:20 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:43126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB6ig-0001Qs-JF for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 12:20:18 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q8AGKHFJ024292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 10 Sep 2012 16:20:17 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q8AGKGZL022097 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 10 Sep 2012 16:20:17 GMT Original-Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q8AGKGZs002442 for ; Mon, 10 Sep 2012 11:20:16 -0500 Original-Received: from dradamslap1 (/130.35.178.248) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 Sep 2012 09:20:16 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac2PcCkqk5Ur3Af1TQu1g/3fzhOUqA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64055 Archived-At: The doc string says this: "If called from Lisp, enable Menu Bar mode if ARG is omitted or nil." That means that when called from Lisp (menu-bar-mode nil) and (menu-bar-mode) should turn OFF the mode. But they turn it ON instead. The code for `menu-bar-mode' has this, which for ARG = nil sets `menu-bar-mode' to t: (setq menu-bar-mode (if (eq arg 'toggle) (not menu-bar-mode) (> (prefix-numeric-value arg) 0))) (prefix-numeric-arg nil) = 1, which is > 0. This bug is present also in release Emacs 24.1. I haven't checked older releases. In GNU Emacs 24.2.50.1 (i386-mingw-nt5.1.2600) of 2012-09-02 on MARVIN Bzr revision: 109861 eggert@cs.ucla.edu-20120902171035-7mzihil3xd6bjfiy Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --no-opt --enable-checking --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2'