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 13:06:53 -0700 (PDT)

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. 






reply via email to

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