From: Chong Yidong <cyd@stupidchicken.com>
Cc: David Reitter <david.reitter@gmail.com>, emacs-devel@gnu.org
Subject: Re: [david.reitter@gmail.com: tool-bar: frame-local tool-bar-button-margin]
Date: Mon, 24 Oct 2005 19:51:03 -0400 [thread overview]
Message-ID: <87br1e1nko.fsf@stupidchicken.com> (raw)
In-Reply-To: <E1ETqi3-0003Yy-47@fencepost.gnu.org> (Richard M. Stallman's message of "Sun, 23 Oct 2005 21:01:07 -0400")
> Would someone please investigate this bug, and ack?
>
> From: David Reitter <david.reitter@gmail.com>
> Subject: tool-bar: frame-local tool-bar-button-margin
> To: emacs-pretest-bug@gnu.org
>
> 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.
The trouble is that tool-bar-button-margin is not a frame parameter.
The documentation for make-variable-frame-local says:
Enable variable to have frame-local bindings.
When a frame-local binding exists in the current frame,
it is in effect whenever the current buffer has no buffer-local binding.
A frame-local binding is actually a frame parameter value;
thus, any given frame has a local binding for variable if it has
a value for the frame parameter named variable. Return variable.
See `modify-frame-parameters' for how to set frame parameters.
The Elisp documentation is a little more explicit:
Frame-local bindings are actually frame parameters: you create a
frame-local binding in a specific frame by calling
`modify-frame-parameters' and specifying the variable name as the
parameter name...
make-variable-frame-local:
Enable the use of frame-local bindings for VARIABLE. This does
not in itself create any frame-local bindings for the variable;
however, if some frame already has a value for VARIABLE as a frame
parameter, that value automatically becomes a frame-local binding.
Using modify-frame-parameters followed by make-variable-frame-local, I
am indeed able to get frame-local values for tool-bar-button margin.
Probably the docstring for make-variable-frame-local should be
rephrased to make it clearer.
next prev parent reply other threads:[~2005-10-24 23:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-24 1:01 [david.reitter@gmail.com: tool-bar: frame-local tool-bar-button-margin] Richard M. Stallman
2005-10-24 23:51 ` Chong Yidong [this message]
2005-10-25 7:12 ` David Reitter
2005-10-30 3:37 ` Richard M. Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87br1e1nko.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=david.reitter@gmail.com \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).