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 14:00:36 -0700 (PDT) Message-ID: <7f75d016-b170-4502-999a-ab657354e6b2@default> References: <<81d6f14f-eaa2-4809-80c4-a41de85af8b8@default>> <<83sio4ns46.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 1400619692 26341 80.91.229.3 (20 May 2014 21:01:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 May 2014 21:01:32 +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 23:01:25 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 1WmrA3-0006yP-1Z for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 May 2014 23:01:23 +0200 Original-Received: from localhost ([::1]:55427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmrA2-0006qx-JU for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 May 2014 17:01:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmr9r-0006py-B5 for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 17:01:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wmr9i-0002Jc-IV for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 17:01:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmr9i-0002JY-F4 for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 17:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wmr9h-0004Ij-TE for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 17:01: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 21:01: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.140061965116503 (code B ref 17532); Tue, 20 May 2014 21:01:01 +0000 Original-Received: (at 17532) by debbugs.gnu.org; 20 May 2014 21:00:51 +0000 Original-Received: from localhost ([127.0.0.1]:54617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wmr9W-0004I6-4T for submit@debbugs.gnu.org; Tue, 20 May 2014 17:00:50 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:20982) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wmr9T-0004Hq-1c for 17532@debbugs.gnu.org; Tue, 20 May 2014 17:00:48 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s4KL0eba030852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 20 May 2014 21:00:40 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4KL0avx019707 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 20 May 2014 21:00:37 GMT Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4KL0aBT019685; Tue, 20 May 2014 21:00:36 GMT In-Reply-To: <<83sio4ns46.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:89301 Archived-At: > 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. That's not what the *doc* says. You don't see that stated anywhere, do you? And why should that be the case? And what happens when you "save this for future sessions" (node Fonts)? What good could it do, and what meaning could it have, to save something that is only for existing frames (not new frames) in this session? > > > > The newly displayed buffer's font is not the font you chose using S= et > > > > Default Font. > > > > > > I cannot reproduce this with today's trunk: I get the same font as th= e > > > 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'. >=20 > As expected. By you. Not by what the doc says. > I think that's what you asked for, by that "-3-" part in the font > spec. That's way too small. Ah yes, that was a "copy-paste" problem. I meant to use 13, not 3. The main point about that remains: the font is the one from `default-frame-alist', not from `Set Default Font'. > > 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. >=20 > But that doesn't cover future frames, either. It only affects the > existing GUI frames, per the doc string (and the code, which see). ^^^^^^^^^^^^^^^^^^ Where are you getting this? `C-h f set-frame-font' says clearly: Also, if FRAME is non-nil, alter the user's Customization settings as though the font-related attributes of the `default' face had been "set in this session", so that the font is applied to future frames. One of us seems to be sorely missing something. ;-) (That's a typo, BTW: FRAME here should be 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 chan= ges > > the font only for the current frame. Similarly, the menu item itself s= peaks > > of "Default". >=20 > "Default font" means the font of the default face, that's all. Yes, > that's ambiguous. A face, including face `default', is not something that is frame-specific. The doc string of `set-frame-font' clearly mentions face `default'. This can only mean that it changes the value of face `default', which if it were really what happens, would affect also all future frames in the session. > > > > 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 thi= s > > is for the session generally (it says that for the setting to work also > > for future sessions you need to save it). >=20 > I don't see how you deduce that. The text is very simple: >=20 > * Click on `Set Default Font' in the `Options' menu. To save this > for future sessions, click on `Save Options' in the `Options' menu= . >=20 > 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). See above. This menu item, in menu **`Options'**, clearly suggests that you are changing the value (for the session) of a user option. And that doc says that you can save this option setting for future sessions. And when you change the value of a user option (or face) that controls a default font it affects future frames - whether that be option `default-frame-alist' or face `default' (or option `special-display-alist' or `minibuffer-frame-alist'... for such frames.) =20 > > It likens the behavior of `Set Default Font' to modifying `default-fram= e- > > alist'. >=20 > No, it doesn't mention default-frame-alist at all. It most certainly does - the very next bullet! These bullets are introduced collectively as "several different ways to specify a different font". Different ways to do essentially the same thing. And they *do* - at least the others do. They specify the font to use for the (remainder of) the session. That includes for all new frames. I see nothing in the doc that suggests that `Set Default Font' should be exceptional in this regard, changing the font for only the existing frames. You say that, but I see nothing in the doc that supports such a view.