From: Dan Nicolaescu <dann@ics.uci.edu>
To: Tassilo Horn <thorn@fastmail.fm>
Cc: 1129@emacsbugs.donarmstrong.com
Subject: bug#1129: 23.0.60; emacs --daemon loads only one half of my ~/.emacs
Date: Thu, 9 Oct 2008 13:06:53 -0700 (PDT) [thread overview]
Message-ID: <200810092006.m99K6r3C017787@mothra.ics.uci.edu> (raw)
In-Reply-To: <87od1tsh2z.fsf@baldur.tsdh.de> (Tassilo Horn's message of "Thu, 09 Oct 2008 21:29:08 +0200")
Tassilo Horn <thorn@fastmail.fm> writes:
> Dan Nicolaescu <dann@ics.uci.edu> writes:
>
> Hi Dan,
>
> > > In my .emacs I required rcirc before requiring rcirc-color. Can it be
> > > that this double require breaks emacs --daemon?
> >
> > Doubtful. Please look at the *Messages* buffer, it should have a
> > warning that loading .emacs failed. Maybe that warning can help you
> > pin point what the problem is.
>
> No, too bad. There's no warning and these are the only contents:
Yeah, too bad.
The code you cited seems to have some issues:
(defvar rcirc-colors
(if (fboundp 'color-distance)
(let ((min-distance (* 0.23 (color-distance "black" "white")))
(bg (face-background 'default))
(fg (face-foreground 'rcirc-my-nick))
candidates)
(dolist (item color-name-rgb-alist)
(let ((color (car item)))
(when (and (not (color-gray-p color))
(> (color-distance color bg) min-distance)
^^^^^^^^^^^^^^^^^^^^^^^^^
This call uses the current frame when not
passed one. When this defvar is evaluated the current frame is not a
frame that will ever be used for display, so this variable will not be
initialized correctly. This is also a problem for multi-tty.
(> (color-distance color fg) min-distance))
(setq candidates (cons color candidates)))))
candidates)
(delete (face-background 'default) (defined-colors)))
^^^^^^^^^^^^^^^^^^
This has the same problem.
I am guessing that the above might be the cause of your problems.
next prev parent reply other threads:[~2008-10-09 20:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-09 12:43 bug#1129: 23.0.60; emacs --daemon loads only one half of my ~/.emacs Tassilo Horn
2008-10-09 17:12 ` Dan Nicolaescu
2008-10-09 19:29 ` Tassilo Horn
2008-10-09 20:06 ` Dan Nicolaescu [this message]
2008-10-10 6:53 ` Tassilo Horn
2008-10-10 10:09 ` Alex
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=200810092006.m99K6r3C017787@mothra.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=1129@emacsbugs.donarmstrong.com \
--cc=thorn@fastmail.fm \
/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.