From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: handa Newsgroups: gmane.emacs.bugs Subject: bug#29630: 25.3; Unable to change fontset using :family face attribute Date: Fri, 22 Dec 2017 00:19:16 +0900 Message-ID: <87d1382jnv.fsf@gnu.org> References: <871sk3twx3.fsf@ziiuu.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513869582 9974 195.159.176.226 (21 Dec 2017 15:19:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Dec 2017 15:19:42 +0000 (UTC) Cc: 29630@debbugs.gnu.org, tlm@ziiuu.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 21 16:19:38 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eS2dF-0002GS-73 for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Dec 2017 16:19:37 +0100 Original-Received: from localhost ([::1]:55161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eS2fD-0002yQ-MN for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Dec 2017 10:21:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eS2ej-0002hn-HF for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 10:21:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eS2ec-0001QY-Ue for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 10:21:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37613) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eS2ec-0001Pq-Nq for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 10:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eS2ec-0008Go-CF for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 10:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: handa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Dec 2017 15:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29630 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29630-submit@debbugs.gnu.org id=B29630.151386962131714 (code B ref 29630); Thu, 21 Dec 2017 15:21:02 +0000 Original-Received: (at 29630) by debbugs.gnu.org; 21 Dec 2017 15:20:21 +0000 Original-Received: from localhost ([127.0.0.1]:46294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eS2dx-0008FS-1t for submit@debbugs.gnu.org; Thu, 21 Dec 2017 10:20:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eS2dv-0008FG-BD for 29630@debbugs.gnu.org; Thu, 21 Dec 2017 10:20:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eS2dP-0000NE-Ur for 29630@debbugs.gnu.org; Thu, 21 Dec 2017 10:20:13 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eS2d1-0008IO-16; Thu, 21 Dec 2017 10:19:23 -0500 Original-Received: from fl1-119-240-91-176.iba.mesh.ad.jp ([119.240.91.176]:40132 helo=shatin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1eS2d0-0000Av-Hj; Thu, 21 Dec 2017 10:19:22 -0500 Original-Received: from handa by shatin with local (Exim 4.86_2) (envelope-from ) id 1eS2cu-00051g-C2; Fri, 22 Dec 2017 00:19:16 +0900 In-Reply-To: <83fu8its1h.fsf@gnu.org> (message from Eli Zaretskii on Sun, 10 Dec 2017 19:24:26 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:141337 Archived-At: > > From: Thomas Morgan > > Date: Sat, 09 Dec 2017 16:26:48 -0500 > > > > The documentation for the :font attribute doesn't say that it can > > be a fontset. But (elisp)Font and Color Parameters says the `font' > > frame parameter can be the name of a fontset and the frame parameter > > is "equivalent to the `font' attribute of the `default' face". So > > one can infer that the :font attribute of a face can be a fontset > > name. I tested this: > > > > (progn > > (set-face-attribute 'default nil :font > > "-*-liberation mono-normal-normal-normal-*-*-*-*-*-m-0-fontset-liberation") > > (font-at 0 nil "a")) > > > > This changes the font to Liberation Mono as expected: > > > > # > > > > I also tried equivalent expressions with set-face-font and > > using the fontset alias, all of which succeeded. > > > > The font is correct but the fontset is actually fontset-auto1, > > not fontset-liberation. Here, fontset works as just a provider of font-related properties (family, weight, size, etc), and then, based on the selected font, a new fontset is automatically created. This roundabout behavior was not to break (Emacs-internal) backward compatibility by introducing the concept of fontset. At least, calling set-fontset-font for the fontset of the current frame should work... and worked as far as I rememnber... but I've just found that this does not work with the latest Emacs?!? (set-fontset-font nil 'unicode-bmp "dejavu sans mono") (set-fontset-font nil 'unicode-bmp "Freemono" nil 'append) I'm now checking what is wrong. --- K. Handa handa@gnu.org