From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17532: 24.4.50; Options > `set-frame-font' does not work as documented Date: Tue, 20 May 2014 22:54:17 +0300 Message-ID: <83sio4ns46.fsf@gnu.org> References: <81d6f14f-eaa2-4809-80c4-a41de85af8b8@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1400615729 9403 80.91.229.3 (20 May 2014 19:55:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 May 2014 19:55:29 +0000 (UTC) Cc: 17532@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 20 21:55:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wmq85-0002ad-TB for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 May 2014 21:55:18 +0200 Original-Received: from localhost ([::1]:55182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmq85-00056V-J4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 May 2014 15:55:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmq7x-0004yj-M1 for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 15:55:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wmq7q-0005fC-UC for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 15:55:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmq7q-0005bj-Rc for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 15:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wmq7p-0001UX-RX for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 15:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 May 2014 19:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17532 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17532-submit@debbugs.gnu.org id=B17532.14006156605678 (code B ref 17532); Tue, 20 May 2014 19:55:01 +0000 Original-Received: (at 17532) by debbugs.gnu.org; 20 May 2014 19:54:20 +0000 Original-Received: from localhost ([127.0.0.1]:54573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wmq7A-0001TV-6Z for submit@debbugs.gnu.org; Tue, 20 May 2014 15:54:20 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:52670) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wmq77-0001TB-34 for 17532@debbugs.gnu.org; Tue, 20 May 2014 15:54:18 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N5W001001RMBT00@a-mtaout22.012.net.il> for 17532@debbugs.gnu.org; Tue, 20 May 2014 22:54:09 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N5W001PE1Y9C300@a-mtaout22.012.net.il>; Tue, 20 May 2014 22:54:09 +0300 (IDT) In-reply-to: <81d6f14f-eaa2-4809-80c4-a41de85af8b8@default> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:89298 Archived-At: > Date: Tue, 20 May 2014 10:49:13 -0700 (PDT) > From: Drew Adams > Cc: 17532@debbugs.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. Then this is expected behavior: selecting a new font from that menu only changes the font for the existing frames, not for the future ones. > > > 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'. As expected. > Except that the size is shrunk *way* down, for some reason (another bug, > presumably). I think that's what you asked for, by that "-3-" part in the font spec. That's way too small. > 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. But that doesn't cover future frames, either. It only affects the existing GUI frames, per the doc string (and the code, which see). > 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". "Default font" means the font of the default face, that's all. Yes, that's ambiguous. > > > 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). I don't see how you deduce that. The text is very simple: 21.8 Fonts ========== By default, Emacs displays text on graphical displays using a 12-point monospace font. There are several different ways to specify a different font: * Click on `Set Default Font' in the `Options' menu. To save this for future sessions, click on `Save Options' in the `Options' menu. Unless you are saying that saving the options doesn't make this font the default in future sessions, I see nothing wrong or misleading with this text (except that the default font is not 12-point, not for many years; I will fix that). > It likens the behavior of `Set Default Font' to modifying `default-frame-alist'. No, it doesn't mention default-frame-alist at all.