From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6037: 24.0.50; menu-bar-mode function doesn't toggle Date: Wed, 28 Apr 2010 10:43:20 -0400 Message-ID: References: <87r5m2vf28.fsf@kzsu.stanford.edu> <201004261741.o3QHfJq8040081@kzsu.stanford.edu> <201004270639.o3R6cx2S051311@kzsu.stanford.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272466575 20802 80.91.229.12 (28 Apr 2010 14:56:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2010 14:56:15 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Kevin Rodgers Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 28 16:56:04 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O78gA-0001cd-66 for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Apr 2010 16:55:58 +0200 Original-Received: from localhost ([127.0.0.1]:41277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O78g7-0003LT-Co for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Apr 2010 10:55:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O78g0-0003Jt-Hl for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2010 10:55:48 -0400 Original-Received: from [140.186.70.92] (port=58536 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O78fx-0003Ge-6y for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2010 10:55:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O78ft-0007L2-EY for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2010 10:55:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58140) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O78ft-0007Kl-Cp for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2010 10:55:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O78Uc-0004Ka-EK; Wed, 28 Apr 2010 10:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Apr 2010 14:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6037 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.127246581216637 (code B ref -1); Wed, 28 Apr 2010 14:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Apr 2010 14:43:32 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O78U7-0004KI-Vf for submit@debbugs.gnu.org; Wed, 28 Apr 2010 10:43:32 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O78U5-0004KC-9z for submit@debbugs.gnu.org; Wed, 28 Apr 2010 10:43:30 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:46952) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O78U2-0006sT-UG for submit@debbugs.gnu.org; Wed, 28 Apr 2010 10:43:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O78U2-0005vN-F3 for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2010 10:43:26 -0400 Original-Received: from [140.186.70.92] (port=45876 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O78Ty-0005ua-UV for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2010 10:43:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O78Tx-0002rV-DS for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2010 10:43:22 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:12096 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O78Tx-0002rN-9U for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2010 10:43:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAI/m10vO+KoL/2dsb2JhbACcbnK9O4UOBIwT X-IronPort-AV: E=Sophos;i="4.52,288,1270440000"; d="scan'208";a="62759202" Original-Received: from 206-248-170-11.dsl.teksavvy.com (HELO pastel.home) ([206.248.170.11]) by ironport2-out.pppoe.ca with ESMTP; 28 Apr 2010 10:43:20 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 9E3917F51; Wed, 28 Apr 2010 10:43:20 -0400 (EDT) In-Reply-To: (Kevin Rodgers's message of "Tue, 27 Apr 2010 23:42:23 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 28 Apr 2010 10:44:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36582 Archived-At: >> - it will tell customize about those changes (so "M-x customize-variable >> RET menu-bar-mode" will not complain about a variable set from >> outside, and it will let you save the current state. > Really? What is the connection between call-interactively and customize? No direct connect, but minor modes defined with define-minor-mode will check if they're called via call-interactively to decide whether to tell customize about the change (if not called interactively, there's no way for Customize to know whether the change could interfere with Customize or not). >> - You should be able to do C-u -1 f12 to forcibly turn off >> and C-u 1 f12 to forcibly turn on those GUI elements. > Really? In the past I've had to bind prefix-arg to the value of > current-prefix-arg around call-interactively, to get the "interior" > command to inherit the prefix arg of the exterior command. Hmm... you might be right. >> - You'll get a minibuffer messages about the menu-bar-mode being >> enabled/disabled. > Why doesn't scroll-bar-mode display the same messages? Because there's only one minibuffer, so you only see one of the messages. In this case it happens to be the first rather than the second. >> - It will work across "all" Emacs versions (the above code will already >> work with emacs-2[234] and I'm not sure which other versions have >> menu-bar-mode and scroll-bar-mode, so maybe it's not that big >> a difference). > (FOO-bar-mode nil) should also toggle across those versions (and older > versions) No, for Emacs-24 it will not toggle. Stefan