GNU bug report logs - #7049
24.0.50; Feature request: tool-bar-position defcustom

Previous Next

Package: emacs;

Reported by: Stephen Berman <stephen.berman <at> gmx.net>

Date: Thu, 16 Sep 2010 20:05:02 UTC

Severity: wishlist

Found in version 24.0.50

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7049 in the body.
You can then email your comments to 7049 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7049; Package emacs. (Thu, 16 Sep 2010 20:05:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stephen Berman <stephen.berman <at> gmx.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 16 Sep 2010 20:05:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; Feature request: tool-bar-position defcustom
Date: Thu, 16 Sep 2010 22:06:41 +0200
It would be convenient to have the Gtk+ tool bar placement (top, bottom,
left, right) be managed by Custom.  Currently, changing the default
permanently in user-init-file requires modifying the frame parameters.

In GNU Emacs 24.0.50.7 (i686-pc-linux-gnu, GTK+ Version 2.18.6)
 of 2010-09-16 on escher
Windowing system distributor `The X.Org Foundation', version 11.0.10605000
configured using `configure  '--with-imagemagick' '--without-toolkit-scroll-bars''




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7049; Package emacs. (Fri, 17 Sep 2010 13:35:02 GMT) Full text and rfc822 format available.

Message #8 received at 7049 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: 7049 <at> debbugs.gnu.org
Subject: Re: bug#7049: 24.0.50; Feature request: tool-bar-position defcustom
Date: Fri, 17 Sep 2010 15:36:28 +0200

Stephen Berman skrev 2010-09-16 22.06:
> It would be convenient to have the Gtk+ tool bar placement (top, bottom,
> 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 tool bar in 
the menu and then save options.  Isn't that enough?

	Jan D.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7049; Package emacs. (Fri, 17 Sep 2010 15:02:01 GMT) Full text and rfc822 format available.

Message #11 received at 7049 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 7049 <at> debbugs.gnu.org
Subject: Re: bug#7049: 24.0.50; Feature request: tool-bar-position defcustom
Date: Fri, 17 Sep 2010 17:03:19 +0200
On Fri, 17 Sep 2010 15:36:28 +0200 Jan Djärv <jan.h.d <at> swipnet.se> wrote:

> Stephen Berman skrev 2010-09-16 22.06:
>> It would be convenient to have the Gtk+ tool bar placement (top, bottom,
>> 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 tool 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 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))))))

Steve Berman




Reply sent to Jan Djärv <jan.h.d <at> swipnet.se>:
You have taken responsibility. (Tue, 21 Sep 2010 07:33:02 GMT) Full text and rfc822 format available.

Notification sent to Stephen Berman <stephen.berman <at> gmx.net>:
bug acknowledged by developer. (Tue, 21 Sep 2010 07:33:02 GMT) Full text and rfc822 format available.

Message #16 received at 7049-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: 7049-done <at> debbugs.gnu.org
Subject: Re: bug#7049: 24.0.50; Feature request: tool-bar-position defcustom
Date: Tue, 21 Sep 2010 09:34:41 +0200
2010-09-17 17:03, Stephen Berman skrev:
> On Fri, 17 Sep 2010 15:36:28 +0200 Jan Djärv<jan.h.d <at> swipnet.se>  wrote:
>
>> Stephen Berman skrev 2010-09-16 22.06:
>>> It would be convenient to have the Gtk+ tool bar placement (top, bottom,
>>> 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 tool 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 
complain and say it is set outside customize.
2) We don't want to disable the tool bar here. If so it contradicts the value 
for tool-bar-mode, which would be confusing.

	Jan D.






bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 19 Oct 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 303 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.