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: Thu, 09 Oct 2008 14:43:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

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 via email to

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