all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Harald Maier <harald@maierh.de>
Cc: emacs-devel@gnu.org
Subject: Re: comint-prompt-read-only causes problems in Gnus message mode
Date: Sun, 21 Nov 2004 18:38:47 +0100	[thread overview]
Message-ID: <m34qjjkspk.fsf@ate.maierh> (raw)
In-Reply-To: <200411211624.iALGOVl21497@raven.dms.auburn.edu> (Luc Teirlinck's message of "Sun, 21 Nov 2004 10:24:31 -0600 (CST)")

Luc Teirlinck <teirllm@dms.auburn.edu> 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

  reply	other threads:[~2004-11-21 17:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-21 15:20 comint-prompt-read-only causes problems in Gnus message mode Harald Maier
2004-11-21 16:24 ` Luc Teirlinck
2004-11-21 17:38   ` Harald Maier [this message]
2004-11-21 18:04     ` Luc Teirlinck
2004-11-23 16:29       ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m34qjjkspk.fsf@ate.maierh \
    --to=harald@maierh.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.