From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Rapha=C3=ABl?= Droz Newsgroups: gmane.emacs.bugs Subject: bug#18890: 23.4; current-input-mode differs whether or not -t/-c switch was passed to emacsclient Date: Wed, 29 Oct 2014 16:41:29 -0300 Message-ID: <20141029194129.GA25807@deeebian> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1414612834 30207 80.91.229.3 (29 Oct 2014 20:00:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Oct 2014 20:00:34 +0000 (UTC) To: 18890@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 29 21:00:27 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XjZPu-0005mO-Kq for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Oct 2014 21:00:26 +0100 Original-Received: from localhost ([::1]:48832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjZPu-0000F9-Bh for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Oct 2014 16:00:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjZPi-0000Eq-2k for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 16:00:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjZPZ-0006Zv-0a for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 16:00:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjZPY-0006YP-U4 for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 16:00:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XjZPY-0003Yu-2w for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 16:00:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Rapha=C3=ABl?= Droz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Oct 2014 20:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18890 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.141461276313605 (code B ref -1); Wed, 29 Oct 2014 20:00:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Oct 2014 19:59:23 +0000 Original-Received: from localhost ([127.0.0.1]:39369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjZOs-0003XK-2N for submit@debbugs.gnu.org; Wed, 29 Oct 2014 15:59:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42627) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjZ8Z-000372-E1 for submit@debbugs.gnu.org; Wed, 29 Oct 2014 15:42:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjZ8L-00010C-2i for submit@debbugs.gnu.org; Wed, 29 Oct 2014 15:42:26 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjZ8L-0000zt-0C for submit@debbugs.gnu.org; Wed, 29 Oct 2014 15:42:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjZ8B-0003dQ-TC for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 15:42:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjZ82-0000ey-PC for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 15:42:07 -0400 Original-Received: from mail-qc0-x232.google.com ([2607:f8b0:400d:c01::232]:42399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjZ82-0000cV-JW for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 15:41:58 -0400 Original-Received: by mail-qc0-f178.google.com with SMTP id b13so3287451qcw.23 for ; 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) Original-Received: from localhost ([181.22.143.52]) by mx.google.com with ESMTPSA id s95sm4929872qgs.12.2014.10.29.12.41.55 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 29 Oct 2014 12:41:56 -0700 (PDT) Content-Disposition: inline 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-Mailman-Approved-At: Wed, 29 Oct 2014 15:59:20 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95269 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)