From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harald Maier Newsgroups: gmane.emacs.devel Subject: Re: comint-prompt-read-only causes problems in Gnus message mode Date: Sun, 21 Nov 2004 18:38:47 +0100 Message-ID: References: <200411211624.iALGOVl21497@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101058826 910 80.91.229.6 (21 Nov 2004 17:40:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Nov 2004 17:40:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 21 18:40:11 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CVvh5-0001bV-00 for ; Sun, 21 Nov 2004 18:40:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVvq6-0006N7-2N for ged-emacs-devel@m.gmane.org; Sun, 21 Nov 2004 12:49:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CVvpx-0006Mw-LB for emacs-devel@gnu.org; Sun, 21 Nov 2004 12:49:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CVvpx-0006Ma-1J for emacs-devel@gnu.org; Sun, 21 Nov 2004 12:49:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVvpw-0006MM-St for emacs-devel@gnu.org; Sun, 21 Nov 2004 12:49:20 -0500 Original-Received: from [212.227.126.187] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CVvfs-0005TT-Nm for emacs-devel@gnu.org; Sun, 21 Nov 2004 12:38:57 -0500 Original-Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CVvfl-0006cd-00; Sun, 21 Nov 2004 18:38:49 +0100 Original-Received: from [80.128.59.125] (helo=ate.maierh) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1CVvfl-0003t6-00; Sun, 21 Nov 2004 18:38:49 +0100 Original-Received: by ate.maierh (Postfix, from userid 500) id D6940195EE; Sun, 21 Nov 2004 18:38:47 +0100 (CET) Original-To: Luc Teirlinck In-Reply-To: <200411211624.iALGOVl21497@raven.dms.auburn.edu> (Luc Teirlinck's message of "Sun, 21 Nov 2004 10:24:31 -0600 (CST)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:7f9705e6678292fb4e27195dea438aa3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30195 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30195 Luc Teirlinck writes: > Harald Maier wrote: > > In other modes the inserted prompt too has the property 'read-only' > > Did you check this? (You can do `C-u C-x =' to check the text > properties of a character.) > > but there it's possible to delete the text (e.g. text-mode or the > normal mail mode). > > By default `read-only' is in yank-excluded-properties. In that > setting, the copied text should not have the `read-only' property. If > you remove `read-only' from yank-excluded-properties the copied text > should be _truly_ read-only. Playing around a little bit, this seems > to be exactly what happens in practice, as it should. So the > _combination_ of the two quotes above looks surprising. If I copy a promt form the '*shell*' buffer with 'comint-prompt-read-only' equal 't' into the '*scratch* buffer then I get the following with 'C-u C-x =': ,---- | character: $ (044, 36, 0x24, U+0024) | charset: ascii (ASCII (ISO646 IRV)) | code point: 36 | syntax: w which means: word | category: a:ASCII l:Latin | buffer code: 0x24 | file code: 0x24 (encoded by coding system iso-latin-1) | display: by this font (glyph code) | -Misc-Fixed-Medium-R-Normal--13-120-75-75-C-70-ISO8859-1 (0x24) | | There are text properties here: | font-lock-face [comint-highlight-prompt] | inhibit-line-move-field-capture t | rear-nonsticky t | fontified t | front-sticky (read-only) `---- I don't know if this is correct but it seems read-only is still there. The .emacs looks like follows: ,----[ .emacs ] | (global-font-lock-mode t) | (require 'comint) | | (setq comint-prompt-read-only t) `---- The variable yank-excluded-properties's value is ,---- | (read-only invisible intangible field mouse-face help-echo local-map | keymap yank-handler) `---- Harald