Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • Works For Me™. Does it work for you if you start Emacs with emacs -q (to skip your .emacs)? If not, what about emacs -Q (skips all installed packages)? What terminal emulator are you running emacsclient -t in, and does using another emulator make a difference? I suspect Emacs is sending an escape sequence that expects a response and not getting it, but the important data is the character before the 1, which doesn't get displayed. Run strace -o emacs.strace -s9999 emacs --daemon and post the resulting emacs.strace somewhere (it may be huge). Commented Apr 21, 2011 at 7:32
  • @Gilles: The emulator is whatever default ships with Debian 6/Xfce4, simply called "Terminal Emulator". In that, emacs -q --daemon doesn't fix it, but emacs -Q --daemon does. In LXTerminal, the -q option works fine; with just emacs --daemon in LXTerminal, emacsclient -t doesn't actually hang (I can still C-x # to exit) but it doesn't give me a cursor or allow me to actually do anything. Working on the strace thing now. Commented Apr 21, 2011 at 11:59
  • @Gilles: ironhaq.tumblr.com/post/4803854323/… Commented Apr 21, 2011 at 12:07
  • @Wolf: The trace is missing the good bits. My fault, can you do it again with strace -f -o emacs.strace -s9999 emacs --daemon? Also, to find out what this mysterious “Terminal Emulator” is, please run ps $PPID in it. Also, since the bug is apparently triggered by an installed package, run dpkg -S /etc/emacs*/site-start.d to get the list. Commented Apr 21, 2011 at 21:52
  • 1
    @Gilles: Thanks for all your help! I just wish I knew what we did to fix it. Commented Apr 22, 2011 at 19:35