From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: misbehavior in shell window with ksh Date: Tue, 2 May 2017 22:03:17 +0900 (JST) Message-ID: References: <18024.1493652553@alto> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Trace: blaine.gmane.org 1493730242 14516 195.159.176.226 (2 May 2017 13:04:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 2 May 2017 13:04:02 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: Eli Zaretskii , Stephen Berman , Emacs developers To: Mike Kupfer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 02 15:03:52 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5XT6-0003XN-5q for ged-emacs-devel@m.gmane.org; Tue, 02 May 2017 15:03:52 +0200 Original-Received: from localhost ([::1]:58796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5XTB-0002PH-Uk for ged-emacs-devel@m.gmane.org; Tue, 02 May 2017 09:03:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5XSe-0002PA-Ki for emacs-devel@gnu.org; Tue, 02 May 2017 09:03:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5XSd-0004cF-PJ for emacs-devel@gnu.org; Tue, 02 May 2017 09:03:24 -0400 Original-Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:35345) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d5XSc-0004be-Cy; Tue, 02 May 2017 09:03:22 -0400 Original-Received: by mail-pg0-x243.google.com with SMTP id i63so2660973pgd.2; Tue, 02 May 2017 06:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=xx+cBsqeKWyTFMuFuTH2mh2KMkitRBlfn95VfFOZOuc=; b=ZGocPXvNUBWmmYpPeaUXhsZqpbR9L7+g4qTkYdJKLskBl/ilAWWoJ2xW+oxLxUm+q+ 6uOUgBWOqXPPvfMvxDl0pJhPE2+K94cfQxgg9hMSjDi+j/jyKn1bTHgx4HpMpihreBUe MM7J99SDvPbQtc3EHZk6rQAXZV+lf/FZTMOqSZftbo2QVZY5NUBavTNcfQGqW7BTOhVA W8pgb7cYXQWUMMnn7IvqbujgfshgfCSo7BAWwoP2UAKj4AlLgK+QAj3wwbjLwpkrMpr2 6pHib90PInLBOk6nRKra+0/MbC4ergcdsjWIMBld8eeac1ScBk1JOL4NWGdGrXxKW81K Y1dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=xx+cBsqeKWyTFMuFuTH2mh2KMkitRBlfn95VfFOZOuc=; b=XUD4plUj/ZCVn7SUCDtG6/mnlcS9ObYai8p+BtTsmBa2QtDOzWOd47r3PopPS1ktTe G+yud4+NdSp5H71MEwUPSWcxAAXUX/fMtGO/7CEYDtdtR2myMb/RBR0BxE8s751vDZJn UEyDWVuHe6xEOPlOOYjINyozmQjV0Oy2SWySwKp2plSdYU8hwJqfunePmRf3uiDxh47x u5P7/3WvOcwKVP9cBJl5rlIEwWphnTearR7GP2VQmWOAlOvTbfVreh8l4z0wEjHrBidm A8joxB2NRhrwGtD4UDd0mwC0kNUiwzJzqXZl7qdhEMLVxwuEqfpGos0ZPqHBjUf2RJoA V/CA== X-Gm-Message-State: AN3rC/43LBqQ6DR04Y+bPFLDe+05LyuPQs1JLtM3yH6NGNj+tPrE2lXT maxBesJamzyOUw== X-Received: by 10.84.218.15 with SMTP id q15mr20439139pli.141.1493730201135; Tue, 02 May 2017 06:03:21 -0700 (PDT) Original-Received: from calancha-pc ([240f:6e:ebf5:1:5263:364f:45c9:b038]) by smtp.gmail.com with ESMTPSA id k69sm27690072pfb.43.2017.05.02.06.03.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 May 2017 06:03:19 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <18024.1493652553@alto> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::243 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214516 Archived-At: On Mon, 1 May 2017, Mike Kupfer wrote: > Stephen Berman wrote: >> Could this be related to some of your shell customizations? > > Having EDITOR set to emacs (or emacsclient) seems to be required for me > to reproduce the problem. > > $ export EDITOR=emacs > $ emacs -Q -nw > => problem reproduces > > $ emacs -Q -nw (w/o EDITOR set) > M-x shell RET > export EDITOR=emacs RET > ksh RET > => problem reproduces > > $ export EDITOR=emacs > $ emacs -Q -nw > M-x shell RET > unset EDITOR RET > ksh RET > => problem does not reproduce Thanks. I can reproduce the issue if i set EDITOR as you do. *) Originally, with EDITOR set to '/home/calancha/bin/edit' i don't see the bug. M-x emacs -Q RET M-x shell RET $ ksh RET $ echo $EDITOR /home/calancha/bin/edit $ export EDITOR=$EDITOR ; No issue. **) If i set EDITOR equal to some unexistant file like 'foo', i don't see the bug (but it depends of the name). M-x emacs -Q RET M-x shell RET $ ksh RET $ [ "" != "$(which emasc)" ] || [ "" != "$(which foo)" ] || echo "Both unset" Both unset $ export EDITOR=foo ; no issue $ export EDITOR=emasc ; no issue ***) If i set EDITOR to some unexistant file containing some keywords, then i might the issue: M-x emacs -Q RET M-x shell RET $ ksh RET $ [ "" != "$(which foo-vi)" ] || [ "" != "$(which foo-emacs)" ] || echo "Both unset" Both unset $ export EDITOR=foo-vi ; It shows the bug. $ export EDITOR=foo-emacs ; Same. ****) Once the bug appears, reseting EDITOR to the original value doesn't help. You must kill the buffer and call again: M-x shell. M-x emacs -Q RET M-x shell RET $ ksh RET $ EDITOR_ORIG=$EDITOR $ export EDITOR=foo-emacs ; It shows the bug. $ export EDITOR=$EDITOR_ORIG ; It doesn't help. Regards, Tino