> Date: Fri, 16 Nov 2012 17:21:09 -0600
> From: "E. Caudex" <[email protected]>
> 
> Backtrace shows an error at this position in my .emacs when used with
> 24.2 but not with 23.3:
> 
> ...
> 
> (make-frame '((name . "courier")
>            (top . 1) (left . 1) (width . 123) (height . 18)
>            (visibility . icon) ; nil or icon
>      ))
> 
> (select-frame-by-name "courier") ;;^ point at buff. pos. 26164
> 
> (set-frame-font "-outline-Courier
> New-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1")
> 
> Debugger entered--Lisp error: (error "There is no frame named `courier'")
>   signal(error ("There is no frame named `courier'"))
>   error("There is no frame named `%s'" "courier")
>   select-frame-by-name("courier")

In the current development version, the backtrace is more informative:

  Debugger entered--Lisp error: (error "Font not available" #<font-spec nil 
outline Courier\
  New normal iso10646-1 normal r normal nil 96 110 nil ((:name . 
"-outline-Courier
  New-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1") (user-spec . 
"-outline-Courier
  New-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1"))>)
  New normal iso10646-1 normal r normal nil 96 110 nil ((:name . 
"-outline-Courier\nNew-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1") 
(user-spec . 
"-outline-Courier\nNew-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1"))>))
    internal-set-lisp-face-attribute(default :font 
"-outline-Courier\nNew-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1" #<frame 
courier 038C9028>)
    set-face-attribute(default #<frame courier 038C9028> :width normal :weight 
normal :slant normal :font 
"-outline-Courier\nNew-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1")
    
set-frame-font("-outline-Courier\nNew-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1")
    eval((set-frame-font 
"-outline-Courier\nNew-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1") nil)

So the problem is that newline embedded in the middle of the font
name.  If I remove the newline, replacing it with a blank, I see no
backtrace.

Reply via email to