From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs 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) Message-ID: <81d6f14f-eaa2-4809-80c4-a41de85af8b8@default> References: <<718d27e5-9390-4581-9c8e-e11b86ba4e45@default>> <<838upwbdtb.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1400610440 10248 80.91.229.3 (20 May 2014 18:27:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 May 2014 18:27:20 +0000 (UTC) Cc: 17532@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 20 20:27:12 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 1Wmoko-0003ot-PO for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 May 2014 20:27:11 +0200 Original-Received: from localhost ([::1]:54932 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmokn-0007YE-Q0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 May 2014 14:27:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmokb-0007X8-GG for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 14:27:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmokQ-0001Qm-Tn for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 14:26:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmokQ-0001Qg-Qc for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 14:26:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WmoAs-0006wL-1s for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 13:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 May 2014 17:50:02 +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.140060816626625 (code B ref 17532); Tue, 20 May 2014 17:50:02 +0000 Original-Received: (at 17532) by debbugs.gnu.org; 20 May 2014 17:49:26 +0000 Original-Received: from localhost ([127.0.0.1]:54508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WmoAH-0006vM-Jl for submit@debbugs.gnu.org; Tue, 20 May 2014 13:49:26 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:36051) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WmoAE-0006v7-Pm for 17532@debbugs.gnu.org; Tue, 20 May 2014 13:49:23 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s4KHnF6j019001 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 20 May 2014 17:49:16 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4KHnE6r029575 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 May 2014 17:49:15 GMT Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4KHnE1b029966; Tue, 20 May 2014 17:49:14 GMT In-Reply-To: <<838upwbdtb.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] 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:89293 Archived-At: > > 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 n= ew 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. >=20 > 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. >=20 > 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-fon= t', 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=20 font for frames for the rest of the session. If this is not intended to=20 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'. >=20 > 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-al= ist'. 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 f= or your session (as are the other ways listed).