From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Dudebout Newsgroups: gmane.emacs.bugs Subject: bug#7975: 23.2; emacsclient and first "C-c ..." command Date: Thu, 3 Feb 2011 11:52:06 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd1e164f29575049b6395db X-Trace: dough.gmane.org 1296762368 22462 80.91.229.12 (3 Feb 2011 19:46:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Feb 2011 19:46:08 +0000 (UTC) To: 7975@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 03 20:46:03 2011 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.69) (envelope-from ) id 1Pl57r-0003ah-Rp for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Feb 2011 20:46:02 +0100 Original-Received: from localhost ([127.0.0.1]:60596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pl4iH-0002XF-9S for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Feb 2011 14:19:29 -0500 Original-Received: from [140.186.70.92] (port=38082 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pl35y-0000M6-VV for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2011 12:37:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pl35w-000876-NH for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2011 12:35:50 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pl35w-00086z-KG for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2011 12:35:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pl2tZ-0003tk-VZ; Thu, 03 Feb 2011 12:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Dudebout Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Feb 2011 17:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7975 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.129675375414945 (code B ref -1); Thu, 03 Feb 2011 17:23:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Feb 2011 17:22:34 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pl2t7-0003sz-Qa for submit@debbugs.gnu.org; Thu, 03 Feb 2011 12:22:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pl2KB-000359-HW for submit@debbugs.gnu.org; Thu, 03 Feb 2011 11:46:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pl2SN-0008W2-5S for submit@debbugs.gnu.org; Thu, 03 Feb 2011 11:54:56 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:33639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pl2QV-0007tm-6w for submit@debbugs.gnu.org; Thu, 03 Feb 2011 11:54:55 -0500 Original-Received: from [140.186.70.92] (port=35589 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pl2Q2-0004B8-Ht for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2011 11:52:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pl2Po-0007ds-62 for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2011 11:52:17 -0500 Original-Received: from deliverator6.gatech.edu ([130.207.160.71]:52095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pl2Pn-0007cT-TE for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2011 11:52:16 -0500 Original-Received: from deliverator6.gatech.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 9B1FC20CA44 for ; Thu, 3 Feb 2011 11:52:13 -0500 (EST) Original-Received: from mail8.gatech.edu (mail8.gatech.edu [130.207.185.168]) by deliverator6.gatech.edu (Postfix) with ESMTP id 86DE120C8EB for ; Thu, 3 Feb 2011 11:52:12 -0500 (EST) Original-Received: from mail-ey0-f169.google.com (bigip.ecc.gatech.edu [130.207.185.140]) (Authenticated sender: ndudebout3) by mail8.gatech.edu (Postfix) with ESMTPSA id 33D6D2757F3 for ; Thu, 3 Feb 2011 11:52:12 -0500 (EST) Original-Received: by eyh6 with SMTP id 6so728493eyh.0 for ; Thu, 03 Feb 2011 08:52:06 -0800 (PST) Original-Received: by 10.213.17.1 with SMTP id q1mr13669200eba.9.1296751926612; Thu, 03 Feb 2011 08:52:06 -0800 (PST) Original-Received: by 10.213.28.197 with HTTP; Thu, 3 Feb 2011 08:52:06 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 130.207.160.71 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Mailman-Approved-At: Thu, 03 Feb 2011 12:22:33 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 03 Feb 2011 12:23:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Thu, 03 Feb 2011 14:19:22 -0500 X-BeenThere: bug-gnu-emacs@gnu.org 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:43891 Archived-At: --000e0cd1e164f29575049b6395db Content-Type: text/plain; charset=UTF-8 When launchin emacsclient right after starting emacs daemon, mode specific commands (i.e. commands starting by C-c) do not work. However, after you execute any command it works normally. "any command" can be: - a failed C-c command - or anything else like C-n Here are 3 examples to show what is happening. Each example starts from emacs not running. Example 1: $ emacs -Q --daemon $ emacsclient foo.py "C-c C-c" -> "C-c C-c undefined" "C-c C-c" does work Example 2: $ emacs -Q --daemon $ emacsclient bar.c "C-c C-n" -> "C-c C-n undefined" "C-c C-n" does work Example 3: $ emacs -Q --daemon $ emacsclient bar.c "C-n" "C-c C-n" does work Regards, Nicolas In GNU Emacs 23.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.0) of 2010-05-08 on pidsley.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.10902000 configured using `configure '--prefix=/usr' '--sysconfdir=/etc' '--libexecdir=/usr/lib' '--localstatedir=/var' '--mandir=/usr/share/man' '--without-sound' '-with-x-toolkit=gtk' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-optimize-sibling-calls' 'LDFLAGS=-Wl,--hash-style=gnu -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.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: 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-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t Recent messages: ("emacs") Starting Emacs daemon. When done with this frame, type C-x 5 0 Load-path shadows: None found. Features: (shadow sort mail-extr message idna sendmail regexp-opt ecomplete rfc822 mml easymenu mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug server tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting 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 dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) --000e0cd1e164f29575049b6395db Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable When launchin emacsclient right after starting emacs daemon,
mode specif= ic commands (i.e. commands starting by C-c) do not work.
However, after = you execute any command it works normally.

