From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1129: 23.0.60; emacs --daemon loads only one half of my ~/.emacs Date: Thu, 09 Oct 2008 14:43:15 +0200 Message-ID: <87y70yos64.fsf@baldur.tsdh.de> Reply-To: Tassilo Horn , 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 1223557850 22843 80.91.229.12 (9 Oct 2008 13:10:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2008 13:10:50 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 15:11:47 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 1KnvIO-0002A2-Ld for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2008 15:11:13 +0200 Original-Received: from localhost ([127.0.0.1]:34080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnvHK-0002q7-JP for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2008 09:10:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnvHG-0002ph-Vm for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2008 09:10:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnvHF-0002or-DE for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2008 09:10:02 -0400 Original-Received: from [199.232.76.173] (port=46898 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnvHF-0002oj-A0 for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2008 09:10:01 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57353) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KnvHE-0000nB-D4 for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2008 09:10:00 -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 m99D9vDf002391; Thu, 9 Oct 2008 06:09:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m99Co2nM029382; Thu, 9 Oct 2008 05:50:02 -0700 X-Loop: don@donarmstrong.com Resent-From: Tassilo Horn Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 09 Oct 2008 12:50: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 submit@emacsbugs.donarmstrong.com id=B.122355621628132 (code B ref -1); Thu, 09 Oct 2008 12:50:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 9 Oct 2008 12:43:36 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m99ChVHR028126 for ; Thu, 9 Oct 2008 05:43:33 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:60991 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KnupG-00082z-Qs for emacs-pretest-bug@gnu.org; Thu, 09 Oct 2008 08:41:07 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KnurX-0002DG-VF for emacs-pretest-bug@gnu.org; Thu, 09 Oct 2008 08:43:30 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:26977) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KnurV-0002Aa-LN for emacs-pretest-bug@gnu.org; Thu, 09 Oct 2008 08:43:26 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 56E85789A636 for ; Thu, 9 Oct 2008 14:43:19 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05730-01 for ; Thu, 9 Oct 2008 14:43:16 +0200 (CEST) X-CHKRCPT: Envelopesender vrfy thorn@fastmail.fm Original-Received: from baldur.tsdh.de (dhcp248.uni-koblenz.de [141.26.71.248]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 2FC92789A63B for ; Thu, 9 Oct 2008 14:43:16 +0200 (CEST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 09 Oct 2008 09:10:02 -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:21325 gmane.emacs.pretest.bugs:23189 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: When I start emacs it only evaluates about a half of my ~/.emacs. I could locate the line after which loading is stopped. I tried emacs --daemon three times in a row (always killing the former) and the problem and the line where loading stops were always the same. --8<---------------cut here---------------start------------->8--- (add-hook 'rcirc-print-hooks 'th-rcirc-notification) ;; save the logs when emacs exits (add-hook 'kill-emacs-hook 'rcirc-log-write) ;; <= This line is evaled ;; Colors for the nicks (require 'rcirc-color) ;; THE FOLLOWING LINES AREN'T EVALED BY EMACS --DAEMON (defun th-rcirc-mode-init () (unless rcirc-omit-mode (rcirc-omit-mode))) (add-hook 'rcirc-mode-hook 'th-rcirc-mode-init) ;; Fix corrected typos "s/foO/foo" (require 'rcirc-late-fix) --8<---------------cut here---------------end--------------->8--- So it seems that rcirc-color.el contains code that stops emacs --daemon from processing any further. So I visited that file, which starts with the usual GPL copyright comment followed by --8<---------------cut here---------------start------------->8--- ;;; 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).") --8<---------------cut here---------------end--------------->8--- 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? If I start emacs with just "emacs", the whole .emacs is loaded. My emacs was updated this morning. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.14.3) of 2008-10-09 on baldur Windowing system distributor `The X.Org Foundation', version 11.0.10501000 configured using `configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-freetype' '--with-xft' '--with-libotf' '--with-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-gpm' '--with-dbus' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=i686 -mtune=prescott -O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Group Minor modes in effect: gnus-topic-mode: t gnus-undo-mode: t rcirc-track-minor-mode: t partial-completion-mode: t shell-dirtrack-mode: t recentf-mode: t iswitchb-mode: t window-number-meta-mode: t window-number-mode: t savehist-mode: t exec-abbrev-cmd-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-h k C-c ` C-h v r c t r c m - m M-x g y SPC SPC SPC SPC SPC c B y q M-x t b m M-x t b m SPC c c l s M-x r e b Recent messages: 20081009T142857.748> No more unread articles 20081009T142857.859> Exiting summary buffer and applying spam rules 20081009T142857.880> No more unread newsgroups Saving file /home/horn/repos/configs/dot-bbdb... Wrote /home/horn/repos/configs/dot-bbdb (No changes need to be saved) 20081009T142900.446> Saving /home/horn/.newsrc.eld... Saving file /home/horn/.newsrc.eld... Wrote /home/horn/.newsrc.eld 20081009T142900.494> Saving /home/horn/.newsrc.eld...done