Subject: 24.0.50; VC's questions to user may freeze emacs initialization

From: "Oscar Fuentes" <[email-masked]>
Date: Mon, 05 Jul 2010 17:44:40 +0200

The defun vc-find-file-hook defined in lisp/vc/vc-hooks.el contains

(if (yes-or-no-p (format
	   "Symbolic link to %s-controlled source file; follow link? " link-type))

If emacs loads a file at init time that triggers that question and there
is no active frame nor associated console (i.e. emacs is starting in
daemon mode from a launcher such as KDERunner or some script) the effect
is that the initialization freezes because the user cannot see nor
answer the question.

In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, X toolkit)
 of 2010-07-05 on qcore
Windowing system distributor `The X.Org Foundation', version 11.0.10706000
configured using `configure  '--with-x-toolkit=lucid' '--without-toolkit-scroll-bars''

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.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  shell-dirtrack-mode: t
  whitespace-mode: t
  TeX-PDF-mode: t
  show-paren-mode: t
  diff-auto-refine-mode: t
  ido-everywhere: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t

Recent input:
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> C-x b <return> M-x g n u s <return> 
<down> <return> <return> d d q <return> <return> SPC 
SPC SPC SPC q c y <return> d d q <return> d q M-< <return> 
d q q y <f10> <menu-bar> <help-menu> <send-emacs-b
ug-report>

Recent messages:
No more unread articles
No more articles
No more unread newsgroups
Are you sure you want to quit reading news? (y or n) 
Saving file /home/oscar/.newsrc...
Wrote /home/oscar/.newsrc
Saving /home/oscar/.newsrc.eld...
Saving file /home/oscar/.newsrc.eld...
Wrote /home/oscar/.newsrc.eld
Saving /home/oscar/.newsrc.eld...done

Load-path shadows:
~/elisp/magit hides /usr/local/share/emacs/site-lisp/magit

Features:
(shadow emacsbug qp sort gnus-cite smiley ansi-color mail-extr
gnus-async gnus-bcklg gnus-ml disp-table parse-time nnfolder pop3 nnml
nndraft nnmh netrc gnus-agent gnus-srvr gnus-score score-mode nnvirtual
gnus-msg gnus-art mm-uu mml2015 epg-config mm-view smime dig mailcap
nntp gnus-cache gnus-sum nnoo gnus-group time-date gnus-undo nnmail
mail-source smtpmail sendmail gnus-start gnus-spec gnus-int gnus-range
message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader
gnus-win gnus gnus-ems nnheader mail-utils mm-util mail-prsvr apropos
log-view vc-annotate vc vc-dispatcher vc-bzr sha1 hex-util tramp-imap
assoc tramp-gw tramp-fish tramp-smb tramp-cache tramp-ftp tramp-cmds
tramp auth-source gnus-util shell password-cache format-spec
tramp-compat trampver grep multi-isearch help-mode view package
org-install whitespace jka-compr find-func timeclock timeclock-x vc-git
compile comint lp0-mode preview prv-emacs info reporter desktop latex
tex-style tex-buf tex tex-site auto-loads paren uniquify magit ediff
server pcomplete psvn byte-opt warnings bytecomp byte-compile derived
edmacro kmacro wid-edit cl cl-19 log-edit ring pcvs-util add-log
diff-mode pp elp ediff-merg ediff-diff ediff-wind ediff-mult ediff-help
ediff-init ediff-util dired easymenu bbdb-autoloads bbdb regexp-opt
timezone easy-mmode ido advice help-fns advice-preload tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer
select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu
font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces
cus-face files text-properties overlay md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote
make-network-process dynamic-setting font-render-setting x-toolkit x
multi-tty emacs)