help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] make-frame function read in .emacs in w32 ver 23.3 but not 2


From: Eli Zaretskii
Subject: Re: [h-e-w] make-frame function read in .emacs in w32 ver 23.3 but not 24.2
Date: Sat, 17 Nov 2012 09:58:14 +0200

> Date: Fri, 16 Nov 2012 17:21:09 -0600
> From: "E. Caudex" <address@hidden>
> 
> 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

[Prev in Thread] Current Thread [Next in Thread]