From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: comint read-only prompt Date: Tue, 20 Aug 2002 13:36:28 -0500 (CDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200208201836.NAA06130@eel.dms.auburn.edu> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1029868713 22311 127.0.0.1 (20 Aug 2002 18:38:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 20 Aug 2002 18:38:33 +0000 (UTC) Cc: jdsmith@as.arizona.edu, monnier+gnu/emacs@rum.cs.yale.edu, miles@lsi.nec.co.jp, simon.marshall@misys.com, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17hDtf-0005nk-00 for ; Tue, 20 Aug 2002 20:38:31 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17hELg-0002lc-00 for ; Tue, 20 Aug 2002 21:07:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hDue-0003dg-00; Tue, 20 Aug 2002 14:39:32 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17hDsP-0003AA-00 for emacs-devel@gnu.org; Tue, 20 Aug 2002 14:37:13 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17hDsN-00038i-00 for emacs-devel@gnu.org; Tue, 20 Aug 2002 14:37:12 -0400 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hDrr-0002oy-00; Tue, 20 Aug 2002 14:36:39 -0400 Original-Received: from eel.dms.auburn.edu (eel.dms.auburn.edu [131.204.53.108]) by manatee.dms.auburn.edu (8.9.1a/8.9.1) with ESMTP id NAA16265; Tue, 20 Aug 2002 13:36:29 -0500 (CDT) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.9.3+Sun/8.9.3) id NAA06130; Tue, 20 Aug 2002 13:36:28 -0500 (CDT) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: rms@gnu.org In-Reply-To: <200208201721.g7KHLcb09801@wijiji.santafe.edu> (message from Richard Stallman on Tue, 20 Aug 2002 11:21:38 -0600 (MDT)) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6684 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6684 Richard Stallman wrote: It seems rather inconsistent to me to make the newest prompt read-only and not the other prompts. JD Smith wrote: So there are three options for old prompts: 1. Leave them read-only by virtue of a read-only text-property. Any attempt to kill or delete any part of the entirety of older prompts generates an error. 2. Leave them read-only by virtue of modification and insert-in-front-hooks. Attempts to delete any part of the prompts signals an error, but the entire prompt can be killed without complaint. 3. Leave them read-write. I believe there is one single important reason to make the latest prompt read-only: it corresponds to the current command line. This reason does not apply to old prompts. I quite often want to edit or "clean up" comint application buffers. Option 1 forces one to play around with inhibit-read-only to accomplish this. Option 1 is currently implemented in ielm. It is extremely inconvenient. I prefer option 3. Option 2 might work too. Sincerely, Luc.