From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#7049: 24.0.50; Feature request: tool-bar-position defcustom Date: Tue, 21 Sep 2010 09:34:41 +0200 Message-ID: <4C986011.1080803@swipnet.se> References: <87d3sdqwq6.fsf@escher.home> <4C936EDC.8070308@swipnet.se> <87r5gsif9k.fsf@escher.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285054875 5701 80.91.229.12 (21 Sep 2010 07:41:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Sep 2010 07:41:15 +0000 (UTC) Cc: 7049-done@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 21 09:41:13 2010 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 1OxxTU-0006lg-4F for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Sep 2010 09:41:12 +0200 Original-Received: from localhost ([127.0.0.1]:50658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxxTO-00076D-63 for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Sep 2010 03:41:06 -0400 Original-Received: from [140.186.70.92] (port=44538 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxxTF-000760-LC for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2010 03:40:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OxxTD-0003eT-UO for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2010 03:40:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41268) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxxTD-0003eL-Rf for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2010 03:40:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OxxLa-0004LW-9s for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2010 03:33:02 -0400 Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2010 07:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 7049 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 7049@debbugs.gnu.org, jan.h.d@swipnet.se Original-Received: via spool by 7049-done@debbugs.gnu.org id=D7049.128505433416608 (code D ref 7049); Tue, 21 Sep 2010 07:33:01 +0000 Original-Received: (at 7049-done) by debbugs.gnu.org; 21 Sep 2010 07:32:14 +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 1OxxKo-0004Jp-3C for submit@debbugs.gnu.org; Tue, 21 Sep 2010 03:32:14 -0400 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxxKm-0004Jk-9U for 7049-done@debbugs.gnu.org; Tue, 21 Sep 2010 03:32:13 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 16882C0C7 for <7049-done@debbugs.gnu.org>; Tue, 21 Sep 2010 09:34:42 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Agk2AMf8l0xV4S0jPGdsb2JhbACDHIRSmjUMAQEBATUtsFiSQIEigyxzBI02 X-IronPort-AV: E=Sophos;i="4.56,397,1280700000"; d="scan'208";a="131957215" Original-Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb2.telenor.se with ESMTP; 21 Sep 2010 09:34:42 +0200 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 1073B7FA05A; Tue, 21 Sep 2010 09:34:42 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8 In-Reply-To: <87r5gsif9k.fsf@escher.home> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 21 Sep 2010 03:33: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:40340 Archived-At: 2010-09-17 17:03, Stephen Berman skrev: > On Fri, 17 Sep 2010 15:36:28 +0200 Jan Dj=C3=A4rv = wrote: > >> Stephen Berman skrev 2010-09-16 22.06: >>> It would be convenient to have the Gtk+ tool bar placement (top, bott= om, >>> left, right) be managed by Custom. Currently, changing the default >>> permanently in user-init-file requires modifying the frame parameters= . >>> >> >> default-frame-alist is in custom, and you can select where to show too= l bar in >> the menu and then save options. Isn't that enough? >> >> Jan D. > > Well, it's not quite as comfortable for newbies, I think. I'd imagine two menu choices to be simpler than customizing a variable. > I was > thinking along the lines of scroll-bar-mode; in fact, how about this: > > (defcustom tool-bar-position 'top > "Specify whether to have a tool bar, and on which side. > Possible values are nil (no tool bar), `top' (tool bar on top), > `bottom' (tool bar at bottom), `left' (tool bar on left) and > `right' (tool bar on right)." > :type '(choice (const :tag "none (nil)" nil) > (const top) > (const bottom) > (const left) > (const right)) > :group 'frames > :initialize 'custom-initialize-default > :set (lambda (sym val) > (if val > (modify-all-frames-parameters > (list (cons 'tool-bar-position val) (cons 'tool-bar-lines 1))) > (modify-all-frames-parameters (list (cons 'tool-bar-lines nil)))))) > I've checked in a modified version of this: 1) You must set tool-bar-position in :set also, otherwise customize will=20 complain and say it is set outside customize. 2) We don't want to disable the tool bar here. If so it contradicts the v= alue=20 for tool-bar-mode, which would be confusing. Jan D.