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: Tassilo Horn
Subject: bug#1129: 23.0.60; emacs --daemon loads only one half of my ~/.emacs
Date: Fri, 10 Oct 2008 08:53:36 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Dan Nicolaescu <dann@ics.uci.edu> writes:

Hi Dan, hi Alex!

@Alex: There's a problem with rcirc-color.el which makes it stop evaling
my ~/.emacs after (require 'rcirc-color).

> 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. 

Yes, you're right.  Commenting the (require 'rcirc-color) makes emacs
--daemon load all of my ~/.emacs.

Do you have an idea how the code above could be fixed for emacs
--daemon?

Bye,
Tassilo
-- 
Richard Stallman can touch MC Hammer






reply via email to

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