From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.bugs Subject: bug#17486: 24.4.50; set-face-font problem on OSX Date: Fri, 16 May 2014 15:33:38 +0200 Message-ID: <537613B2.10803@swipnet.se> References: <2C3533D7-8966-48CC-A63E-E7C363E5F429@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1400247270 9742 80.91.229.3 (16 May 2014 13:34:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2014 13:34:30 +0000 (UTC) Cc: 17486@debbugs.gnu.org, Dmitry Antipov To: Christian Lynbech Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 16 15:34: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 1WlIHF-0003ad-MN for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 May 2014 15:34:21 +0200 Original-Received: from localhost ([::1]:35631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlIHF-00067a-42 for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 May 2014 09:34:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlIH4-00063U-M5 for bug-gnu-emacs@gnu.org; Fri, 16 May 2014 09:34:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WlIGy-0005MI-4R for bug-gnu-emacs@gnu.org; Fri, 16 May 2014 09:34:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlIGy-0005MA-1I for bug-gnu-emacs@gnu.org; Fri, 16 May 2014 09:34:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WlIGw-0001Dt-Sa for bug-gnu-emacs@gnu.org; Fri, 16 May 2014 09:34:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Jan D." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 May 2014 13:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17486 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17486-submit@debbugs.gnu.org id=B17486.14002472384687 (code B ref 17486); Fri, 16 May 2014 13:34:02 +0000 Original-Received: (at 17486) by debbugs.gnu.org; 16 May 2014 13:33:58 +0000 Original-Received: from localhost ([127.0.0.1]:36844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WlIGr-0001DV-Ai for submit@debbugs.gnu.org; Fri, 16 May 2014 09:33:57 -0400 Original-Received: from mailfe06.swip.net ([212.247.154.161]:57683 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WlIGl-0001D5-Ap for 17486@debbugs.gnu.org; Fri, 16 May 2014 09:33:52 -0400 X-T2-Spam-Status: No, hits=0.0 required=5.0 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 499728582; Fri, 16 May 2014 15:33:42 +0200 Original-Received: from jdvpro.hq.ismobile.com (unknown [176.57.193.190]) (Authenticated sender: jhd) by hosdjarv.se (Postfix) with ESMTPSA id 142DF1A01DE; Fri, 16 May 2014 13:33:42 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: <2C3533D7-8966-48CC-A63E-E7C363E5F429@swipnet.se> 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:89161 Archived-At: Hello. This commit introduced the error, I suspect the error is present on all ports: revno: 116927 committer: Dmitry Antipov branch nick: trunk timestamp: Wed 2014-04-02 17:24:19 +0400 message: * font.c (font_list_entities): Do not add empty vector to font cache. (font_matching_entity): Likewise. If matching entity is found, insert 1-item vector with this entity instead of entity itself (Bug#17125). Jan D. Jan Djärv skrev 2014-05-16 07:06: > Hello. > > 13 maj 2014 kl. 20:21 skrev Christian Lynbech : > >> >> There is an issue when trying to set the font of face in recent versions >> of emacs build for OSX. >> >> Evaluating this form works as expected: >> >> (set-face-font 'region "-*-Menlo-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1") >> >> It used to be that one could also say something like this: >> >> (set-face-font 'region "bitstream vera sans mono-26") >> >> but when I try to do that on a newly built emacs, I get this stack >> trace: >> >> Debugger entered--Lisp error: (wrong-type-argument font [#]) >> internal-set-lisp-face-attribute(region :font "bitstream vera sans mono-26" 0) >> set-face-attribute(region nil :font "bitstream vera sans mono-26") >> set-face-font(region "bitstream vera sans mono-26") >> eval((set-face-font (quote region) "bitstream vera sans mono-26") nil) >> eval-last-sexp-1(nil) >> eval-last-sexp(nil) >> call-interactively(eval-last-sexp nil nil) >> command-execute(eval-last-sexp) > > This works fine in the emacs-24 branch, so it is a new error. I will bisect it soon. > Changes to xfaces.c is probably it. > > Jan D. >