GNU bug report logs - #18890
23.4; current-input-mode differs whether or not -t/-c switch was passed to emacsclient

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Raphaël Droz <raphael.droz@HIDDEN>; dated Wed, 29 Oct 2014 20:00:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 18890 <at> debbugs.gnu.org:


Received: (at 18890) by debbugs.gnu.org; 29 Oct 2014 22:51:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 29 18:51:10 2014
Received: from localhost ([127.0.0.1]:39471 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Xjc58-0001PQ-Aj
	for submit <at> debbugs.gnu.org; Wed, 29 Oct 2014 18:51:10 -0400
Received: from mail-qg0-f48.google.com ([209.85.192.48]:58333)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <raphael.droz@HIDDEN>) id 1Xjc56-0001PE-FO
 for 18890 <at> debbugs.gnu.org; Wed, 29 Oct 2014 18:51:08 -0400
Received: by mail-qg0-f48.google.com with SMTP id q108so3074924qgd.7
 for <18890 <at> debbugs.gnu.org>; Wed, 29 Oct 2014 15:51:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=date:from:to:subject:message-id:references:mime-version
 :content-type:content-disposition:in-reply-to:user-agent;
 bh=7VSV/QjxaO9fU18K4X4g5tXPX/LuoLc4EK8t9148Xdo=;
 b=NSSCap1ZDxfKYgfsnJlWh5OWMBc8OOZ05p1NA4EKh/bFhuT7B98fyXvj334lgAnYMU
 LFtSYEIxxsCbBE2I6NBepK5RTHVRN2JHvSRUkdkQNCePdhuTJdVJMPiYgxisBEfy1hwX
 dfhzM3P1xUtQZAtG7Ql6Bs3cws4xprkM88OzrcWDDUKICVmEwmo4Ofa+I0KU7sgZUVqU
 882yFfBZJOEYgX9GuesFwkUSpsGW6sXxznoudkoqBdjldU3Ls7fDqS99v4EKnC9yMvA8
 VImqAOxuwxOZywLpWA9r4H3XzKouYPvN4gP6kFoFypzz7k+Jf+LWklaq7Qzuy1IwohL+
 oAWA==
X-Received: by 10.229.37.70 with SMTP id w6mr20692140qcd.11.1414623062850;
 Wed, 29 Oct 2014 15:51:02 -0700 (PDT)
Received: from localhost ([181.22.143.52])
 by mx.google.com with ESMTPSA id 40sm3554545qgi.47.2014.10.29.15.51.00
 for <18890 <at> debbugs.gnu.org>
 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
 Wed, 29 Oct 2014 15:51:01 -0700 (PDT)
Date: Wed, 29 Oct 2014 19:50:39 -0300
From: =?iso-8859-1?Q?Rapha=EBl?= Droz <raphael.droz@HIDDEN>
To: 18890 <at> debbugs.gnu.org
Subject: Re: bug#18890: 23.4; current-input-mode differs whether or not -t/-c
 switch was passed to emacsclient
Message-ID: <20141029225039.GA6431@deeebian>
References: <20141029194129.GA25807@deeebian>
 <handler.18890.B.141461276313605.ack <at> debbugs.gnu.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <handler.18890.B.141461276313605.ack <at> debbugs.gnu.org>
X-PGP-Key: http://pool.sks-keyservers.net/pks/lookup?op=vindex&search=0xd7f62b21
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 18890
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

I found that after emacsclient -a '' is run, there were 2 ways to
restore a correct dead keys behavior:

1)
M-: (set-input-meta-mode 8)

2)
M-: (set-terminal-parameter nil 'keyboard-coding-saved-meta-mode t)
followed by
M-: (set-keyboard-coding-system 'utf-8)

But these does *not* have any effect when set inside my ~/.emacs
I initially though that because they were run too soon, or too late in
relation to loading mule.el
I was wrong in my previous email about the fact that adding
"(set-input-meta-mode 8)" to ~/.emacs solved the issue, it didn't.


After a deeper look it happens that (set-terminal-parameter) expect a
"terminal" argument.
It makes me think that the relation to emacsclient switches managing
terminal could be not so far.

By the way, still trying to localize the origin of the issue and finding
a viable ~/.emacs workaround.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#18890; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Oct 2014 19:59:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 29 15:59:23 2014
Received: from localhost ([127.0.0.1]:39369 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XjZOs-0003XK-2N
	for submit <at> debbugs.gnu.org; Wed, 29 Oct 2014 15:59:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42627)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <raphael.droz@HIDDEN>) id 1XjZ8Z-000372-E1
 for submit <at> debbugs.gnu.org; Wed, 29 Oct 2014 15:42:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <raphael.droz@HIDDEN>) id 1XjZ8L-00010C-2i
 for submit <at> debbugs.gnu.org; Wed, 29 Oct 2014 15:42:26 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:52961)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <raphael.droz@HIDDEN>) id 1XjZ8L-0000zt-0C
 for submit <at> debbugs.gnu.org; Wed, 29 Oct 2014 15:42:17 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44246)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <raphael.droz@HIDDEN>) id 1XjZ8B-0003dQ-TC
 for bug-gnu-emacs@HIDDEN; Wed, 29 Oct 2014 15:42:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <raphael.droz@HIDDEN>) id 1XjZ82-0000ey-PC
 for bug-gnu-emacs@HIDDEN; Wed, 29 Oct 2014 15:42:07 -0400
Received: from mail-qc0-x232.google.com ([2607:f8b0:400d:c01::232]:42399)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <raphael.droz@HIDDEN>) id 1XjZ82-0000cV-JW
 for bug-gnu-emacs@HIDDEN; Wed, 29 Oct 2014 15:41:58 -0400
