From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs 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) Message-ID: <200810092006.m99K6r3C017787@mothra.ics.uci.edu> References: <87y70yos64.fsf@baldur.tsdh.de> <200810091712.m99HCQTk017333@mothra.ics.uci.edu> <87od1tsh2z.fsf@baldur.tsdh.de> Reply-To: Dan Nicolaescu , 1129@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223584265 31581 80.91.229.12 (9 Oct 2008 20:31:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2008 20:31:05 +0000 (UTC) Cc: 1129@emacsbugs.donarmstrong.com To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 22:32:03 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ko2AR-0000aG-N6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2008 22:31:28 +0200 Original-Received: from localhost ([127.0.0.1]:48756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ko29M-0004ms-Ce for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2008 16:30:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ko298-0004iP-D1 for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2008 16:30:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ko296-0004hl-E6 for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2008 16:30:05 -0400 Original-Received: from [199.232.76.173] (port=54998 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ko296-0004hg-5N for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2008 16:30:04 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51175) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ko295-0005S6-BP for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2008 16:30:04 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m99KTwtZ016122; Thu, 9 Oct 2008 13:29:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m99KF2el012570; Thu, 9 Oct 2008 13:15:02 -0700 X-Loop: don@donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 09 Oct 2008 20:15:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1129 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1129-submit@emacsbugs.donarmstrong.com id=B1129.122358285111300 (code B ref 1129); Thu, 09 Oct 2008 20:15:02 +0000 Original-Received: (at 1129) by emacsbugs.donarmstrong.com; 9 Oct 2008 20:07:31 +0000 Original-Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m99K7PAT011294 for <1129@emacsbugs.donarmstrong.com>; Thu, 9 Oct 2008 13:07:26 -0700 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m99K6v1E013494; Thu, 9 Oct 2008 13:06:58 -0700 (PDT) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id m99K6r3C017787; Thu, 9 Oct 2008 13:06:53 -0700 (PDT) In-Reply-To: <87od1tsh2z.fsf@baldur.tsdh.de> (Tassilo Horn's message of "Thu, 09 Oct 2008 21:29:08 +0200") Original-Lines: 43 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: m99K6v1E013494 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-0.34, required 5, autolearn=disabled, ALL_TRUSTED -1.44, FM_MULTI_ODD2 1.10) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 09 Oct 2008 16:30:05 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21356 Archived-At: Tassilo Horn writes: > Dan Nicolaescu 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.