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#6037: 24.0.50; menu-bar-mode function doesn't toggle Date: Tue, 27 Apr 2010 08:27:06 -0700 Message-ID: <578D02D39BE3447B8BBDD6C2B01E8D67@us.oracle.com> 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" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1272383784 31841 80.91.229.12 (27 Apr 2010 15:56:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Apr 2010 15:56:24 +0000 (UTC) Cc: 6037@debbugs.gnu.org To: "'Stefan Monnier'" , "'Joe Brenner'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 27 17:56:23 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 1O6n94-0006wO-AP for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Apr 2010 17:56:23 +0200 Original-Received: from localhost ([127.0.0.1]:37851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6n90-0008L8-In for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Apr 2010 11:56:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6n8U-0007ou-SS for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 11:55:46 -0400 Original-Received: from [140.186.70.92] (port=44867 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6n8R-0007jw-Hk for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 11:55:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6n8O-0005eC-Rv for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 11:55:43 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35078) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6n8O-0005e8-Pm for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 11:55:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O6mhd-00082K-PS; Tue, 27 Apr 2010 11:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Apr 2010 15:28:01 +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 6037-submit@debbugs.gnu.org id=B6037.127238204830883 (code B ref 6037); Tue, 27 Apr 2010 15:28:01 +0000 Original-Received: (at 6037) by debbugs.gnu.org; 27 Apr 2010 15:27:28 +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 1O6mh6-000824-2a for submit@debbugs.gnu.org; Tue, 27 Apr 2010 11:27:28 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6mh4-00081x-1O for 6037@debbugs.gnu.org; Tue, 27 Apr 2010 11:27:26 -0400 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3RFRJBo013207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 27 Apr 2010 15:27:20 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3RAaviB026592; Tue, 27 Apr 2010 15:27:18 GMT Original-Received: from abhmt006.oracle.com by acsmt354.oracle.com with ESMTP id 213368141272382029; Tue, 27 Apr 2010 08:27:09 -0700 Original-Received: from dradamslap1 (/141.144.72.34) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 27 Apr 2010 08:27:08 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcrmFg3hKWdvADdeSA6Ss1ZKRRIxbQAB6wiQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Auth-Type: Internal IP X-Source-IP: rcsinet13.oracle.com [148.87.113.125] X-CT-RefId: str=0001.0A090205.4BD70258.01B4:SCFMA4539811,ss=1,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 27 Apr 2010 11:28:01 -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:36566 Archived-At: > > (global-set-key [f12] '(lambda () > > (interactive) > > (menu-bar-mode 'toggle) > > (scroll-bar-mode 'toggle) > > (doom-toggle-use-dialog-box) > > )) > > That makes sense. But then I'd recommend the code below instead: > > > (global-set-key [f12] (lambda () > > (interactive) > > (call-interactively 'menu-bar-mode) > > (call-interactively 'scroll-bar-mode) > > (doom-toggle-use-dialog-box))) > > which will have the following impact: > - 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. > - 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. > - You'll get a minibuffer messages about the menu-bar-mode being > enabled/disabled. > - 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). This is the kind of thing that should be added to the doc. Many users will make use of something like this in their init files. They need to be aware of pretty much all of the things you point out.