"any command" c= an be:
- a failed C-c command
- or anything else like C-n

Here are 3 exa= mples to show what is happening. Each example starts from
emacs not runn= ing.

Example 1:
$ emacs -Q --daemon
$ emacsclient foo.py
"C-c C-c" -> "C-c C-c undefined"
"C-c C-c&qu= ot; does work

Example 2:
$ emacs -Q --daemon
$ emacsclient bar= .c
"C-c C-n" -> "C-c C-n undefined"
"C-c = C-n" does work

Example 3:
$ emacs -Q --daemon
$ emacsclient bar.c
"C-n&q= uot;
"C-c C-n" does work

Regards,

Nicolas
In GNU Emacs 23.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.0)
=C2=A0of 2010-05-08 on pidsley.hoet= zel.info
Windowing system distributor `The X.Org Foundation', ve= rsion 11.0.10902000
configured using `configure=C2=A0 '--prefix=3D/u= sr' '--sysconfdir=3D/etc' '--libexecdir=3D/usr/lib' = 9;--localstatedir=3D/var' '--mandir=3D/usr/share/man' '--wi= thout-sound' '-with-x-toolkit=3Dgtk' 'CFLAGS=3D-march=3Dx86= -64 -mtune=3Dgeneric -O2 -pipe -fno-optimize-sibling-calls' 'LDFLAG= S=3D-Wl,--hash-style=3Dgnu -Wl,--as-needed''

Important settings:
=C2=A0 value of $LC_ALL: nil
=C2=A0 value of = $LC_COLLATE: nil
=C2=A0 value of $LC_CTYPE: nil
=C2=A0 value of $LC_M= ESSAGES: nil
=C2=A0 value of $LC_MONETARY: nil
=C2=A0 value of $LC_NU= MERIC: nil
=C2=A0 value of $LC_TIME: nil
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIERS: nil
= =C2=A0 locale-coding-system: utf-8-unix
=C2=A0 default enable-multibyte-= characters: t

Major mode: Lisp Interaction

Minor modes in eff= ect:
=C2=A0 tooltip-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mo= de: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t=
=C2=A0 font-lock-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 au= to-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Recent input:
M-x r e p o r t <t= ab> <return>

Recent messages:
("emacs")
Sta= rting Emacs daemon.
When done with this frame, type C-x 5 0

Load-= path shadows:
None found.

Features:
(shadow sort mail-extr message idna sendmai= l regexp-opt ecomplete rfc822
mml easymenu mml-sec password-cache mm-dec= ode mm-bodies mm-encode
mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ie= tf-drums mailabbrev
nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-editmailheader canlock sha1 hex-util hashcash mail-utils emacsbug server
to= oltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
font-settin= g 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 romani= an slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button
min= ibuffer faces cus-face files text-properties overlay md5 base64
format e= nv code-pages mule custom widget hashtable-print-readable
backquote make= -network-process dbusbind system-font-setting
font-render-setting gtk x-toolkit x multi-tty emacs)

--000e0cd1e164f29575049b6395db--