From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joshua Redstone Newsgroups: gmane.emacs.bugs Subject: bug#4777: Error setting default face and unspecified-bg in default face when starting emacs 23.1 with --daemon Date: Wed, 21 Oct 2009 10:14:27 -0700 Message-ID: <5f9c1f650910211014g28f07c71s18b8c98f09dc4068@mail.gmail.com> References: <5f9c1f650910211005r34937eabtc8b6e41db59c0c78@mail.gmail.com> Reply-To: Joshua Redstone , 4777@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00151773da309f846d0476751d6a X-Trace: ger.gmane.org 1256147592 10573 80.91.229.12 (21 Oct 2009 17:53:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Oct 2009 17:53:12 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 21 19:53:01 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N0fMd-0006gO-ID for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Oct 2009 19:52:49 +0200 Original-Received: from localhost ([127.0.0.1]:55641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0fMc-00057O-VD for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Oct 2009 13:52:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0ey1-0002hr-71 for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:27:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0exw-0002du-7z for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:27:20 -0400 Original-Received: from [199.232.76.173] (port=59346 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0exv-0002dR-IY for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:27:15 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33818) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N0exu-0005hj-Rt for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:27:15 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9LHRCpo027724; Wed, 21 Oct 2009 10:27:13 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9LHK6Gk026553; Wed, 21 Oct 2009 10:20:06 -0700 Resent-Date: Wed, 21 Oct 2009 10:20:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Joshua Redstone Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 21 Oct 2009 17:20:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4777 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125614529525755 (code B ref -1); Wed, 21 Oct 2009 17:20:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2009 17:14:55 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9LHErgv025752 for ; Wed, 21 Oct 2009 10:14:54 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0elw-0006Wp-RX for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:14:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0els-0006Rf-Q5 for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:14:52 -0400 Original-Received: from [199.232.76.173] (port=57042 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0els-0006RQ-F1 for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:14:48 -0400 Original-Received: from mail-iw0-f174.google.com ([209.85.223.174]:36793) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0elr-0003Un-SS for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:14:48 -0400 Original-Received: by iwn4 with SMTP id 4so3592031iwn.14 for ; Wed, 21 Oct 2009 10:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=VDjcwOrVHYPjhzANyiTly33j4J1rg+ZAwYNNixVylwg=; b=fW44+b4ZRuhalQWp+RRQaWBZeYJNBZdmTO1ZDMIMZIR2P4Tzry0FSCDZ9cMSfuRRXh R73teue6l2veYSNbSx+DxRtmp0sJFa0kyrOmzEGCXY9nE6L7FojxKNT+eS7r53/XUoWF 32JsVT93BOrRU7YRzxnIq61JLGzq62t1JrIJc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=RshB/VrAGMdHcWMBE12tRIDM3FOJ0j0aSIZR/YozcAR2YvZKmS8CpKs/xdyAP4x4MC TxxAarXEPExTTUti2jcyhNIL0ADYtnY8kl/SMfvt7IZRb+0nT0VuKbQWgTLAprmw335z Xvl369szAH7AN+tm/v1TnvFFx9y9a/g2Ocsls= Original-Received: by 10.231.5.23 with SMTP id 23mr7566773ibt.45.1256145287086; Wed, 21 Oct 2009 10:14:47 -0700 (PDT) In-Reply-To: <5f9c1f650910211005r34937eabtc8b6e41db59c0c78@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 21 Oct 2009 13:27:20 -0400 X-Mailman-Approved-At: Wed, 21 Oct 2009 13:52:27 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32150 Archived-At: --00151773da309f846d0476751d6a Content-Type: text/plain; charset=ISO-8859-1 One other note I forgot to mention. After I manually eval the custom-set-faces function and get the lisp error, if I try to evaluate it again, it succeeds without error. Josh On Wed, Oct 21, 2009 at 10:05 AM, Joshua Redstone wrote: > Hi,I downloaded emacs 23.1 and built it with './configure ; make' without > incident on my linux box 2.6.20. > In my .emacs I have the following specifying the default face: > (custom-set-faces > ;; custom-set-faces was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > '(default ((t (:stipple nil :background "black" :foreground "white" > :inverse-video nil :box nil :strike-through nil :overline nil :underline nil > :slant normal :weight normal :height 140 :width normal)))) > When I start emacs without --daemon, it starts without errors, works fine, > and the default face has reasonable values: > ----------- > > Family: Luxi Mono > Foundry: b&h > Width: normal > Height: 141 > Weight: normal > Slant: normal > Foreground: white > Background: black > Underline: nil > Overline: nil > Strike-through: nil > Box: nil > Inverse: nil > Stipple: nil > Font: # Mono-normal-normal-normal-*-19-*-*-*-m-0-iso10646-1> > Fontset: -b&h-Luxi > Mono-normal-normal-normal-*-19-*-*-*-m-0-fontset-auto1 > Inherit: unspecified > > ------------------ > However, when I start emacs by first doing 'emacs --daemon', and then > 'emacsclient -c', I get errors: > Unable to load color "unspecified-bg" > And the colors are not set correctly. Poking around, I found that the > default face in this instance has: > --------------------------- > Family: Luxi Mono > Foundry: b&h > Width: normal > Height: 119 > Weight: normal > Slant: normal > Foreground: black > Background: unspecified-bg > Underline: nil > Overline: nil > Strike-through: nil > Box: nil > Inverse: nil > Stipple: nil > Font: # Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1> > Fontset: -b&h-Luxi > Mono-normal-normal-normal-*-16-*-*-*-m-0-fontset-startup > Inherit: unspecified > -------------------------- > Further, when I use C-x,C-e to manually evaluate the custom-set-faces line > in my .emacs I get the following stack trace: > Debugger entered--Lisp error: (error "Undefined color" "unspecified-fg") > internal-set-lisp-face-attribute(default :foreground "unspecified-fg" > #) > set-face-attribute(default # :stipple nil :background "unspecified-bg" :foreground > "unspecified-fg" :inverse-video nil :box nil :strike-through nil :overline > nil :underline nil :slant normal :weight normal :height 1 :width normal > :foundry "default" :family "default") > apply(set-face-attribute default # emacs@devrs005.snc1.facebook.com 0x135f180> (:stipple nil :background > "unspecified-bg" :foreground "unspecified-fg" :inverse-video nil :box nil > :strike-through nil :overline nil :underline nil :slant normal :weight > normal :height 1 :width normal :foundry "default" :family "default")) > face-spec-set-2(default # ((t :stipple nil :background "unspecified-bg" :foreground > "unspecified-fg" :inverse-video nil :box nil :strike-through nil :overline > nil :underline nil :slant normal :weight normal :height 1 :width normal > :foundry "default" :family "default"))) > face-spec-recalc(default #) > face-spec-set(default ((t (:stipple nil :background "black" :foreground > "white" :inverse-video nil :box nil :strike-through nil :overline nil > :underline nil :slant normal :weight normal :height 140 :width normal))) t) > custom-theme-set-faces(user (default ((t ...)))) > apply(custom-theme-set-faces user (default ((t ...)))) > custom-set-faces((default ((t ...)))) > eval((custom-set-faces (quote (default ...)))) > eval-last-sexp-1(nil) > eval-last-sexp(nil) > call-interactively(eval-last-sexp nil nil) > > One more detail: I'm (ssh -X)'ing into the linux box from a Snow Leopard > Mac running X11 (XQuartz 2.3.4 (xorg-server 1.4.2-apple45)) > > Anyone else seeing this behavior or know what to do about it? > Thanks, > Josh > > --00151773da309f846d0476751d6a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable One other note I forgot to mention.=A0 After I manually eval the custom-set= -faces function and get the lisp error, if I try to evaluate it again,
i= t succeeds without error.
Josh

