bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#1129: 23.0.60; emacs --daemon loads only one half of my ~/.emacs


From: Dan Nicolaescu
Subject: bug#1129: 23.0.60; emacs --daemon loads only one half of my ~/.emacs
Date: Thu, 9 Oct 2008 10:12:26 -0700 (PDT)

Tassilo Horn <thorn@fastmail.fm> writes:

  > ;;; Code:
  > 
  > (require 'rcirc)
  > 
  > (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)
  >                    (> (color-distance color fg) min-distance))
  >           (setq candidates (cons color candidates)))))
  >     candidates)
  >     (delete (face-background 'default) (defined-colors)))
  >   "Colors to use for nicks in rcirc.
  > By default, all the non-grey colors that are very different from
  > the default background are candidates.  The minimum
  > color-distance is half the distance between black and red as
  > computed by `color-distance'.
  > 
  > To check out the list, evaluate (list-colors-display rcirc-colors).")
  > 
  > This first `defvar' is not evaluated.  The variable is unknown to my
  > emacs started with --daemon...
  > 
  > 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.






reply via email to

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