GNU bug report logs - #17486
24.4.50; set-face-font problem on OSX

Previous Next

Package: emacs;

Reported by: Christian Lynbech <christian <at> defun.dk>

Date: Tue, 13 May 2014 19:11:01 UTC

Severity: normal

Found in version 24.4.50

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 17486 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Christian Lynbech <christian <at> defun.dk>
Cc: 17486 <at> debbugs.gnu.org
Subject: Re: bug#17486: 24.4.50; set-face-font problem on OSX
Date: Fri, 16 May 2014 07:06:27 +0200
Hello.

13 maj 2014 kl. 20:21 skrev Christian Lynbech <christian <at> defun.dk>:

> 
> 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 [#<font-entity ns apple Menlo nil iso10646-1 medium normal normal 0 nil 100 0 nil>])
>      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.





This bug report was last modified 11 years and 26 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.