all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: 1754@emacsbugs.donarmstrong.com
Cc: Chong Yidong <cyd@stupidchicken.com>
Subject: bug#1754: 23.0.60; tool-bar is shown with tool-bar-mode off
Date: Fri, 09 Jan 2009 20:37:01 +0100	[thread overview]
Message-ID: <4967A75D.1080404@gmx.at> (raw)
In-Reply-To: <005301c96b95$547ae890$c2b22382@us.oracle.com>

[-- Attachment #1: Type: text/plain, Size: 508 bytes --]

Chong, your

2008-10-09  Chong Yidong  <cyd@stupidchicken.com>

	* tool-bar.el (tool-bar-mode): Only change tool-bar-lines on
	graphical terminals.

change is inherently asymmetric with respect to future frames: Turning
`tool-bar-mode' off now adds an entry to `default-frame-alist' as before.
Turning it on now no more adds an entry.  IMHO, we should either not
call `modify-all-frames-parameters' in either case or call them in both
cases as in the (attached) tool-bar.el patch I proposed earlier.

martin

[-- Attachment #2: tool-bar.el.diff --]
[-- Type: text/plain, Size: 796 bytes --]

*** tool-bar.el.~1.23.~	2009-01-05 10:00:20.515625000 +0100
--- tool-bar.el	2009-01-09 20:09:59.421875000 +0100
***************
*** 54,62 ****
    :group 'frames
    (if tool-bar-mode
        (progn
!   	(dolist (frame (frame-list))
!   	  (if (display-graphic-p frame)
!   	      (set-frame-parameter frame 'tool-bar-lines 1)))
  	(if (= 1 (length (default-value 'tool-bar-map))) ; not yet setup
  	    (tool-bar-setup)))
      (modify-all-frames-parameters (list (cons 'tool-bar-lines 0)))))
--- 54,60 ----
    :group 'frames
    (if tool-bar-mode
        (progn
! 	(modify-all-frames-parameters (list (cons 'tool-bar-lines 1)))
  	(if (= 1 (length (default-value 'tool-bar-map))) ; not yet setup
  	    (tool-bar-setup)))
      (modify-all-frames-parameters (list (cons 'tool-bar-lines 0)))))

  parent reply	other threads:[~2009-01-09 19:37 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <496873E5.9080601@gmx.at>
2008-12-31 22:15 ` bug#1754: 23.0.60; tool-bar is shown with tool-bar-mode off Drew Adams
2009-01-01 15:24   ` martin rudalics
2009-01-01 15:53     ` Jason Rumney
2009-01-01 16:09       ` martin rudalics
2009-01-01 21:28     ` Drew Adams
2009-01-01 21:51       ` Drew Adams
2009-01-02  7:52         ` martin rudalics
2009-01-02  7:52       ` martin rudalics
2009-01-03  3:12         ` Stefan Monnier
2009-01-03 10:13           ` martin rudalics
2009-01-05  4:10             ` Stefan Monnier
2009-01-05  7:57               ` martin rudalics
2009-01-05 22:20                 ` Stefan Monnier
2009-01-06 13:37                   ` martin rudalics
2009-01-09 19:37                   ` martin rudalics
2009-01-10  2:29                     ` Stefan Monnier
2009-01-10 10:04                       ` martin rudalics
2009-01-10 22:38                         ` Stefan Monnier
2009-01-11 11:22                           ` martin rudalics
2009-01-11 14:56                             ` Stefan Monnier
2009-01-11 17:14                               ` martin rudalics
2009-01-11 23:12                                 ` Stefan Monnier
2009-01-12  9:58                                   ` martin rudalics
2009-01-12 15:23                                     ` Stefan Monnier
2009-01-12 16:00                                       ` martin rudalics
2009-01-12 18:29                                         ` Stefan Monnier
2009-01-12 19:33                                           ` Lennart Borgman
2009-01-12 20:57                                             ` Stefan Monnier
2009-01-12 21:59                                           ` Drew Adams
2009-01-14 14:20                                           ` martin rudalics
2009-01-17 18:33             ` Drew Adams
2009-01-09 19:37   ` martin rudalics [this message]
2009-01-09 20:21     ` Chong Yidong
2009-01-10 10:20   ` bug#1754: marked as done (23.0.60; tool-bar is shown with tool-bar-mode off) Emacs bug Tracking System
2009-01-01  3:05 bug#1754: 23.0.60; tool-bar is shown with tool-bar-mode off Chong Yidong
2009-01-01  5:17 ` Drew Adams
2009-01-01  7:03   ` Chong Yidong
2009-01-01 21:28     ` Drew Adams
2009-01-01 21:51       ` Drew Adams
2009-01-02  0:01       ` Jason Rumney
2009-01-02  1:14         ` Drew Adams
2009-01-02  2:27           ` Drew Adams
2009-01-02  2:47             ` Drew Adams
2009-01-02 11:57             ` Jason Rumney
2009-01-02 14:50               ` martin rudalics
2009-01-01  7:36   ` Jason Rumney
2009-01-01 21:28     ` Drew Adams
2009-01-01 23:53       ` Jason Rumney
2009-01-02  1:14         ` Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2009-01-01 13:47 grischka
2009-01-01 13:51 ` Jason Rumney
2009-01-01 14:30   ` grischka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4967A75D.1080404@gmx.at \
    --to=rudalics@gmx.at \
    --cc=1754@emacsbugs.donarmstrong.com \
    --cc=cyd@stupidchicken.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.