all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <thorn@fastmail.fm>
To: emacs-pretest-bug@gnu.org
Subject: bug#1129: 23.0.60; emacs --daemon loads only one half of my ~/.emacs
Date: Thu, 09 Oct 2008 14:43:15 +0200	[thread overview]
Message-ID: <87y70yos64.fsf@baldur.tsdh.de> (raw)


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 <tab> t r <tab> c <tab> m <backspace> 
<tab> <tab> - m <tab> <return> M-x g <return> <return> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <up> <return> y SPC SPC SPC SPC SPC c <up> <up> 
<up> <up> <up> <return> B <backspace> y q M-x t b m 
<return> <return> M-x t b m <return> <return> <return> 
SPC c <return> c l s M-x r e b <return> <return>

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






             reply	other threads:[~2008-10-09 12:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-09 12:43 Tassilo Horn [this message]
2008-10-09 17:12 ` bug#1129: 23.0.60; emacs --daemon loads only one half of my ~/.emacs Dan Nicolaescu
2008-10-09 19:29   ` Tassilo Horn
2008-10-09 20:06     ` Dan Nicolaescu
2008-10-10  6:53       ` Tassilo Horn
2008-10-10 10:09         ` Alex

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y70yos64.fsf@baldur.tsdh.de \
    --to=thorn@fastmail.fm \
    --cc=1129@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.