From unknown Mon Jun 23 23:53:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19812: 24.4; suggest `shell-mode' not interactive Resent-From: Kevin Ryde Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Feb 2015 04:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19812 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 19812@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.142336880329747 (code B ref -1); Sun, 08 Feb 2015 04:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Feb 2015 04:13:23 +0000 Received: from localhost ([127.0.0.1]:37026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKJFK-0007jj-Va for submit@debbugs.gnu.org; Sat, 07 Feb 2015 23:13:23 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46196) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKJFI-0007jT-LK for submit@debbugs.gnu.org; Sat, 07 Feb 2015 23:13:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKJFC-0008Ij-5m for submit@debbugs.gnu.org; Sat, 07 Feb 2015 23:13:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKJFC-0008Id-39 for submit@debbugs.gnu.org; Sat, 07 Feb 2015 23:13:14 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKJFB-0005Fv-2S for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 23:13:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKJF7-0008IP-S4 for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 23:13:13 -0500 Received: from nm48.bullet.mail.bf1.yahoo.com ([216.109.114.64]:37684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKJF7-0008IJ-OJ for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 23:13:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1423368789; bh=bBAvACeLxcr47O6W/0Q0/5XWrEeKIpmlTPPXTgZZxnE=; h=From:To:Subject:Date:From:Subject; b=Q3LfOZRwmpG46ddqFC9cPaKGZqez72OTvykBArHigavw1hm231UtqIJ2GRZmtdNgMR3W0OQ8564H7phWcSNbjG3OuGnuj1lpf1k6EQIbmwkH+dAOME69MFLnIF/RtydwmqtYeBXW8k9bqCXcRW1uWBde3qzlpY3+ls08dgtrwp1mJLlzQDnasphhDCpIHN++6jcoaD8zQbKdGqyKOEXaK1thxuoFN/7645GuBOhbmZH/RfIiaJoLW+Dc0RB7n5LPkN285S4l2roYSKs3TMg/EdPuXAeek0TXomxAYCvN6ToEowsHVtOk+yDc0RTFXs7rwc+ymR0O3U5ozDBEm6IIzQ== Received: from [98.139.215.141] by nm48.bullet.mail.bf1.yahoo.com with NNFMP; 08 Feb 2015 04:13:09 -0000 Received: from [98.139.213.13] by tm12.bullet.mail.bf1.yahoo.com with NNFMP; 08 Feb 2015 04:13:08 -0000 Received: from [127.0.0.1] by smtp113.mail.bf1.yahoo.com with NNFMP; 08 Feb 2015 04:13:08 -0000 X-Yahoo-Newman-Id: 972327.18048.bm@smtp113.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: S2WPe9AVM1mCaxEPz6L2WVkd37G8RVltdYdhC5dlTW2nWKw nve3NAwFCtP2rgdPruYvslKtOIwK.CORb3DHeDIAN..k9JlbS73BBkHJoZp1 u9rGqsgtqMabzPdEktpP8jBYlXRH.7VJ1cdpk2yuG0mzqSqVHYnyvgRJjMlI swAphygaCZIAicZ7CkRNg_xfogG_P481ZPjOqDjNCqKVE363hCFVXTPqqJ0k 5e99eQleDXVScvx.5eZL0sXO0MYXWCAn7aYc5evf5Zsvau5vvX44TT3nZ0d5 k2MlXTN5.ng5kuV4Xldmon4HK0sIVniGb1eUP3pQiAg2qqY.Bo2y8.czXu_n XbiTpbcagYQ_3oR.F0TPvaxGlaZffzUCglw81KQXDxki7sDc7EXldgsXfQI1 sDniD93ra8XI3SRHwnyd8h9K8QUsbWZ45iig6Z1TGOeAdiTo3cmIbHxVgQzW 0U9r8uMafDMgreXa30iVdvGPwnVM0paRINs8C3wN37XPRv2bp3L0f5RC6sFe Pyqk0z9raQmptAWnQXF3KECOJXy8XfBnhmcNX8gW6hlErJznAR6vAC583PYV y_w7hCwk89RCUt2Ln.A-- X-Yahoo-SMTP: U8NKAo6swBAxDIMUovTitGGHebxdYQBZ5A-- From: Kevin Ryde Date: Sun, 08 Feb 2015 15:07:39 +1100 Message-ID: <87bnl5qc50.fsf@blah.blah> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Severity: wishlist The `shell-mode' function is interactive, but I think perhaps it should not be since it is not designed for use as M-x shell-mode in an arbitrary buffer, but only after the `shell' function makes various setups. I struck this when a brain fade confused me between shell-command, shell-mode and shell and I did M-x shell-mode in a file buffer and nearly made a big mess. The problem is only seen when shell.el has been loaded (for any reason) since shell-mode is not autoloaded. Similar could apply to other special modes, maybe even to most modes derived from `special-mode'. In GNU Emacs 24.4.1 (i586-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2014-12-20 on brahms, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11602901 Configured using: `configure --build i586-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/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp --build i586-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/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars --without-gconf --without-gsettings 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-z,relro' From unknown Mon Jun 23 23:53:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19812: 24.4; suggest `shell-mode' not interactive Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Aug 2019 19:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19812 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Kevin Ryde Cc: 19812@debbugs.gnu.org Received: via spool by 19812-submit@debbugs.gnu.org id=B19812.15647755467879 (code B ref 19812); Fri, 02 Aug 2019 19:53:02 +0000 Received: (at 19812) by debbugs.gnu.org; 2 Aug 2019 19:52:26 +0000 Received: from localhost ([127.0.0.1]:57778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htdbF-000231-QG for submit@debbugs.gnu.org; Fri, 02 Aug 2019 15:52:26 -0400 Received: from quimby.gnus.org ([80.91.231.51]:34930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htdbD-00022o-4g for 19812@debbugs.gnu.org; Fri, 02 Aug 2019 15:52:23 -0400 Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1htdb8-0005Sd-MX; Fri, 02 Aug 2019 21:52:21 +0200 From: Lars Ingebrigtsen References: <87bnl5qc50.fsf@blah.blah> Date: Fri, 02 Aug 2019 21:52:17 +0200 In-Reply-To: <87bnl5qc50.fsf@blah.blah> (Kevin Ryde's message of "Sun, 08 Feb 2015 15:07:39 +1100") Message-ID: <87v9vfmjke.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Kevin Ryde writes: > The `shell-mode' function is interactive, but I think perhaps it should > not be since it is not designed for use as M-x shell-mode in an > arbitrary buffer, but only after the `shell' function make [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Kevin Ryde writes: > The `shell-mode' function is interactive, but I think perhaps it should > not be since it is not designed for use as M-x shell-mode in an > arbitrary buffer, but only after the `shell' function makes various > setups. > > I struck this when a brain fade confused me between shell-command, > shell-mode and shell and I did M-x shell-mode in a file buffer and > nearly made a big mess. The problem is only seen when shell.el has been > loaded (for any reason) since shell-mode is not autoloaded. > > Similar could apply to other special modes, maybe even to most modes > derived from `special-mode'. As you point out, there's a lot of modes that only make sense in certain limited contexts, and having them be interactive isn't very helpful. I'm not sure it's that much of a problem in general, but it is a particular an issue with `shell-mode', since I'd guess that a lot of people type that instead of `M-x shell-script-mode' when starting to write new shell scripts. The following fixes this particular issue. Would something like this be welcome? A different fix would be to extend defined-derived-mode to take a :noninteractive flag to just not include the `(interactive)' in the defun. It looks fairly straightforward to implement -- is that a better idea, perhaps? (That is, if we want to fix this at all.) diff --git a/lisp/shell.el b/lisp/shell.el index 2914d1d2c8..ba7515e7ba 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -553,6 +553,8 @@ shell-mode `comint-scroll-to-bottom-on-input' and `comint-scroll-to-bottom-on-output' control whether input and output cause the window to scroll to the end of the buffer." + (when (called-interactively-p 'any) + (error "Can't be called interactively; did you mean `shell-script-mode' instead?")) (setq comint-prompt-regexp shell-prompt-pattern) (shell-completion-vars) (setq-local paragraph-separate "\\'") -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 02 15:52:30 2019 Received: (at control) by debbugs.gnu.org; 2 Aug 2019 19:52:30 +0000 Received: from localhost ([127.0.0.1]:57781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htdbK-00023I-5Q for submit@debbugs.gnu.org; Fri, 02 Aug 2019 15:52:30 -0400 Received: from quimby.gnus.org ([80.91.231.51]:34944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htdbI-00023A-7x for control@debbugs.gnu.org; Fri, 02 Aug 2019 15:52:28 -0400 Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1htdbF-0005Sl-Ip for control@debbugs.gnu.org; Fri, 02 Aug 2019 21:52:27 +0200 Date: Fri, 02 Aug 2019 21:52:24 +0200 Message-Id: <87tvazmjk7.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #19812 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 19812 + patch quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 19812 + patch quit From unknown Mon Jun 23 23:53:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19812: 24.4; suggest `shell-mode' not interactive Resent-From: Kevin Ryde Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Aug 2019 23:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19812 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 19812@debbugs.gnu.org Received: via spool by 19812-submit@debbugs.gnu.org id=B19812.1564790165677 (code B ref 19812); Fri, 02 Aug 2019 23:57:02 +0000 Received: (at 19812) by debbugs.gnu.org; 2 Aug 2019 23:56:05 +0000 Received: from localhost ([127.0.0.1]:57979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hthP3-0000Aq-DN for submit@debbugs.gnu.org; Fri, 02 Aug 2019 19:56:05 -0400 Received: from sonic304-25.consmr.mail.gq1.yahoo.com ([98.137.68.206]:43761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hthOx-0000A5-7A for 19812@debbugs.gnu.org; Fri, 02 Aug 2019 19:56:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1564790151; bh=eOuZulte+aW6YOIjsEwWv+A/wHE2x4qQULocR0dQPbI=; h=From:To:Subject:References:Date:In-Reply-To:From:Subject; b=hVdaYs0rDDYbJZjOrvEXFdQpOq9nvQfl6CtyVmrRAyzgPR7gofq8Wq5L2Lae5GPeRS41dsfMmphxuYQOrDN9EqX6BW+x7rqGYnKoqTUT8AI97KFGWtjeHGbsCDgiJOGRFTyhFEDUA7sObZK1hFj4xHVvaE/ZeKN2ZNKBRwLB9hgtK8kn5MOZyODgjK6O5dwhFhdK51LGJ/Wmdb990mw5IeAHxyZtjVE77nZEFBSC1P9GWjBnPDlokYAjuTaIOY6PyyRB9CYD6B1fGMM3+bJSX19A2D+43l0rw75HbLSRtB4dDx9DzOkITqUPCTccixojuS027NPjG2r2ECn/KS09og== X-YMail-OSG: .pwGfgQVM1m4wzNFp8k7N4dFGPvz3pHD_HLBVikLShnXA8JPJnzxzdNO_Ohz0WU HcrUuIAkG_LyTjcl5AMk4Smdax2QjpMQAddquYxfB83qtibMtVanF2u07cUZ2yS3_21Ehj6KHgAT 1_RIRc3jaz1d.6zTu.ElYCLLAfiAGR7S43cD_t.FA3gEvbJHniRRo1GxywfEXPY3ac5pQy2DbUFO 3s7s5NCazui8QIazS7uXH71ThiLcGFvcfO8_jKJtN9sAWMICebI1428jRpTWCnwC72NGoWLpApGj juzhE6YRIUIcTln7kA_0G4z.w_fGO9idg.XNV3wOXdDSDgmJiHvXtKE5T._OwPUq2NW2HB7CCBo7 5ozHvW_ljhUk83fqS8Hwa8ZFHBU7cjsMhXf1eivQ9AYldsjioN6AKFeaSKwFPdVMzvOvpa3b8gk2 nmd1pDv.ETYf54rMndkwtNjz8zJkN5Zlv8FRcq.S0L4W7fwrq8EaUOno1KBgxG709Kotq3qQaUjN jcwVSqAGIflJcM3QCv7_idxBGLpcoKKqjt5PEeN.iPSHzlRnUOexLOxq0UtpAe_09XAVjwzuPsrw ymEVolI_AfJKg6Kuegq1X_CWPbVoRd7YKjP8MrUpyXFVmp5zFzMv4V3i.bMWf2ItqxKOHcgQ9gSc 72bhAnAl0gMak0y1J35zwpIekVrWcGVbwR.oguLOhZ_sxwBZDoF77Pj3YAHYVdi4uklDpLGivC_M 5EsCAQwAfdphoziWUvpuMuqkpi7_DxJSKUTQPiIDaeJD3cnOg0OUsdQKokkAVHSD80xih1tnzAgI O12fQgVChngVhNpDb1oSkOqjT50eM2bkFrIeHN6RFrAr4hkjLxeauZCBwhfFalFrIz05B.s0WcPT N5wlFTEDjnYKfLTUtssEZiE5q1SrlRAxSk9l.q7cUzupFSXlG_Nl7F3EWZjlzl0P_6Pd49ZAZcOY j3toizS3AxRKeGO1Ng0l5tS14oAU4cgUoB2.dCBOu8DQ6o1UGu8yLCAUjZIOG6jeHowUSKtqtw9b PDthCXwddVr3vBo2mLNjWSrzsBbgXu0dBPhghrwPCFZ3vXRokKMU4YCUL4WcEA9Jf1Dfos7EUyu7 2OrdrWmeC878.M_S6rgmfSY2.iHPStjURA4bOXoyK2A4zPJG.XuFfcJv1Ugle5dmvBOry_sf38.B ebPR14625vz38gzHBHvjQZ284jlrjyEuQjNFyI0vu.aUVF6PhJNZV7Sq6kyYSjQLrtNwR143E Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Fri, 2 Aug 2019 23:55:51 +0000 Received: by smtp421.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID afb636db1bd5d07a26c770584dd75841; Fri, 02 Aug 2019 23:55:46 +0000 (UTC) From: Kevin Ryde References: <87bnl5qc50.fsf@blah.blah> <87v9vfmjke.fsf@mouse.gnus.org> Date: Sat, 03 Aug 2019 09:54:51 +1000 In-Reply-To: <87v9vfmjke.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Fri, 02 Aug 2019 21:52:17 +0200") Message-ID: <87v9vf2kdw.fsf@blah.blah> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > > A different fix would be to extend defined-derived-mode to take a > :noninteractive flag to just not include the `(interactive)' in the > defun. It looks fairly straightforward to implement -- is that a better > idea, perhaps? Maybe :interactive, just to write it in the positive sense. The default must be t for compatibility. A couple of words in the docs could note that special modes usually should be nil. Perhaps special-mode itself would be the second customer for this. I presume special-mode is not intended for interactive use, and it doesn't do much helpful (set buffer-read-only). From unknown Mon Jun 23 23:53:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19812: 24.4; suggest `shell-mode' not interactive Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Aug 2019 07:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19812 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: user42_kevin@yahoo.com.au, 19812@debbugs.gnu.org Received: via spool by 19812-submit@debbugs.gnu.org id=B19812.156481697829066 (code B ref 19812); Sat, 03 Aug 2019 07:23:02 +0000 Received: (at 19812) by debbugs.gnu.org; 3 Aug 2019 07:22:58 +0000 Received: from localhost ([127.0.0.1]:58250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htoNW-0007Yh-0Y for submit@debbugs.gnu.org; Sat, 03 Aug 2019 03:22:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htoNU-0007YV-4a for 19812@debbugs.gnu.org; Sat, 03 Aug 2019 03:22:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1htoNM-0000Rh-He; Sat, 03 Aug 2019 03:22:49 -0400 Received: from [176.228.60.248] (port=1224 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1htoNL-00036Q-IR; Sat, 03 Aug 2019 03:22:48 -0400 Date: Sat, 03 Aug 2019 10:22:44 +0300 Message-Id: <83tvayemrf.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <87v9vfmjke.fsf@mouse.gnus.org> (message from Lars Ingebrigtsen on Fri, 02 Aug 2019 21:52:17 +0200) References: <87bnl5qc50.fsf@blah.blah> <87v9vfmjke.fsf@mouse.gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Fri, 02 Aug 2019 21:52:17 +0200 > Cc: 19812@debbugs.gnu.org > > As you point out, there's a lot of modes that only make sense in certain > limited contexts, and having them be interactive isn't very helpful. > I'm not sure it's that much of a problem in general, but it is a > particular an issue with `shell-mode', since I'd guess that a lot of > people type that instead of `M-x shell-script-mode' when starting to > write new shell scripts. > > The following fixes this particular issue. Would something like this be > welcome? Are there no valid use cases where invoking shell-mode interactively makes sense? If there are such use cases, we cannot disallow them now. From unknown Mon Jun 23 23:53:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19812: 24.4; suggest `shell-mode' not interactive Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Aug 2019 11:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19812 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: user42_kevin@yahoo.com.au, 19812@debbugs.gnu.org Received: via spool by 19812-submit@debbugs.gnu.org id=B19812.156483051518663 (code B ref 19812); Sat, 03 Aug 2019 11:09:01 +0000 Received: (at 19812) by debbugs.gnu.org; 3 Aug 2019 11:08:35 +0000 Received: from localhost ([127.0.0.1]:58339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htrtr-0004qx-40 for submit@debbugs.gnu.org; Sat, 03 Aug 2019 07:08:35 -0400 Received: from quimby.gnus.org ([80.91.231.51]:45670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htrtp-0004qr-SN for 19812@debbugs.gnu.org; Sat, 03 Aug 2019 07:08:34 -0400 Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1htrtj-0003iR-Sx; Sat, 03 Aug 2019 13:08:30 +0200 From: Lars Ingebrigtsen References: <87bnl5qc50.fsf@blah.blah> <87v9vfmjke.fsf@mouse.gnus.org> <83tvayemrf.fsf@gnu.org> Date: Sat, 03 Aug 2019 13:08:27 +0200 In-Reply-To: <83tvayemrf.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Aug 2019 10:22:44 +0300") Message-ID: <87ef22ld5g.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > Are there no valid use cases where invoking shell-mode interactively > makes sense? If there are such use cases, we cannot disallow them > now. I can't think of any cases where you'd call `shell-mode' interactively. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > Are there no valid use cases where invoking shell-mode interactively > makes sense? If there are such use cases, we cannot disallow them > now. I can't think of any cases where you'd call `shell-mode' interactively. Hm. Perhaps if you've started a comint buffer using another mode and then wants to switch to `shell-mode'? But I doubt that that's a thing. Perhaps somebody else will chime in to say whether they've ever said `M-x shell-mode' and it wasn't a mistake. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Mon Jun 23 23:53:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19812: 24.4; suggest `shell-mode' not interactive Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Aug 2019 11:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19812 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Kevin Ryde Cc: 19812@debbugs.gnu.org Received: via spool by 19812-submit@debbugs.gnu.org id=B19812.156483071018971 (code B ref 19812); Sat, 03 Aug 2019 11:12:02 +0000 Received: (at 19812) by debbugs.gnu.org; 3 Aug 2019 11:11:50 +0000 Received: from localhost ([127.0.0.1]:58348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htrwx-0004vt-U6 for submit@debbugs.gnu.org; Sat, 03 Aug 2019 07:11:50 -0400 Received: from quimby.gnus.org ([80.91.231.51]:45710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htrwu-0004vj-NV for 19812@debbugs.gnu.org; Sat, 03 Aug 2019 07:11:46 -0400 Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1htrwr-0003kn-Oj; Sat, 03 Aug 2019 13:11:44 +0200 From: Lars Ingebrigtsen References: <87bnl5qc50.fsf@blah.blah> <87v9vfmjke.fsf@mouse.gnus.org> <87v9vf2kdw.fsf@blah.blah> Date: Sat, 03 Aug 2019 13:11:40 +0200 In-Reply-To: <87v9vf2kdw.fsf@blah.blah> (Kevin Ryde's message of "Sat, 03 Aug 2019 09:54:51 +1000") Message-ID: <87a7cqld03.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Kevin Ryde writes: > Maybe :interactive, just to write it in the positive sense. The default > must be t for compatibility. That makes sense, and is easy to implement in this case. We usually treat the absence of a parameter the same as nil (since Emacs Lisp isn't Common Lisp), but we don't have to do that here. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Kevin Ryde writes: > Maybe :interactive, just to write it in the positive sense. The default > must be t for compatibility. That makes sense, and is easy to implement in this case. We usually treat the absence of a parameter the same as nil (since Emacs Lisp isn't Common Lisp), but we don't have to do that here. > A couple of words in the docs could note that special modes usually > should be nil. True, but I don't think we need to limit the interactivity here, though. When there's little chance of confusion, having the mode be interactive isn't that big a deal (and might be useful for somebody, sometime). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Mon Jun 23 23:53:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19812: 24.4; suggest `shell-mode' not interactive Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Aug 2019 19:51:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19812 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: user42_kevin@yahoo.com.au, Eli Zaretskii , 19812@debbugs.gnu.org Received: via spool by 19812-submit@debbugs.gnu.org id=B19812.156494823323779 (code B ref 19812); Sun, 04 Aug 2019 19:51:04 +0000 Received: (at 19812) by debbugs.gnu.org; 4 Aug 2019 19:50:33 +0000 Received: from localhost ([127.0.0.1]:34253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huMWW-0006BT-Of for submit@debbugs.gnu.org; Sun, 04 Aug 2019 15:50:32 -0400 Received: from bird.elm.relay.mailchannels.net ([23.83.212.17]:51827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huMWT-0006BJ-16 for 19812@debbugs.gnu.org; Sun, 04 Aug 2019 15:50:30 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id D8F9D50098F; Sun, 4 Aug 2019 19:50:27 +0000 (UTC) Received: from pdx1-sub0-mail-a13.g.dreamhost.com (100-96-11-214.trex.outbound.svc.cluster.local [100.96.11.214]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 59D6A500650; Sun, 4 Aug 2019 19:50:27 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a13.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.5); Sun, 04 Aug 2019 19:50:27 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Tangy-Skirt: 4e71aa5f355db901_1564948227650_4020540027 X-MC-Loop-Signature: 1564948227650:3275155773 X-MC-Ingress-Time: 1564948227650 Received: from pdx1-sub0-mail-a13.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTP id 2072D7FE67; Sun, 4 Aug 2019 12:50:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=yv5O6TfBh2uf3VEBK5rWPAeQ6Tg=; b= NiY8suVvVt/Zoi5BNPZ3vCmBjW67RtA52DOaQDGa3KQtmGVlik/eFTNH/wI4m7lB GjvrSs5HWv8EilV5OXWwQEeiEjGN86XJOyqlBGAHAHX4pVbraL99zIx/UVFSfVMT T5p2v0DuaCXZ5v3kwTzDqlB6iVDqEBnTt4Ggb4VSfbA= Received: from mail.jurta.org (m91-129-103-91.cust.tele2.ee [91.129.103.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTPSA id 6D5F57FE4A; Sun, 4 Aug 2019 12:50:18 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a13 From: Juri Linkov Organization: LINKOV.NET References: <87bnl5qc50.fsf@blah.blah> <87v9vfmjke.fsf@mouse.gnus.org> <83tvayemrf.fsf@gnu.org> <87ef22ld5g.fsf@mouse.gnus.org> Date: Sun, 04 Aug 2019 22:11:31 +0300 In-Reply-To: <87ef22ld5g.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Sat, 03 Aug 2019 13:08:27 +0200") Message-ID: <87o9142890.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddruddthedgudegfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrledunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtfedrledupdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheplhgrrhhsihesghhnuhhsrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Perhaps somebody else will chime in to say whether they've ever said > `M-x shell-mode' and it wasn't a mistake. :-) It might be useful to visit log files previously saved from shell buffers, like compilation-mode adds such local-variable prop-line: -*- mode: compilation -*- so compilation log saved to files could be visited later. But one problem with using -*- mode: shell -*- in files saved from previous shells is that it doesn't highlight prompts - thus it lacks a very important feature of shell-mode. From unknown Mon Jun 23 23:53:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19812: 24.4; suggest `shell-mode' not interactive Resent-From: Kevin Ryde Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Aug 2019 08:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19812 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 19812@debbugs.gnu.org Received: via spool by 19812-submit@debbugs.gnu.org id=B19812.156499538720168 (code B ref 19812); Mon, 05 Aug 2019 08:57:01 +0000 Received: (at 19812) by debbugs.gnu.org; 5 Aug 2019 08:56:27 +0000 Received: from localhost ([127.0.0.1]:34588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huYn4-0005FE-SF for submit@debbugs.gnu.org; Mon, 05 Aug 2019 04:56:27 -0400 Received: from sonic308-1.consmr.mail.bf2.yahoo.com ([74.6.130.40]:41935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huYmz-0005Ew-5J for 19812@debbugs.gnu.org; Mon, 05 Aug 2019 04:56:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1564995375; bh=zyhrqgF02RgSzit5o86RmstSqsrGQx0HU2by+jTQRgk=; h=From:To:Subject:References:Date:In-Reply-To:From:Subject; b=b8DOyweEOMWeimgbfVDZLYylX1EGJvA3j1mwHe5vaYdkIoWChLMNSV7HGUx3N7lHKxe49Lx7fanxVCfHjK1DamRYr/C8t13vN5++wiKPwDhRdud2DyJO2y0SdbjeuMVcK13WDbQOFxTXiMBGOfb5ZtA7/YgOwSA0aiIS1gwBTYsHpvr1uW4HXJGOGPZ+8aZ3/j2q1V5la3bwZ0nNdBl2wzm14crQbqVpOEbOZMljMeecslGe1Xp/K9wLZ4DmJ4nvtWXODQ7VX5feLvWP8hN5gglFCJVLHP7+dampMpkJi9Qxp/HAFFpI6LZSN+DSnbtDOSomR/J/T3VuseY5ge8sQw== X-YMail-OSG: BzBcxEkVM1mDfA0N4QWkHobaDZcE2J9E9WcU1tQBwtiNddsKJ5c.WsE2934VZKT qpJ_cqP08P8HZdQWO5SB3u4vYslEmTjXX1ds7ZTQoer32BVoq3AAZx_pMAmpH24V0IFCw9I6W8SH E.Wz6qarFk7gpPs06IKOj_lsJqE5FiQ_m8eWUsqizQd3HqOEp..HleyYxfq_oDjma5qya3_6DUC0 qAuswD4AYpXJk7ZHaRjPtaqPHF_FPKAjDFY.alQYqDtBuZ.4MJiuXhygd5E3jXQyuD9QWtO.c_BO zN0jGG7AI9pnsGEHfTJXBhwynRVdmwobY8JwAfmrD9deRA7FXYQtVhKyQ15I2lbRBE8nK7VFLDg5 c2j9yDjErokhoXB4wnw.0JltjbxhSoKiWzjiv2VXbcl74r9chnoUZy3BaeSvWluwKePip0Jv4I20 TQGGdM6j0QUpxzTvY9hmVx2j5outBvjwVQpC_jbrkQVJJnez0SXA90eJCZTJn7Xh25KEJkbHYjLe J7miPYrx8H7TOk1eQ1gzelSSlAJw55zBKeUtmdAi9Nu1O5Z8nbqgQpDvAHcAsXzn5TVwth3Nej_k 9xrzK2TCwwC.Kx39Td7uxZRK1FvB5hPQvBinXwqg3GfMoScKZ0npfsMVLtVFho5FfrBsUyPxC.za Idwv6tn3gLk.finpka_J4RW5Doz8lC8_YFYXCOKCK7duved6HgJxwcevNJhok8mqeTrwyRPt2vOE AisYPREtw52_6Gm53rihrkyuanQ.f1OphPCI4cni4Jbd7KMjMcIdo7PBAiTXsc2bAedfzTPy1hxK AfrZvnD7ep5K66458nmGBo2pqnwK2tRj._DjXso4uLiqSWFv.auryFE3irro55JTE5o0weM2YmKD A74W3T7r9GWLRnzIeiTOGYmN_eHhCdiiPPle1NWJslYUJW3kbBmNBPdbBUuaaMbP5FvAuBFv8C5E .fd0hzveXE6OmVXZ9oxOSWnum1NMZ8wobX90WOEVvwTpZRMdgA2FZ7UfnpNC_ogyxntvjuNQLp7F T1_FmZbXzcmlZLfo_lGTHpRLvi6RZRZhCLRBDTIHi.ywaKQR5IkiQLCmPtp2bRGWzCSw6Y_R8XCb IixZdxzUVSA8j5ezLmYT272tPvpeQ2.acnTYUBLsKst4TCZXVPjXaWFeZ2AC7lXOWd8aUre_IvKO k1jQSdC8sgCpMAbBOXy_fs2LGWs94Pdbf4d9hFVi07HCPKfwDuxLTjWmSgVvWg6XmK.tCAnuj590 - Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.bf2.yahoo.com with HTTP; Mon, 5 Aug 2019 08:56:15 +0000 Received: by smtp405.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 561cca0290d1f3a13f8d1f05ce850329; Mon, 05 Aug 2019 08:56:10 +0000 (UTC) From: Kevin Ryde References: <87bnl5qc50.fsf@blah.blah> <87v9vfmjke.fsf@mouse.gnus.org> <83tvayemrf.fsf@gnu.org> <87ef22ld5g.fsf@mouse.gnus.org> <87o9142890.fsf@mail.linkov.net> Date: Mon, 05 Aug 2019 18:54:47 +1000 In-Reply-To: <87o9142890.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 04 Aug 2019 22:11:31 +0300") Message-ID: <87d0hk2drc.fsf@blah.blah> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > > It might be useful to visit log files previously saved from shell buffers, > like compilation-mode adds such local-variable prop-line: > > -*- mode: compilation -*- I suppose the difference is compilation-mode does useful things when a compilation has finished, whereas shell-mode and similar would be more or less entirely for interaction. I've had file buffers in compilation-mode for stepping error lines in the way you say. The only thing I've been tricked by is accidentally "g" recompile which replaces the file text -- in a sensible way, but for me usually not what I meant to do :-). -- Monotremes oviparous, ovum meroblastic. -- Caldwell From unknown Mon Jun 23 23:53:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19812: 24.4; suggest `shell-mode' not interactive Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Aug 2019 22:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19812 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Kevin Ryde Cc: 19812@debbugs.gnu.org Received: via spool by 19812-submit@debbugs.gnu.org id=B19812.156504265031576 (code B ref 19812); Mon, 05 Aug 2019 22:05:02 +0000 Received: (at 19812) by debbugs.gnu.org; 5 Aug 2019 22:04:10 +0000 Received: from localhost ([127.0.0.1]:35994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hul5O-0008DE-9n for submit@debbugs.gnu.org; Mon, 05 Aug 2019 18:04:10 -0400 Received: from eastern.birch.relay.mailchannels.net ([23.83.209.55]:45682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hul5M-0008D5-MU for 19812@debbugs.gnu.org; Mon, 05 Aug 2019 18:04:09 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 8D1685E1911; Mon, 5 Aug 2019 22:04:07 +0000 (UTC) Received: from pdx1-sub0-mail-a2.g.dreamhost.com (100-96-84-65.trex.outbound.svc.cluster.local [100.96.84.65]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 13D445E2A86; Mon, 5 Aug 2019 22:04:07 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a2.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.5); Mon, 05 Aug 2019 22:04:07 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Average-Blushing: 4434372d2e506bab_1565042647381_2908630609 X-MC-Loop-Signature: 1565042647381:2995520895 X-MC-Ingress-Time: 1565042647380 Received: from pdx1-sub0-mail-a2.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a2.g.dreamhost.com (Postfix) with ESMTP id 36965837E2; Mon, 5 Aug 2019 15:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=Y/aOm815k1bZ/R9XPpFtPEzkjlc=; b= 1gnbHbpVrXQ/hTacTMau6/lW52X+q8w/hAeh/fQ1xfU4oLgLpWyMPsLPeAgix159 b9tr5YEFMDdWpUtgTzZKRK7nLSllWGEed9lHX1wJifjOr9Mvx+9tPDFrkeXJsmw4 0r6e6FEo0FEFKXwCCYa0IbIiGQiMGCxzrSKGLGxbVs0= Received: from mail.jurta.org (m91-129-103-91.cust.tele2.ee [91.129.103.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a2.g.dreamhost.com (Postfix) with ESMTPSA id 3800B837DE; Mon, 5 Aug 2019 15:03:59 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a2 From: Juri Linkov Organization: LINKOV.NET References: <87bnl5qc50.fsf@blah.blah> <87v9vfmjke.fsf@mouse.gnus.org> <83tvayemrf.fsf@gnu.org> <87ef22ld5g.fsf@mouse.gnus.org> <87o9142890.fsf@mail.linkov.net> <87d0hk2drc.fsf@blah.blah> Date: Tue, 06 Aug 2019 00:59:45 +0300 In-Reply-To: <87d0hk2drc.fsf@blah.blah> (Kevin Ryde's message of "Mon, 05 Aug 2019 18:54:47 +1000") Message-ID: <87v9vbtgry.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddruddtledgtdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrledunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtfedrledupdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepuhhsvghrgedvpghkvghvihhnseihrghhohhordgtohhmrdgruhenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> It might be useful to visit log files previously saved from shell buffers, >> like compilation-mode adds such local-variable prop-line: >> >> -*- mode: compilation -*- > > I suppose the difference is compilation-mode does useful things when a > compilation has finished, whereas shell-mode and similar would be more > or less entirely for interaction. It makes sense to visit a previously saved shell buffer only to see highlighted prompts and command lines (that shell-mode currently is unable to do). > I've had file buffers in compilation-mode for stepping error lines in > the way you say. The only thing I've been tricked by is accidentally > "g" recompile which replaces the file text -- in a sensible way, but for > me usually not what I meant to do :-). Maybe "g" should check if the compilation buffer is visiting a file, and not to recompile in this case. From unknown Mon Jun 23 23:53:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19812: 24.4; suggest `shell-mode' not interactive Resent-From: Kevin Ryde Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Aug 2019 06:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19812 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 19812@debbugs.gnu.org Received: via spool by 19812-submit@debbugs.gnu.org id=B19812.156516048321548 (code B ref 19812); Wed, 07 Aug 2019 06:49:01 +0000 Received: (at 19812) by debbugs.gnu.org; 7 Aug 2019 06:48:03 +0000 Received: from localhost ([127.0.0.1]:38045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvFjv-0005bT-GB for submit@debbugs.gnu.org; Wed, 07 Aug 2019 02:48:03 -0400 Received: from sonic303-23.consmr.mail.gq1.yahoo.com ([98.137.64.204]:34402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvFjs-0005au-F6 for 19812@debbugs.gnu.org; Wed, 07 Aug 2019 02:48:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1565160472; bh=CydZb58KlbEGRd5s1ZGG3HOWULUNZV83iePl1lvroPk=; h=From:To:Subject:References:Date:In-Reply-To:From:Subject; b=t7AHw0Q0g/4AFPzGRdHtNOsuG0YuEefbSkjvRz2WC6exRXzqqbJlV+x2244/VMgFBA1WmwFeqixqWCqKxvhAxALyPKOfmtajbWgvWxXMvziDqE34HghPgSs1IFutu9x9Pm5FtSGsYI4wghmeH62sRFyavvg7lED7U/oUPcP3+L/y3Qtwii/YgEZdMVeq4qIPBxipR6o0ruUm+H0dgppumhK6hbA/Rkaha//EHVd+xGBnPxTuWd5nR4AQfsmJ7/g8xLueb0L0QefXo7Gzi6fvb+GxJO0C7Wm1W9UWbi3821OyzIbtJJyyMwy/71D2rBjI1yMUwpGTM6k3NCoQvpc+Qg== X-YMail-OSG: dxaPnasVM1nTjWIPeNiaBwJ44Adr6ghNQsYrn.G8e4dDj2PDqccFBpckJ8MnIdn fSDMVm47hFkAOu81nYcdrXG5AHdoXmkJDoDNsoNVgDTpWbDpqB4hVqjvyuSLikRynlrgW4TMoEJa ACzMUpAo8wx3qS0YbqN59mgJmh6c79hTG_OqYSXhVi4tJNbrv_SESfv0uieEhpuXp95FpKq7cm7J SsU3sRWgDjPiAdY1CeSBnz7aZBAQBb8m23.WELD11jgMGRWSLXHMUqPbjYV2.V1yMktCxB.KuXwQ pRWtCsPZUHoPCelvuuNadZvTnM5.Ug5cTcK0dmVJrz4P9qHZtll6L1Bc15xmanGUurwuNH.Muo93 6KQPLUHSwfM87HKlO9TZ_84oyb8MCf0V0xjXGzemLAi.n6XM3m4OT_9dkxPvl5dqlm35Ly9z4eLr p9E9rtdOTRe9xXACTeR0EkV3nrZUpIgmwTLDR3uEckK_EcakG627pp7i5mrtAQlICNf5LlzcbMf7 6NYBQOIWo7nWx_UIiApYMwQSfx6PU1JWR4k21TEIzZ5Cb8XSxl1xbLURwiYfOV5g1DX6is5RWMoN PnZJtQKUoSGgKoqEw0_UDBX.7bbqny_O8wtpdjdZIBzOJpiPEgKlhY.UCbU_qio1q4CIg5h5KIQr u888WyAjeGWxuzl4Poo6GznIKoWISdfDwSoU47nTvLFtPlrLTMDjUE3Mf8WE6KAbmjQ2iU6h20U4 KqVI08ULLxC4WWxxIgc3kdlrM0eS9QzcFUIAookd2kGvbFTvj9nbpmkAb_A0qnK3wK.5COcVFga7 NT5QVkoCsKIqz8c9BL1jmA2i0qJLhj4vGFdUOysYMpgNc8OGhNWh48NuFKuckA2W88QiJA9HxiFY tH28cXBm8RrQMX5yggOCESnPkUYhvNe_TxOwqm0KDhVFAMyiDsTtoSyCiopi0.riHljfzJleU.Wa 2x1SuKKYv75uI5f5VrCPl49_bB1q1MI_n8lknDVTwIm_Q_0X7sah0q0SajUg5c2lpagNFahMFm_v J70R3EWD1pAjdoDp1HDHJcCD4XBnIce8EMRYF7D0Doz.8kVwAbx3.JbGS1e2BcEJMuHOUzgEkIV0 WyvjAaawgVrz3Z27L22GQ1HMoPF3icAsmFC1DbprHVx6iDTfe07p0wNYuBKnohxXQXZmOZoyiYhw uyt1ge.KRdyfxxzVTo8rtEAANCB5OtYjBlh3VS2V6x16_22dtkGndok6aTg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Wed, 7 Aug 2019 06:47:52 +0000 Received: by smtp405.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 6788d850f9f418147a7fc2787a91bcb9; Wed, 07 Aug 2019 06:47:50 +0000 (UTC) From: Kevin Ryde References: <87bnl5qc50.fsf@blah.blah> <87v9vfmjke.fsf@mouse.gnus.org> <83tvayemrf.fsf@gnu.org> <87ef22ld5g.fsf@mouse.gnus.org> <87o9142890.fsf@mail.linkov.net> <87d0hk2drc.fsf@blah.blah> <87v9vbtgry.fsf@mail.linkov.net> Date: Wed, 07 Aug 2019 16:46:13 +1000 In-Reply-To: <87v9vbtgry.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 06 Aug 2019 00:59:45 +0300") Message-ID: <87imr9pj62.fsf@blah.blah> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > > Maybe "g" should check if the compilation buffer is visiting a file, > and not to recompile in this case. I don't know if that'd be too strict, and yet some query-the-user could be annoying when you know what you're doing - such as having only just this moment saved a compile buffer to a file. The scariest bit for me was undo is disabled, so you can't go back when you realize your mistake. I suspect making undo the right thing would be hard, but in a file buffer that's what you reach for first on strange changes, so it's a bit off-putting. From unknown Mon Jun 23 23:53:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19812: 24.4; suggest `shell-mode' not interactive Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Aug 2019 01:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19812 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: user42_kevin@yahoo.com.au, 19812@debbugs.gnu.org Received: via spool by 19812-submit@debbugs.gnu.org id=B19812.156652195227459 (code B ref 19812); Fri, 23 Aug 2019 01:00:02 +0000 Received: (at 19812) by debbugs.gnu.org; 23 Aug 2019 00:59:12 +0000 Received: from localhost ([127.0.0.1]:38626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0xv5-00078p-Ll for submit@debbugs.gnu.org; Thu, 22 Aug 2019 20:59:11 -0400 Received: from quimby.gnus.org ([80.91.231.51]:36518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0xv4-00078d-EB for 19812@debbugs.gnu.org; Thu, 22 Aug 2019 20:59:10 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i0xv0-00025o-54; Fri, 23 Aug 2019 02:59:08 +0200 From: Lars Ingebrigtsen References: <87bnl5qc50.fsf@blah.blah> <87v9vfmjke.fsf@mouse.gnus.org> <83tvayemrf.fsf@gnu.org> Date: Thu, 22 Aug 2019 17:59:05 -0700 In-Reply-To: <83tvayemrf.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Aug 2019 10:22:44 +0300") Message-ID: <87v9uod7dy.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> As you point out, there's a lot of modes that only make sense in certain >> limited contexts, and having them be interactive isn't very helpful. >> I'm not sure it's that much of a problem in gener [...] Content analysis details: (-2.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 NO_DNS_FOR_FROM DNS: Envelope sender has no MX or A DNS records -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.9 DKIM_ADSP_NXDOMAIN No valid author signature and domain not in DNS -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) Eli Zaretskii writes: >> As you point out, there's a lot of modes that only make sense in certain >> limited contexts, and having them be interactive isn't very helpful. >> I'm not sure it's that much of a problem in general, but it is a >> particular an issue with `shell-mode', since I'd guess that a lot of >> people type that instead of `M-x shell-script-mode' when starting to >> write new shell scripts. >> >> The following fixes this particular issue. Would something like this be >> welcome? > > Are there no valid use cases where invoking shell-mode interactively > makes sense? If there are such use cases, we cannot disallow them > now. If I read the comments correctly, nobody had a use case for using `M-x shell-mode'. It was proposed that it could possibly be useful for working in log files and the like, but that shell-mode doesn't currently actually support that, so I went ahead and applied the patch to disable the interactive use of the mode. If this leads to problems for anybody, feel free to revert the commit. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 20:59:17 2019 Received: (at control) by debbugs.gnu.org; 23 Aug 2019 00:59:17 +0000 Received: from localhost ([127.0.0.1]:38629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0xvA-00079E-Uq for submit@debbugs.gnu.org; Thu, 22 Aug 2019 20:59:17 -0400 Received: from quimby.gnus.org ([80.91.231.51]:36534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0xv9-000797-ID for control@debbugs.gnu.org; Thu, 22 Aug 2019 20:59:15 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i0xv6-00025w-V8 for control@debbugs.gnu.org; Fri, 23 Aug 2019 02:59:14 +0200 Date: Thu, 22 Aug 2019 17:59:12 -0700 Message-Id: <87tva8d7dr.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #19812 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 19812 fixed close 19812 27.1 quit Content analysis details: (-2.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 NO_DNS_FOR_FROM DNS: Envelope sender has no MX or A DNS records -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.9 DKIM_ADSP_NXDOMAIN No valid author signature and domain not in DNS -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) tags 19812 fixed close 19812 27.1 quit From unknown Mon Jun 23 23:53:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19812: 24.4; suggest `shell-mode' not interactive Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Aug 2019 22:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19812 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch fixed To: Lars Ingebrigtsen Cc: user42_kevin@yahoo.com.au, Eli Zaretskii , 19812@debbugs.gnu.org Received: via spool by 19812-submit@debbugs.gnu.org id=B19812.156694418310149 (code B ref 19812); Tue, 27 Aug 2019 22:17:01 +0000 Received: (at 19812) by debbugs.gnu.org; 27 Aug 2019 22:16:23 +0000 Received: from localhost ([127.0.0.1]:49538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2jlF-0002dc-JO for submit@debbugs.gnu.org; Tue, 27 Aug 2019 18:16:23 -0400 Received: from bonobo.birch.relay.mailchannels.net ([23.83.209.22]:1478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2jlC-0002dN-UD for 19812@debbugs.gnu.org; Tue, 27 Aug 2019 18:16:20 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B785B2C2EB0; Tue, 27 Aug 2019 22:16:17 +0000 (UTC) Received: from pdx1-sub0-mail-a50.g.dreamhost.com (100-96-88-96.trex.outbound.svc.cluster.local [100.96.88.96]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 4620C2C2FF0; Tue, 27 Aug 2019 22:16:17 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a50.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.5); Tue, 27 Aug 2019 22:16:17 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Soft-Language: 5bd6d7230307cc48_1566944177547_2312147548 X-MC-Loop-Signature: 1566944177547:1483905431 X-MC-Ingress-Time: 1566944177547 Received: from pdx1-sub0-mail-a50.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTP id 90A817F4D4; Tue, 27 Aug 2019 15:16:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=9z6lrmGiYJRE6JlMqtY8BqTcEvE=; b= As/rP3vbrCiqWEZk0zRGIgH9CvzE6jD4Yqa463Lwosfj5msqOMAUkMJ+yOwt+lfM QMuI09xD/rAy0lBtV2kaPS5FA4eB0dY3KiEB7mdf0cT2N8PKNyputBHm1H/yLELj IYaX/QTHbcuWOhFzJb+bl/Mr9DVGlvsQT49Q0PMlkG8= Received: from mail.jurta.org (m91-129-108-240.cust.tele2.ee [91.129.108.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTPSA id 739177F49F; Tue, 27 Aug 2019 15:16:09 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a50 From: Juri Linkov References: <87bnl5qc50.fsf@blah.blah> <87v9vfmjke.fsf@mouse.gnus.org> <83tvayemrf.fsf@gnu.org> <87v9uod7dy.fsf@mouse.gnus.org> Date: Wed, 28 Aug 2019 01:13:25 +0300 In-Reply-To: <87v9uod7dy.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Thu, 22 Aug 2019 17:59:05 -0700") Message-ID: <874l22w91a.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudehledgtdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtkedrvdegtdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdekrddvgedtpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheplhgrrhhsihesmhhouhhsvgdrghhnuhhsrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > If I read the comments correctly, nobody had a use case for using `M-x > shell-mode'. It was proposed that it could possibly be useful for > working in log files and the like, but that shell-mode doesn't currently > actually support that, so I went ahead and applied the patch to disable > the interactive use of the mode. I confirm that `M-x shell-mode' can't be used in saved log files. I tried: (defvar shell-log-font-lock-keywords ;; `shell-prompt-pattern' can't be used: it finds too many false matches '(("^\\([^#$%>\12]*@[^#$%>\12]*:[^#$%>\12]*[#$%>] *\\)\\(.*\\)$" (1 'comint-highlight-prompt) (2 'comint-highlight-input))) "Shell prompts to highlight in Shell Log mode.") (define-derived-mode shell-log-mode shell-mode "Shell-Log" "Font-lock for shell logs." (put 'shell-log-mode 'mode-class nil) (setq-local font-lock-defaults '(shell-log-font-lock-keywords t))) (add-to-list 'auto-mode-alist '("\\.log\\'" . shell-log-mode)) but `shell-prompt-pattern' matches too many false positives, and replacing it with a customized regexp is too ad-hoc and unreliable.