From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Per Bothner Newsgroups: gmane.emacs.bugs Subject: bug#22785: 24.5; comint/shell modes should be merged with term mode Date: Wed, 24 Feb 2016 14:23:42 -0800 Message-ID: <56CE2D6E.2030800@bothner.com> References: <56CCC20A.4090804@bothner.com> <87si0ji1dd.fsf@acer.localhost.com> <56CCCE13.9010702@bothner.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1456352723 9615 80.91.229.3 (24 Feb 2016 22:25:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 22:25:23 +0000 (UTC) Cc: 22785@debbugs.gnu.org, Ingo Lohmar To: John Wiegley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 23:25:12 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 1aYhrr-00046O-E1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 23:25:11 +0100 Original-Received: from localhost ([::1]:38791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYhrq-0006A0-TC for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 17:25:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYhrl-00067J-Q4 for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 17:25:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYhri-0007im-Hx for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 17:25:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYhri-0007ih-E5 for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 17:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYhri-0005iw-9Q for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 17:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Per Bothner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Feb 2016 22:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22785 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22785-submit@debbugs.gnu.org id=B22785.145635264321921 (code B ref 22785); Wed, 24 Feb 2016 22:25:02 +0000 Original-Received: (at 22785) by debbugs.gnu.org; 24 Feb 2016 22:24:03 +0000 Original-Received: from localhost ([127.0.0.1]:44312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYhqk-0005hV-UL for submit@debbugs.gnu.org; Wed, 24 Feb 2016 17:24:03 -0500 Original-Received: from aibo.runbox.com ([91.220.196.211]:46595) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYhqj-0005h1-0m for 22785@debbugs.gnu.org; Wed, 24 Feb 2016 17:24:01 -0500 Original-Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1aYhqh-0007us-I0; Wed, 24 Feb 2016 23:23:59 +0100 Original-Received: from 70-36-239-75.dsl.dynamic.fusionbroadband.com ([70.36.239.75] helo=toshie.bothner.com) by mailfront12.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1aYhqU-0002v3-Fv; Wed, 24 Feb 2016 23:23:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 In-Reply-To: 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113755 Archived-At: On 02/24/2016 10:20 AM, John Wiegley wrote: >>>>>> Per Bothner writes: > >> To clarify: The goal is to essentially merge term.el and comint.el. >> Comint.el might still exist, but only as a think veneer on term.el. shell >> might or might not existing as a separate mode, but it would at most be a >> thin veneer on top of term mode. > > I'm not sure what to think about this. Term is a bit of a complex beast, it is > true, and it has far fewer users than comint. What is the motivation exactly? > Would any mode other than shell interaction benefit from this merge? While term is a bit of a complex beast, so is shell+comint mode. Throw in ansi-color and it's more complex than term. The existence of ansi-color shows there is a demand for at least handling ansi escape sequences for colors and highlighting. And if you're going to handle those you might as well also support cursor movement and finish the job. Some inferior-process modes might prefer to make use of the inferior's readline, at least as an option. Sometimes a repl may want to do more than read/write times. It may want to switch colors, "print" pictures (as supported by Racket/Geiser), ask for a password or a single-letter key. Of course all of this can be done with comint, but it's easier if one can use the same logic and protocols whether in a comint mode, in term mode, or in a non-emacs terminal emulator. Right now there is a lot of code duplication in Emacs. term.el duplicates much of comint.el. ansi-color.el duplicates term.el. Etc. It would be better to clean this up. -- --Per Bothner per@bothner.com http://per.bothner.com/