Received: by mail-qc0-f178.google.com with SMTP id b13so3287451qcw.23
 for <bug-gnu-emacs@HIDDEN>; Wed, 29 Oct 2014 12:41:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=date:from:to:subject:message-id:mime-version:content-type
 :content-disposition:content-transfer-encoding:user-agent;
 bh=LqqBtx3D5BY4PAm4tBzyUy02+3G2X1OO6fnqSUKuZg4=;
 b=t53qZFAOp7ybtVsYTAH4EEPWb4SZDKv7xUN6xgUrGi4foGG9FzoBP3GZSXzFn7Wctm
 1Mapo6cZiMVPgz1MLZCvDNPgKfdezpErXFfn2swOn5K/6Wn1DaUaYiTa1XyjUAQ0OONy
 AIyP6DuQNbXLk9+HnNx0adhga6Hg47TYLGedl1RaxdyjM5nO+MuQnudtemOyOcGMavsL
 HO+9hMLo8vhYkFhxfk099EA6Sr1SNC5d0QDfyu4FBZZv+lETnj1wlCVYL2kUO7eEpAOx
 tiDXI6fSn/HoWmupDhL861VphnqMe6FZxVb+41mm+Ynh1UnZAVq3eHAWG9U4VDsiODjC
 WJfg==
X-Received: by 10.140.109.244 with SMTP id l107mr17757927qgf.80.1414611717509; 
 Wed, 29 Oct 2014 12:41:57 -0700 (PDT)
Received: from localhost ([181.22.143.52])
 by mx.google.com with ESMTPSA id s95sm4929872qgs.12.2014.10.29.12.41.55
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
 Wed, 29 Oct 2014 12:41:56 -0700 (PDT)
Date: Wed, 29 Oct 2014 16:41:29 -0300
From: =?iso-8859-1?Q?Rapha=EBl?= Droz <raphael.droz@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 23.4; current-input-mode differs whether or not -t/-c switch was
 passed to emacsclient
Message-ID: <20141029194129.GA25807@deeebian>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-PGP-Key: http://pool.sks-keyservers.net/pks/lookup?op=vindex&search=0xd7f62b21
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 29 Oct 2014 15:59:20 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

First I run the emacs daemon:
$ emacs -Q --daemon

I happen to be using fr/latin9 eeepc keyboard where
the ë character is obtained through a dead key.
ë = ¨ e = Shift-^ e

### what work as expected
If I use
$ emacsclient -a '' -t anyfile.txt
to edit a file.
Pressing ë (Shift-^ e) outputs the desired character (ë)

In that case:
> M-x describe-key:
> > (self-insert-command N)

> M-: (terminal-parameters)
> > ((normal-erase-is-backspace . 0) (background-mode . dark) (keyboard-coding-saved-meta-mode t) (terminal-initted . terminal-init-rxvt))

> M-: (current-input-mode)
> > (t nil 0 7)

The behavior is the same when using:
$ emacsclient -a '' -c anyfile.txt
with the only exception that a new window is created instead of using
text-mode/virtual-terminal based emacs.



### what does *not* work as expected
If I use
$ emacsclient -a '' anyfile.txt
to edit a file (notice the absence of -t/-c switch)

Pressing ë (Shift-^ e) has the same effect as (capitalize-word ARG) (!)
In that case:
> M-x describe-key:
> > It is bound to M-c. (capitalize-word ARG)

> M-: (terminal-parameters)
> > ((normal-erase-is-backspace . 0) (background-mode . dark) (terminal-initted . terminal-init-rxvt)

> M-: (current-input-mode)
> > (t nil t 7)

Also note that:
> M-: (set-terminal-parameter nil 'keyboard-coding-saved-meta-mode t)
didn't change the behavior *but*

> M-: (set-input-meta-mode 8)
changed the behavior to the expected one (as with -t/-c)
(although keyboard-coding-saved-meta-mode is not set to "t" as a consequence)



A last thing, if an emacsclient -t is run first, then successive
call to emacsclient without -t nor -c will just change to buffer in the
already existing frame.
As this frame was created using -t, dead keys will behave normally.
The opposite can't be tested since I can't "join" an existing frame
created without any of -t nor -c.


First question:
why these -t/-c switches (which are only about frame and buffer), change
the way dead keys / meta-mode are setup ?
= Isn't this a bug ?

Side question: is forcing (set-input-meta-mode 8) in my ~/.emacs the
right fix or just a workaround for a deeper problem ?



In GNU Emacs 23.4.1 (i486-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-09-09 on murphy, modified by Debian
configured using `configure  '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.4/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/i386-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -DDEBIAN -O2' 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

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

Major mode: Fundamental

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 messages:


Load-path shadows:
/usr/share/emacs23/site-lisp/css-mode/css-mode hides /usr/share/emacs/site-lisp/css-mode/css-mode
/usr/share/emacs/23.4/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs/23.4/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode
/usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/23.4/lisp/textmodes/flyspell
/usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/23.4/lisp/textmodes/ispell
/usr/share/emacs23/site-lisp/css-mode/css-mode hides /usr/share/emacs/23.4/lisp/textmodes/css-mode

Features:
(shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml
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 help-mode easymenu view debug
server debian-el debian-el-loaddefs emacs-goodies-el
emacs-goodies-custom emacs-goodies-loaddefs easy-mmode dpkg-dev-el
dpkg-dev-el-loaddefs 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)




Acknowledgement sent to Raphaël Droz <raphael.droz@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#18890; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.