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: Mon, 19 May 2014 13:34:52 -0700 (PDT) Message-ID: <718d27e5-9390-4581-9c8e-e11b86ba4e45@default> 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 1400533300 28338 80.91.229.3 (19 May 2014 21:01:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 May 2014 21:01:40 +0000 (UTC) To: 17532@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 19 23:01:33 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 1WmUgU-0002s5-4s for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 May 2014 23:01:22 +0200 Original-Received: from localhost ([::1]:50141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmUIL-0008CA-IV for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 May 2014 16:36:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmUI9-0008C5-4J for bug-gnu-emacs@gnu.org; Mon, 19 May 2014 16:36:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmUHy-0001Tj-P1 for bug-gnu-emacs@gnu.org; Mon, 19 May 2014 16:36:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmUHy-0001TZ-MC for bug-gnu-emacs@gnu.org; Mon, 19 May 2014 16:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WmUHy-00078W-0k for bug-gnu-emacs@gnu.org; Mon, 19 May 2014 16:36: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: Mon, 19 May 2014 20:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17532 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140053173327387 (code B ref -1); Mon, 19 May 2014 20:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 May 2014 20:35:33 +0000 Original-Received: from localhost ([127.0.0.1]:53497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WmUHU-00077e-Eg for submit@debbugs.gnu.org; Mon, 19 May 2014 16:35:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50221) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WmUHS-00077Q-9A for submit@debbugs.gnu.org; Mon, 19 May 2014 16:35:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmUHC-0001EV-JR for submit@debbugs.gnu.org; Mon, 19 May 2014 16:35:24 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmUHC-0001EQ-GC for submit@debbugs.gnu.org; Mon, 19 May 2014 16:35:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmUH3-0007H9-P0 for bug-gnu-emacs@gnu.org; Mon, 19 May 2014 16:35:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmUGt-0000St-Mh for bug-gnu-emacs@gnu.org; Mon, 19 May 2014 16:35:05 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:44336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmUGt-0000S3-H7 for bug-gnu-emacs@gnu.org; Mon, 19 May 2014 16:34:55 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s4JKYrSC026692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 19 May 2014 20:34:54 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4JKYrKu015414 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 19 May 2014 20:34:53 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4JKYqi8017486 for ; Mon, 19 May 2014 20:34:52 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:89255 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 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=3D/c/Devel/emacs/snapshot/trunk --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3' LDFLAGS=3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D-DGC_MCHECK=3D1 -Ic:/Devel/emacs/include''