From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#10734: Proposal: comint-history-read-only Date: Wed, 24 Feb 2016 17:44:51 +1100 Message-ID: <87egc2bo9o.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456296382 30691 80.91.229.3 (24 Feb 2016 06:46:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 06:46:22 +0000 (UTC) Cc: 10734@debbugs.gnu.org To: Zachary Kanfer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 07:46:10 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 1aYTD7-0007GR-FG for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 07:46:09 +0100 Original-Received: from localhost ([::1]:33919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYTD6-0006hh-Ol for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 01:46:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYTD3-0006hN-32 for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 01:46:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYTCz-0000kI-U0 for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 01:46:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYTCz-0000jt-QN for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 01:46:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYTCz-0003Te-LW for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 01:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Feb 2016 06:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10734 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 10734-submit@debbugs.gnu.org id=B10734.145629632010806 (code B ref 10734); Wed, 24 Feb 2016 06:46:01 +0000 Original-Received: (at 10734) by debbugs.gnu.org; 24 Feb 2016 06:45:20 +0000 Original-Received: from localhost ([127.0.0.1]:42379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYTCJ-0002nz-VX for submit@debbugs.gnu.org; Wed, 24 Feb 2016 01:45:20 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:54887) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYTCI-0002m8-MG for 10734@debbugs.gnu.org; Wed, 24 Feb 2016 01:45:19 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aYTBv-0003eK-Iv; Wed, 24 Feb 2016 07:44:56 +0100 In-Reply-To: (Zachary Kanfer's message of "Mon, 6 Feb 2012 02:31:59 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aYTBv-0003eK-Iv MailScanner-NULL-Check: 1456901096.55927@qWne4ZM0j/oZol+rJahXwQ 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:113687 Archived-At: Zachary Kanfer writes: > This patch proposes a new feature in comint mode. Currently, setting > comint-prompt-read-only to some non-nil value makes the prompt > read-only, but this only makes the prompt read-only. I don't find it > useful to insert text into the middle of a historical buffer, so I > added a new variable comint-history-read-only. If set to non-nil, this > variable makes the entire history read-only. I think this probably makes sense... Most process oriented mode are quite read-only, except for the line you're typing on. > + (defcustom comint-history-read-only nil > + "If non-nil, all comint history is read only." > + :type 'boolean > + :group 'comint) This might even default to t? It needs updating in the Emacs manual and an etc/NEWS entry, though. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no