On Wed,= Oct 21, 2009 at 10:05 AM, Joshua Redstone <redstone@gmail.com> wrote:
Hi,
I downloa= ded emacs 23.1 and built it with './configure ; make' without incid= ent on my linux box 2.6.20.
In my .emacs I have the following specifying the default face:
(custom-set-faces
=A0 ;; custom-set-faces was added by Custom.
=A0 ;; If you edit it by ha= nd, you could mess it up, so be careful.
=A0 ;; Your init file should co= ntain only one such instance.
=A0 ;; If there is more than one, they won= 't work right.
=A0'(default ((t (:stipple nil :background "black" :foregroun= d "white" :inverse-video nil :box nil :strike-through nil :overli= ne nil :underline nil :slant normal :weight normal :height 140 :width norma= l))))
When I start emacs without --daemon, it starts without err= ors, works fine, and the default face has reasonable values:
-----------
=A0=A0=A0=A0=A0=A0=A0 Family: Luxi Mono
= =A0=A0=A0=A0=A0=A0 Foundry: b&h
=A0=A0=A0=A0=A0=A0=A0=A0 Width: norm= al
=A0=A0=A0=A0=A0=A0=A0 Height: 141
=A0=A0=A0=A0=A0=A0=A0 Weight: no= rmal
=A0=A0=A0=A0=A0=A0=A0=A0 Slant: normal
=A0=A0=A0 Foreground: white
= =A0=A0=A0 Background: black
=A0=A0=A0=A0 Underline: nil
=A0=A0=A0=A0= =A0 Overline: nil
Strike-through: nil
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = Box: nil
=A0=A0=A0=A0=A0=A0 Inverse: nil
=A0=A0=A0=A0=A0=A0 Stipple: = nil
=A0=A0=A0=A0=A0=A0=A0=A0=A0 Font: #<font-object -b&h-Luxi Mon= o-normal-normal-normal-*-19-*-*-*-m-0-iso10646-1>
=A0=A0=A0=A0=A0=A0 Fontset: -b&h-Luxi Mono-normal-normal-normal-*-19-*-= *-*-m-0-fontset-auto1
=A0=A0=A0=A0=A0=A0 Inherit: unspecified
------------------
However, when I start emacs by= first doing 'emacs --daemon', and then 'emacsclient -c', I= get errors:
Unable to load color "uns= pecified-bg"
And the colors are not set correctly.=A0 Poking = around, I found that the default face in this instance has:
------------= ---------------
=A0=A0=A0=A0=A0=A0=A0 Family: Luxi M= ono
=A0=A0=A0=A0=A0=A0 Foundry: b&h
=A0=A0=A0=A0=A0=A0=A0=A0 Widt= h: normal
=A0=A0=A0=A0=A0=A0=A0 Height: 119
=A0=A0=A0=A0=A0=A0=A0 Wei= ght: normal
=A0=A0=A0=A0=A0=A0=A0=A0 Slant: normal
=A0=A0=A0 Foregrou= nd: black
=A0=A0=A0 Background: unspecified-bg
=A0=A0=A0=A0 Underline: nil
=A0=A0=A0=A0=A0 Overline: nil
Strike-thro= ugh: nil
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Box: nil
=A0=A0=A0=A0=A0=A0 I= nverse: nil
=A0=A0=A0=A0=A0=A0 Stipple: nil
=A0=A0=A0=A0=A0=A0=A0=A0= =A0 Font: #<font-object -b&h-Luxi Mono-normal-normal-normal-*-16-*-*= -*-m-0-iso10646-1>
=A0=A0=A0=A0=A0=A0 Fontset: -b&h-Luxi Mono-normal-normal-normal-*-16-*-= *-*-m-0-fontset-startup
=A0=A0=A0=A0=A0=A0 Inherit: unspecified
--------------------------
Further, when I use C-x,C-e to manually eval= uate the custom-set-faces line in my .emacs I get the following stack trace= :
Debugger entered--Lisp error: (error &quo= t;Undefined color" "unspecified-fg")
=A0 internal-set-lis= p-face-attribute(default :foreground "unspecified-fg" #<frame = emacs= @devrs005.snc1.facebook.com 0x135f180>)
=A0 set-face-attribute(default #<frame emacs@devrs005.snc1.facebook.com 0= x135f180> :stipple nil :background "unspecified-bg" :foregroun= d "unspecified-fg" :inverse-video nil :box nil :strike-through ni= l :overline nil :underline nil :slant normal :weight normal :height 1 :widt= h normal :foundry "default" :family "default")
=A0 apply(set-face-attribute default #<frame emacs@devrs005.snc1.facebook.com= 0x135f180> (:stipple nil :background "unspecified-bg" :fo= reground "unspecified-fg" :inverse-video nil :box nil :strike-thr= ough nil :overline nil :underline nil :slant normal :weight normal :height = 1 :width normal :foundry "default" :family "default"))<= br> =A0 face-spec-set-2(default #<frame emacs@devrs005.snc1.facebook.com 0x13= 5f180> ((t :stipple nil :background "unspecified-bg" :foregrou= nd "unspecified-fg" :inverse-video nil :box nil :strike-through n= il :overline nil :underline nil :slant normal :weight normal :height 1 :wid= th normal :foundry "default" :family "default")))
=A0 face-spec-recalc(default #<frame emacs@devrs005.snc1.facebook.com 0x1= 35f180>)
=A0 face-spec-set(default ((t (:stipple nil :background &quo= t;black" :foreground "white" :inverse-video nil :box nil :st= rike-through nil :overline nil :underline nil :slant normal :weight normal = :height 140 :width normal))) t)
=A0 custom-theme-set-faces(user (default ((t ...))))
=A0 apply(custom-th= eme-set-faces user (default ((t ...))))
=A0 custom-set-faces((default ((= t ...))))
=A0 eval((custom-set-faces (quote (default ...))))
=A0 eval= -last-sexp-1(nil)
=A0 eval-last-sexp(nil)
=A0 call-interactively(eval-last-sexp nil nil)

One more detail:=A0 I'm (ssh -X)'ing into the linux box= from a Snow Leopard Mac running X11 (XQuartz 2.3.4 (xorg-server 1.4.2-appl= e45))

Anyone else seeing this behavior or know what to do about it?
Thanks= ,
Josh


--00151773da309f846d0476751d6a--