From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ingo Lohmar Newsgroups: gmane.emacs.bugs Subject: bug#22785: 24.5; comint/shell modes should be merged with term mode Date: Tue, 23 Feb 2016 22:05:18 +0100 Message-ID: <87si0ji1dd.fsf@acer.localhost.com> References: <56CCC20A.4090804@bothner.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456261582 19449 80.91.229.3 (23 Feb 2016 21:06:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 21:06:22 +0000 (UTC) To: Per Bothner , 22785@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 22:06: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 1aYK9p-0004ly-Lg for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 22:06:09 +0100 Original-Received: from localhost ([::1]:59872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYK9o-00041Z-T1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 16:06:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYK9l-00041K-ER for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 16:06:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYK9i-0007nw-K6 for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 16:06:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYK9i-0007nX-GS for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 16:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYK9i-0001rX-9Z for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 16:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ingo Lohmar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Feb 2016 21:06: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.14562615277120 (code B ref 22785); Tue, 23 Feb 2016 21:06:02 +0000 Original-Received: (at 22785) by debbugs.gnu.org; 23 Feb 2016 21:05:27 +0000 Original-Received: from localhost ([127.0.0.1]:41715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYK99-0001qm-L4 for submit@debbugs.gnu.org; Tue, 23 Feb 2016 16:05:27 -0500 Original-Received: from mail-wm0-f53.google.com ([74.125.82.53]:35726) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYK98-0001qX-ID for 22785@debbugs.gnu.org; Tue, 23 Feb 2016 16:05:26 -0500 Original-Received: by mail-wm0-f53.google.com with SMTP id c200so240619910wme.0 for <22785@debbugs.gnu.org>; Tue, 23 Feb 2016 13:05:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; bh=9wZl+dhdVIqD+762hR7fM/fVg0rXFrWF7ehloJtLlsY=; b=l2+isT3jxbSfL+vp12iXbr8bdasoXyoJA4uOMd+dcLWA4SnnjvUDb00hI58nmhaJB1 XAs9SM+dEjogcwZ714vfA3B5d7QOJf1KkEe6xhZgJk8A7RmcwH3lRUNOuu9k7RM4nJnG jGdgjJX95Zl1J+4cJFLHM0GRHS+GtPOIwSK7J1QtG+RJHNGXpiIAIBSJNVtHgLR1sHff qZ0IYg7kRJrHPLAfgLLM4Skp0mZAFJ4G07tApyDhwq/HwNP31DAw4GmlDOAbO3WQhISv ydK0RmYlY+69HwCXIKPzrzMk7KnL4nXvtRRGxadCb/vBbsYlxD7GjTVqgiJQKyHwqTuA pTwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=9wZl+dhdVIqD+762hR7fM/fVg0rXFrWF7ehloJtLlsY=; b=INEJXmfWrI4iHpwsZHAoN6qvqn02L+W5LkpwpzWjuzjLmHRko9Hv/W5itABbHHz3s6 Z/yILAqFFmz04qO4EHgKce3XrJSJ3ME+QsPpenOT3Yvk6Zi6APXSV5p2G/FB/l0x5ADa 1J92wUKTPg35gKh5PT6rRu7ZdBuQ+3MTqO8b/W8kqSAMD86lm/awZvxJolRbnseuyXry t2iILLHvu5BglUnkZO6jumegbJAThq32Aq5iEGbWVokoqZDw7EkdSmuArB/khyNtJnxz HPsD6Sa+/nlGm2DX/KwHIKuRQGsWap5pkgiQa27AKKURXc2o244qw66Sfw0LeLOqsUjT Cu9g== X-Gm-Message-State: AG10YOQWwIZ6nEQg912x92zmol8+3W5r0jMF2cYVW7/bFzO/LpAd4kQGnKrdHzO0jHgBhQ== X-Received: by 10.194.113.38 with SMTP id iv6mr35552635wjb.126.1456261520751; Tue, 23 Feb 2016 13:05:20 -0800 (PST) Original-Received: from localhost (xdsl-87-79-227-228.netcologne.de. [87.79.227.228]) by smtp.gmail.com with ESMTPSA id w66sm188215wmd.2.2016.02.23.13.05.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Feb 2016 13:05:19 -0800 (PST) In-Reply-To: <56CCC20A.4090804@bothner.com> User-Agent: Notmuch/0.20.2+113~g6332e6e (http://notmuchmail.org) Emacs/25.0.90.1 (x86_64-pc-linux-gnu) 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:113613 Archived-At: On Tue, Feb 23 2016 12:33 (-0800), Per Bothner wrote: > The "line" submode of term mode duplicates much of the functionality > of comint mode. When I wrote term mode, my hope was that it would > subsume comint mode, or that comint mode would be built on top of > term mode. That never happened - so far. > > 'shell mode' should basically be the same as 'term' mode, except > that shell mode starts of in line-editing mode, while term mode > starts up in character mode. > > There are obvious advantages to merging these modes. One is > we have ansi escape sequence handling in a single place. > Another is that you can run console applications from shell mode. To me, that seems to be a bad idea. They are two different modes precisely *because* they are quite different. If you want to run console applications, why would you use shell-mode at all? I dumped any use of term.el because I could not control its complexities, no matter what overrides, patches and advices I used. I have not looked back after using shell-mode where it's useful instead, and not running console applications anymore. Term is *significantly* more complex than shell (175k vs 54k), and does a lot more things (for better or worse). Maybe factoring out the ANSI sequence parsing is what you really want?