From: Joshua Redstone <redstone@gmail.com>
To: bug-gnu-emacs@gnu.org
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 [thread overview]
Message-ID: <5f9c1f650910211014g28f07c71s18b8c98f09dc4068@mail.gmail.com> (raw)
In-Reply-To: <5f9c1f650910211005r34937eabtc8b6e41db59c0c78@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4619 bytes --]
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 <redstone@gmail.com>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: #<font-object -b&h-Luxi
> 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: #<font-object -b&h-Luxi
> 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"
> #<frame emacs@devrs005.snc1.facebook.com 0x135f180>)
> set-face-attribute(default #<frame emacs@devrs005.snc1.facebook.com0x135f180> :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 #<frame
> 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 #<frame emacs@devrs005.snc1.facebook.com0x135f180> ((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 #<frame emacs@devrs005.snc1.facebook.com0x135f180>)
> 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
>
>
[-- Attachment #2: Type: text/html, Size: 5989 bytes --]
next prev parent reply other threads:[~2009-10-21 17:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200911040146.nA41kbnT027147@godzilla.ics.uci.edu>
2009-10-21 17:05 ` bug#4776: Error setting default face and unspecified-bg in default face when starting emacs 23.1 with --daemon Joshua Redstone
2009-10-21 17:14 ` Joshua Redstone [this message]
[not found] ` <handler.4777.B.125614529525755.ack@emacsbugs.donarmstrong.com>
2009-10-21 17:43 ` bug#4777: Acknowledgement (Error setting default face and unspecified-bg in default face when starting emacs 23.1 with --daemon) Joshua Redstone
2009-11-04 1:55 ` bug#4777: marked as done " Emacs bug Tracking System
[not found] ` <handler.4776.B.125614478725012.ack@emacsbugs.donarmstrong.com>
2009-10-21 17:43 ` bug#4776: Acknowledgement " Joshua Redstone
2009-10-22 7:28 ` bug#4776: Error setting default face and unspecified-bg in default face when starting emacs 23.1 with --daemon Dan Nicolaescu
2009-11-03 19:31 ` Joshua Redstone
2009-11-04 1:55 ` bug#4776: marked as done (Error setting default face and unspecified-bg in default face when starting emacs 23.1 with --daemon) Emacs bug Tracking System
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5f9c1f650910211014g28f07c71s18b8c98f09dc4068@mail.gmail.com \
--to=redstone@gmail.com \
--cc=4777@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.