unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: 17532@debbugs.gnu.org
Subject: bug#17532: 24.4.50; Options > `set-frame-font' does not work as documented
Date: Mon, 19 May 2014 13:34:52 -0700 (PDT)	[thread overview]
Message-ID: <718d27e5-9390-4581-9c8e-e11b86ba4e45@default> (raw)

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

The newly displayed buffer's font is not the font you chose using Set
Default Font.

Dunno whether the behavior is wrong.  It's maybe good that a users
current value of `default-frame-alist' be respected.  But maybe
`set-frame-font' (called by `menu-set-font', which is Set Default Font)
should change the value of `default-frame-alist' (or maybe not).

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 hesitate to open this can of worms, for fear that you might make some
crazy "improvement" that changes the behavior negatively.  But at least
the doc should reflect the real behavior.  Users should not be led to
expect that the font will affect new frames when it will not do so.

Perhaps the correct description is that it will do that if
`default-frame-alist' is nil.  (Of course then there are other frame
alist options, or at least there were. ;-)).  Whatever the behavior is,
the doc etc. should be updated to reflect it and not lead users astray.

Note that the doc here includes (emacs) `Fonts'.

In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
 of 2014-05-17 on ODIEONE
Bzr revision: 117119 eggert@cs.ucla.edu-20140517081131-ugu7ociaoec2xk7y
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/snapshot/trunk
 --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
 LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
 -Ic:/Devel/emacs/include''





             reply	other threads:[~2014-05-19 20:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-19 20:34 Drew Adams [this message]
2014-05-20 16:44 ` bug#17532: 24.4.50; Options > `set-frame-font' does not work as documented Eli Zaretskii
     [not found] <<718d27e5-9390-4581-9c8e-e11b86ba4e45@default>
     [not found] ` <<838upwbdtb.fsf@gnu.org>
2014-05-20 17:49   ` Drew Adams
2014-05-20 19:54     ` Eli Zaretskii
     [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
     [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

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=718d27e5-9390-4581-9c8e-e11b86ba4e45@default \
    --to=drew.adams@oracle.com \
    --cc=17532@debbugs.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).