From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Drew Adams <drew.adams@oracle.com>
Cc: 17532@debbugs.gnu.org
Subject: bug#17532: 24.4.50; Options > `set-frame-font' does not work as documented
Date: Tue, 20 May 2014 10:49:13 -0700 (PDT) [thread overview]
Message-ID: <81d6f14f-eaa2-4809-80c4-a41de85af8b8@default> (raw)
In-Reply-To: <<838upwbdtb.fsf@gnu.org>>
> > emacs -Q
> >
> > M-: (setq default-frame-alist '
> > ((font . "-outline-Lucida
> > Console-normal-normal-normal-mono-3-*-*-*-c-*-iso8859-1")))
> >
> > or some other font that is different from the default emacs -Q font.
> >
> > Choose menu item Options > Set Default Font..., and choose yet another
> > font.
> >
> > C-x 4 d RET ; or another command to display another buffer
I should have said:
C-x 5 d RET ; or another command to display another buffer in a new frame
^ ^^^^^^^^^^^^^^
You can also try C-x 5 b *Messages*, for instance, to see *Messages* in a new frame.
This is about `default-frame-alist', as it applies to a new frame.
> > The newly displayed buffer's font is not the font you chose using Set
> > Default Font.
>
> I cannot reproduce this with today's trunk: I get the same font as the
> one I've chosen from the menu using Set Default Font.
I don't. I get the one that I set in `default-frame-alist'.
Except that the size is shrunk *way* down, for some reason (another bug,
presumably).
In the original frame, the font is the one I picked using `Set Default Font'.
100% reproducible, for me, both with a build from 5/17 and with the pretest,
emacs -Q each time.
> > In any case, the doc for `set-frame-font' and the description of `Set
> > Default Font' tell users that the font specified will be used not only
> > for all current frames but also for future frames, and that it will act
> > as the default font from now on.
>
> I don't see this in the doc string, please show the relevant text. My
> interpretation of the doc string is that when that function is called
> interactively, it always sets font only of the currently selected
> frame. To do that for other frames, you need to call the function
> non-interactively to be able to pass it a non-nil last arg.
I guess you could interpret it that way. To make that clearer, start a
new paragraph for the "When called from Lisp", put a colon after that,
and then list the info for the parameters.
Anyway, when you use menu item `Set Default Font', it invokes `menu-set-font',
which calls `set-frame-font' *non-interactively*, and with `t' as the value
for FRAMES.
In addition, the doc string for `menu-set-font' says that it makes the font
you choose "the default". It does NOT at all suggest that it changes the
font only for the current frame. Similarly, the menu item itself speaks of
"Default".
Yes, "default" can mean different things - here especially. But the most
likely thing that users will think is that they are setting the default
font for frames for the rest of the session. If this is not intended to
be the case (and it is currently not necessarily the case - see above),
the description needs to remove this possible (and natural) interpretation.
> > Note that the doc here includes (emacs) `Fonts'.
>
> That doesn't seem to imply the font is changed on all frames, either.
It says that when you use `Set Default Font' you are changing a user
option (although it doesn't tell you which one!). It suggests that this
is for the session generally (it says that for the setting to work also
for future sessions you need to save it).
It likens the behavior of `Set Default Font' to modifying `default-frame-alist'.
It does not say that they are alternative ways to accomplish the same thing
wrt font, but it suggests that they are both ways to set the default font for
your session (as are the other ways listed).
next parent reply other threads:[~2014-05-20 17:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <<718d27e5-9390-4581-9c8e-e11b86ba4e45@default>
[not found] ` <<838upwbdtb.fsf@gnu.org>
2014-05-20 17:49 ` Drew Adams [this message]
2014-05-20 19:54 ` bug#17532: 24.4.50; Options > `set-frame-font' does not work as documented Eli Zaretskii
[not found] <<7f75d016-b170-4502-999a-ab657354e6b2@default>
[not found] ` <<8361kznkpy.fsf@gnu.org>
2014-05-21 18:03 ` Drew Adams
2014-05-21 18:46 ` Eli Zaretskii
2016-04-29 19:59 ` Lars Ingebrigtsen
[not found] <<81d6f14f-eaa2-4809-80c4-a41de85af8b8@default>
[not found] ` <<83sio4ns46.fsf@gnu.org>
2014-05-20 21:00 ` Drew Adams
2014-05-21 16:46 ` Eli Zaretskii
2014-05-19 20:34 Drew Adams
2014-05-20 16:44 ` Eli Zaretskii
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=81d6f14f-eaa2-4809-80c4-a41de85af8b8@default \
--to=drew.adams@oracle.com \
--cc=17532@debbugs.gnu.org \
--cc=eliz@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 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.