From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: [david.reitter@gmail.com: tool-bar: frame-local tool-bar-button-margin] Date: Sun, 23 Oct 2005 21:01:07 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1130116006 29428 80.91.229.2 (24 Oct 2005 01:06:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2005 01:06:46 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 24 03:06:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ETqm5-0006kn-I4 for ged-emacs-devel@m.gmane.org; Mon, 24 Oct 2005 03:05:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETqm4-0007wb-QI for ged-emacs-devel@m.gmane.org; Sun, 23 Oct 2005 21:05:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ETqi5-0004wI-2l for emacs-devel@gnu.org; Sun, 23 Oct 2005 21:01:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ETqi4-0004vF-6O for emacs-devel@gnu.org; Sun, 23 Oct 2005 21:01:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETqi4-0004v3-0I for emacs-devel@gnu.org; Sun, 23 Oct 2005 21:01:08 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ETqi3-00081G-MX for emacs-devel@gnu.org; Sun, 23 Oct 2005 21:01:07 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1ETqi3-0003Yy-47; Sun, 23 Oct 2005 21:01:07 -0400 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44665 Archived-At: Would someone please investigate this bug, and ack? ------- Start of forwarded message ------- DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=r3C3fULpX1KWe4Tac2XnkI4etL1GxL2005axUsS2PBzqmE8P9wYHEtD3+I8BIt/j65l/Wv6sFtdIHaDvbMNJmrZjCmjd0BDXKs3iHUaqzYBFPrafhk6WHy77e2Ab2rIJlUnxk3c97pRFwp2iKGmLdlrWGeVhwjPxNLIqGVxw0Rs= To: emacs-pretest-bug@gnu.org From: David Reitter Date: Mon, 10 Oct 2005 14:48:03 +0100 Subject: tool-bar: frame-local tool-bar-button-margin Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on monty-python X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 Making tool-bar-button-margin a frame-local variable doesn't have the desired effect. When several frames are open, a change to this variable will change all tool-bars, not just the one belonging to the current frame. (This works as intended with making it buffer-local, which is, however, not what I really want.) Sample code: 1. Open two frames, displaying different buffers in different fonts (with different font heights). 2. Ensure toolbars are turned on (toolbar-mode) 3. Execute this in one of the frames ;; This code tries to get rid of the ugly extra line drawn under the toolbar. (make-variable-frame-local 'tool-bar-button-margin) ;; (make-variable-buffer-local 'tool-bar-button-margin) ;; this would work sometimes (setq tool-bar-button-margin (cons 4 (+ 2 (mod tool-bar-images-pixel-height (frame-char-height))))) 4. The toolbar height will change in all frames, not just the one where the code was executed. In GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.2.0) of 2005-10-07 on lucy - Aquamacs Distribution 0.9.6 Distributor `Apple Computers', version 10.4.2 configured using `configure '--without-x' '--prefix=/usr/local'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: smart-frame-positioning-mode: t recentf-mode: t osx-key-mode: t mouse-wheel-mode: t show-paren-mode: t delete-selection-mode: t pc-selection-mode: t cua-mode: t encoded-kbd-mode: t tooltip-mode: t auto-compression-mode: t menu-bar-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: m o d SPC H-v SPC H-c H-v C-x C-e H-x H-v x e m a c s - H-c H-v H-c Recent messages: (4 . 10) tool-bar-button-margin (4 . 6) tool-bar-button-margin (4 . 8) Making completion list... 8 16 8 Quit _______________________________________________ Emacs-pretest-bug mailing list Emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug ------- End of forwarded message -------