From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.bugs Subject: bug#20484: bug#20202: Considered Harmful 73d213: 'Comint, term, and compile new set Emacs' Date: Thu, 07 Apr 2016 22:42:40 +0100 Message-ID: <87a8l5t7sf.fsf@russet.org.uk> References: <87oa9otixb.fsf@russet.org.uk> <5703E15B.7080601@cs.ucla.edu> <87k2kcovt8.fsf@russet.org.uk> <5704233B.4020103@cs.ucla.edu> <8737qzso88.fsf@russet.org.uk> <57045765.4000309@cs.ucla.edu> <87r3ei8vz9.fsf@russet.org.uk> <5705B246.10201@cs.ucla.edu> <5706764D.2010708@cs.ucla.edu> <282e74a937853505fddfea446c9bc46e.squirrel@cloud103.planethippo.com> <57067BF6.6000700@cs.ucla.edu> <4355cfa8cbbd947770537a9006732db0.squirrel@cloud103.planethippo.com> <57068A18.40207@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1460065474 11300 80.91.229.3 (7 Apr 2016 21:44:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Apr 2016 21:44:34 +0000 (UTC) Cc: 20202@debbugs.gnu.org, 20484@debbugs.gnu.org, monnier@iro.umontreal.ca To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 07 23:44:22 2016 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 1aoHit-0002Gz-PZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Apr 2016 23:44:20 +0200 Original-Received: from localhost ([::1]:52108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoHit-0002zp-9z for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Apr 2016 17:44:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoHhj-0000UA-Gw for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 17:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoHhe-0001eS-K3 for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 17:43:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoHhe-0001eB-HI for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 17:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aoHhe-0002M6-D6 for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 17:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: phillip.lord@russet.org.uk (Phillip Lord) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Apr 2016 21:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20484 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20484-submit@debbugs.gnu.org id=B20484.14600653699023 (code B ref 20484); Thu, 07 Apr 2016 21:43:02 +0000 Original-Received: (at 20484) by debbugs.gnu.org; 7 Apr 2016 21:42:49 +0000 Original-Received: from localhost ([127.0.0.1]:53271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoHhR-0002LR-3F for submit@debbugs.gnu.org; Thu, 07 Apr 2016 17:42:49 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:51192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoHhQ-0002LB-0Y; Thu, 07 Apr 2016 17:42:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From; bh=Kk2r1FXtKbg9mKfc2NPybTvCvCVkCXxYwDxtULg7DVM=; b=VU+VhNT1y+nJu4SGJrDcKKqenk A82Ex9J3I8Vdiid/mgJnhIyEV0TwJiO2xbkGn1J3hNOEB27b9ZjGvuVYddlDprIWxChQ43668SuNS 3LOw2VgmsmMfCYkUygnLwLVuw8ytX+F3kErsQpUj9YUKLWafN1IujpR2PHCGYR1/+zHe26p7Hlhzj vK/eDpLzUqGCW6LJbbYaozs0cl4SoJyTO/wYHgLa4oCb4/NE4U9Dv5GU9GP3GBE2xAya6wx6RqGvE e7RnGyJO0d2CH7eyR12oRBGN683VhAEEj4bq7uNDiv9FWOcjW8WWSrOa5hAM1Iy+56wkJqQfH65Jk vsPbXIDA==; Original-Received: from cpc1-benw10-2-0-cust373.gate.cable.virginm.net ([77.98.219.118]:59917 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1aoHhJ-0000Z6-9v; Thu, 07 Apr 2016 22:42:41 +0100 In-Reply-To: <57068A18.40207@cs.ucla.edu> (Paul Eggert's message of "Thu, 7 Apr 2016 09:26:00 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:116169 Archived-At: Paul Eggert writes: > On 04/07/2016 09:07 AM, Phillip Lord wrote: >> Well, I need to scope this. If the issue is tcsh and bash, then I will >> look at both. I cannot, of course, look at any arbitrary program which >> might be affected. > > I think we'd be OK if we work with the "common" shells. But that would include > zsh, whose current FAQ says the following: > > Probably the most reliable way of dealing with this is to look for > the environment variable `$EMACS', which is set to `t' in > Emacs' shell mode. Putting > > [[ $EMACS = t ]] && unsetopt zle > > in your .zshrc should be sufficient. > > So here it's not merely a matter of fixing zsh, it's also fixing all the > users' .zshrc files that are following this (obsolescent) advice. > > So far we've looked at three shells (bash, tcsh, zsh), and found compatibility > issues with all three. This is not a good sign. Incidentally, I have looked again at #20484. What ever it is that is supporting the directory tracking, it is not the EMACS=t behaviour of bash, since in ansi-term we have: (format "EMACS=%s (term:%s)" emacs-version term-protocol-version) This usage will happily not break cask, since it was never supported in the first place. On the other hand, directory tracking works just fine in M-x shell in both Emacs-25.0.91, and Emacs-25 head. So, the EMACS=t setting is not an issue there either. And, dir tracking is not an issue at all for M-x compile. This suggests a simple fix: restore beaab89, except for the bit dealing with ansi-term, which remains for the sake of future compatability. Both bug reports are fixed. Anyone launching cask (or the make files Eli Barzilay talked about in #20202) inside ansi-term may still have problems. ansi-term is already exceptional, note, because it does not obey the "don't fiddle with EMACS if EMACS is already set" semantics. Phil