From: "Roland Winkler" <winkler@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Giorgos Keramidas <gkeramidas@gmail.com>, emacs-devel@gnu.org
Subject: Re: Recent read-face patch breaks `M-x customize-face'
Date: Sat, 6 Apr 2013 16:22:02 -0500 [thread overview]
Message-ID: <20832.37370.297168.937525@gargle.gargle.HOWL> (raw)
In-Reply-To: <jwv4nfj69lx.fsf-monnier+emacs@gnu.org>
On Sat Apr 6 2013 Stefan Monnier wrote:
> Just for the record: the reason for this "all faces" argument is so that
> M-x customize-face prompts with "Customize face (default `all faces'):"
...This is the previous behavior that any string value of DEFAULT
(unless it gets magically overridden by a "face at point") gets
displayed as default in the prompt. But if this value of DEFAULT is
not a face, it is ignored in the end, that is, read-face-name
returns nil. Instead of "all faces", one could use also "Hello
World" to get the same final result.
This behavior of read-face-name appears a bit of a kludge to me,
though I understand the rationale for this in the context of
customize-face. But at least such behavior needs to be documented in
the doc string of read-face-name.
I'd prefer if customize-face called read-face-name with DEFAULT
being nil and a prompt that said something like
"Customize face (use `' for `all faces')"
But this doesn't work with the current code of read-face-name that
may replace a DEFAULT value of nil by a "face at point".
Removing this magic from read-face-name would require in turn that
commands such as make-face-bold call face-at-point for a reasonable
value of DEFAULT. In my humble opinion, this appears to be the
cleanest solution.
Roland
next prev parent reply other threads:[~2013-04-06 21:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-05 17:50 Recent read-face patch breaks `M-x customize-face' Giorgos Keramidas
2013-04-05 17:52 ` Giorgos Keramidas
2013-04-05 18:56 ` Roland Winkler
2013-04-05 19:00 ` Roland Winkler
2013-04-05 19:04 ` Giorgos Keramidas
2013-04-05 21:40 ` Stefan Monnier
2013-04-06 11:55 ` Roland Winkler
2013-04-06 14:02 ` Stefan Monnier
2013-04-06 15:50 ` Γιώργος Κεραμίδας
2013-04-06 21:22 ` Roland Winkler [this message]
2013-04-07 0:29 ` Stefan Monnier
2013-04-07 21:15 ` Roland Winkler
2013-04-13 1:15 ` Roland Winkler
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=20832.37370.297168.937525@gargle.gargle.HOWL \
--to=winkler@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=gkeramidas@gmail.com \
--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 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).