From: Richard M Stallman <rms@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: cyd@stupidchicken.com, emacs-devel@gnu.org, miles@gnu.org
Subject: Re: Faces applies to new frames
Date: Mon, 30 Jun 2008 10:43:22 -0400 [thread overview]
Message-ID: <E1KDKbC-0003ga-QS@fencepost.gnu.org> (raw)
In-Reply-To: <jwv7ic8ca2r.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sun, 29 Jun 2008 15:42:20 -0400)
Could be, but currently we don't have any easy way to do it within
the buffer. Especially not for minibuffer-only frames which may show
various buffers, all of them internal. But yes, it's quite feasible.
The minibuffer window only displays minibuffers. It would be easy to
set up a face replacement for all the minibuffers.
The mere fact of changing from per-frame to per-buffer won't solve the
underlying precedence problem.
It will, in an indirect way.
WIth per-frame face attributes and global face attributes,
there is a tension about which should get precedence.
Suppose the user sets a global face attribute: should that
set the per-frame attribute of all frames that exist?
That is what it does. But what if a program explicitly set
the per-frame attribute of one frame? That will be overridden,
and maybe that's wrong.
Now suppose that there are global face attributes and per-buffer
overrides. There is no such problem any more. You set the global
face attributes, and that doesn't set anything else that is user-visible.
Any buffer-specific overrides remain in existence and continue to override.
It is totally clear what these things should do.
Really, this is the consequence of replacing a per-X value
with a per-X override. If we replace per-frame face attributes
with per-frame overrides, we would get this same benefit.
But that change would be messy in other ways.
But if we get rid of settings coming
from frame parameters and Xresources,
A clarification. I don't propose to entirely eliminate the use of X
resources to specify faces. I just propose to eliminate doing so
in a frame-specific way.
I currently set the frame to use
a proportional font (helvetica-like) because it uses a bit less space
and I find it somewhat nicer to look at, and none of those buffers
suffer from the usual alignment/filling problems we encounter with
proportional fonts in Emacs. Making the setting per-buffer is possible,
but requires changing the face individually in each buffer, which is
less satisfactory.
Do these buffers use a particular mode, whose mode hook could set up
the per-buffer override?
next prev parent reply other threads:[~2008-06-30 14:43 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-26 22:50 Faces applies to new frames Chong Yidong
2008-06-26 23:08 ` Miles Bader
2008-06-27 1:28 ` Stefan Monnier
2008-06-27 2:43 ` Chong Yidong
2008-06-27 6:18 ` Stefan Monnier
2008-06-27 17:32 ` Chong Yidong
2008-06-27 17:52 ` Stefan Monnier
2008-06-27 17:54 ` Chong Yidong
2008-06-27 10:48 ` Robert J. Chassell
2008-06-27 12:17 ` Robert J. Chassell
2008-06-28 16:01 ` Chong Yidong
2008-06-28 20:17 ` Stefan Monnier
2008-06-28 23:42 ` Chong Yidong
2008-06-29 3:14 ` Stefan Monnier
2008-06-29 3:42 ` Miles Bader
2008-06-29 4:22 ` Stefan Monnier
2008-06-29 4:43 ` Miles Bader
2008-06-29 4:47 ` Chong Yidong
2008-06-29 8:51 ` David Kastrup
2008-06-29 5:36 ` Stefan Monnier
2008-06-29 15:20 ` Richard M Stallman
2008-06-29 17:08 ` Chong Yidong
2008-06-30 14:43 ` Richard M Stallman
2008-06-29 19:42 ` Stefan Monnier
2008-06-30 14:43 ` Richard M Stallman [this message]
2008-06-29 4:30 ` Chong Yidong
2008-06-29 6:11 ` Stefan Monnier
2008-06-29 15:25 ` Chong Yidong
2008-06-29 18:00 ` Stefan Monnier
2008-06-29 19:24 ` Chong Yidong
2008-06-29 20:00 ` Stefan Monnier
2008-06-29 20:29 ` Chong Yidong
2008-06-30 0:58 ` Stefan Monnier
2008-06-30 2:24 ` Chong Yidong
2008-06-30 4:46 ` Stefan Monnier
2008-06-30 5:02 ` Chong Yidong
2008-06-30 14:43 ` Richard M Stallman
2008-06-29 2:48 ` Chong Yidong
2008-06-29 3:41 ` Stefan Monnier
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=E1KDKbC-0003ga-QS@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=miles@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.