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#4776: Error setting default face and unspecified-bg in default face when starting emacs 23.1 with --daemon Date: Wed, 21 Oct 2009 10:05:57 -0700 Message-ID: <5f9c1f650910211005r34937eabtc8b6e41db59c0c78@mail.gmail.com> Reply-To: Joshua Redstone , 4776@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00151773eaa03b11b9047674ff9b X-Trace: ger.gmane.org 1256147575 10491 80.91.229.12 (21 Oct 2009 17:52:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Oct 2009 17:52:55 +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:52:45 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 1N0fMQ-0006Z2-D9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Oct 2009 19:52:35 +0200 Original-Received: from localhost ([127.0.0.1]:55467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0fMP-0004rj-II for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Oct 2009 13:52:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0ey0-0002gw-Cz for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:27:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0exv-0002dk-Ps for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:27:19 -0400 Original-Received: from [199.232.76.173] (port=59345 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0exv-0002dQ-IK for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:27:15 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33817) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N0exu-0005hh-Rn 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 n9LHRCpm027724; Wed, 21 Oct 2009 10:27:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9LHF54I025893; Wed, 21 Oct 2009 10:15:05 -0700 Resent-Date: Wed, 21 Oct 2009 10:15:05 -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:15:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4776 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125614478725012 (code B ref -1); Wed, 21 Oct 2009 17:15:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 21 Oct 2009 17:06:27 +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 n9LH6OCA025009 for ; Wed, 21 Oct 2009 10:06:25 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0edk-0008W7-7Q for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:06:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0edf-0008Ty-Ek for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:06:23 -0400 Original-Received: from [199.232.76.173] (port=42183 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0edf-0008Tv-4T for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:06:19 -0400 Original-Received: from mail-iw0-f174.google.com ([209.85.223.174]:39472) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0ede-0001oZ-FC for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2009 13:06:18 -0400 Original-Received: by iwn4 with SMTP id 4so3586656iwn.14 for ; Wed, 21 Oct 2009 10:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=JZu0A4o5upL89wWC+gsDKPtuLGcFQ7u5Dgt4OCvgX4U=; b=KTd8axhUMapOR+s1tUnI1+xq/8YWZzEEcZgU2SByLfS1o75SWPT2eSSSK3y84kTXBW Dx4pm5mgYJY8HfdzMZmIWlPaHLTCCdX6qyMiToX/0sXouigPl8F/b/Fz86m27SixfT91 f9P4vvREDIg7aXhDfIGMGge/w2ydnvXpRFRfE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=reKkZcnSq8HTDqkiQVyPLZq9PEi65ZRiMiUGZFw44gkHU26M9xsqzkonBdAeDJ/UXC DWo1Zgf+M75+Xlh2/QD/bwqKJ/ScPz3dWq2LiBZskJKb+hefjpTdfJNoxbpaj5AsYVZo 4tZkuEGBG8Wy0C6DhoMzyuWeU/nGRkVqbWz2U= Original-Received: by 10.231.1.22 with SMTP id 22mr6279645ibd.56.1256144777187; Wed, 21 Oct 2009 10:06:17 -0700 (PDT) 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:19 -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:32149 Archived-At: --00151773eaa03b11b9047674ff9b Content-Type: text/plain; charset=ISO-8859-1 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: # 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: # 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 # (: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 --00151773eaa03b11b9047674ff9b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,
I downloaded emacs 23.1 and built it with './configure ; make&#= 39; without incident on my linux box 2.6.20.
In my .emacs I have the fol= lowing specifying the default face:
(c= ustom-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.fac= ebook.com 0x135f180>)
=A0 set-face-attribute(default #<frame emacs@devrs005.snc1.facebook.com 0x135f180> :stip= ple nil :background "unspecified-bg" :foreground "unspecifie= d-fg" :inverse-video nil :box nil :strike-through nil :overline nil :u= nderline nil :slant normal :weight normal :height 1 :width normal :foundry = "default" :family "default")
=A0 apply(set-face-attribute default #<frame emacs@devrs005.snc1.facebook.com 0x135f180>= (:stipple nil :background "unspecified-bg" :foreground "uns= pecified-fg" :inverse-video nil :box nil :strike-through nil :overline= nil :underline nil :slant normal :weight normal :height 1 :width normal :f= oundry "default" :family "default"))
=A0 face-spec-set-2(default #<frame emacs@devrs005.snc1.facebook.com 0x135f180> ((t :sti= pple nil :background "unspecified-bg" :foreground "unspecifi= ed-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")))
=A0 face-spec-recalc(default #<frame emacs@devrs005.snc1.facebook.com 0x135f180>)
=A0= face-spec-set(default ((t (:stipple nil :background "black" :for= eground "white" :inverse-video nil :box nil :strike-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

--00151773eaa03b11b9047674ff9b--