unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* delete-char deletes marked text sometimes and sometimes not
@ 2005-08-30 12:59 Mathias Dahl
  2005-08-31 13:00 ` rgb
  0 siblings, 1 reply; 4+ messages in thread
From: Mathias Dahl @ 2005-08-30 12:59 UTC (permalink / raw)



Try this in CVS Emacs:

 $ emacs-22-xyz -q

Type some text and mark it by temporarily activating
transient-mark-mode (C-SPC C-SPC). Press C-d (delete-char). This does
nothing to the text, which was expected (at least for a long-time
Emacs-user... :)

Now type some more text and this time mark the text using the
mouse. Now press C-d again. Voila! Text deleted!

What is this magic? Some "stuff" in the text properties, or what?

/Mathias

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: delete-char deletes marked text sometimes and sometimes not
  2005-08-30 12:59 delete-char deletes marked text sometimes and sometimes not Mathias Dahl
@ 2005-08-31 13:00 ` rgb
  2005-09-01 10:56   ` Mathias Dahl
  0 siblings, 1 reply; 4+ messages in thread
From: rgb @ 2005-08-31 13:00 UTC (permalink / raw)


> Type some text and mark it by temporarily activating
> transient-mark-mode (C-SPC C-SPC). Press C-d (delete-char). This does
> nothing to the text, which was expected (at least for a long-time
> Emacs-user... :)
>
> Now type some more text and this time mark the text using the
> mouse. Now press C-d again. Voila! Text deleted!
>
> What is this magic? Some "stuff" in the text properties, or what?

Could this be it?

mouse-region-delete-keys's value is
([delete]
 [deletechar])


List of keys which shall cause the mouse region to be deleted.

Defined in `mouse'.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: delete-char deletes marked text sometimes and sometimes not
  2005-08-31 13:00 ` rgb
@ 2005-09-01 10:56   ` Mathias Dahl
  2005-09-05 18:11     ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Mathias Dahl @ 2005-09-01 10:56 UTC (permalink / raw)


"rgb" <rbielaws@i1.net> writes:

> Could this be it?
>
> mouse-region-delete-keys's value is
> ([delete]
>  [deletechar])
>
>
> List of keys which shall cause the mouse region to be deleted.

Aha!

I have no problems with that but it seems to me that it should behave
according to `delete-selection-mode'.

OTOH, the problem is probably me, failing to understand that there is
a difference between a region marked with the mouse and marked using
temporary transient mark mode.

/Mathias

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: delete-char deletes marked text sometimes and sometimes not
  2005-09-01 10:56   ` Mathias Dahl
@ 2005-09-05 18:11     ` Stefan Monnier
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2005-09-05 18:11 UTC (permalink / raw)


> I have no problems with that but it seems to me that it should behave
> according to `delete-selection-mode'.

It predates delete-selection-mode, AFAIK.

> OTOH, the problem is probably me, failing to understand that there is
> a difference between a region marked with the mouse and marked using
> temporary transient mark mode.

For what it's worth I agree with you that it's unintuitive.
Please report it via M-x report-emacs-bug RET (which is not just for bugs
but also for misfeatures, bugs, feature requests, ...).


        Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-05 18:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-30 12:59 delete-char deletes marked text sometimes and sometimes not Mathias Dahl
2005-08-31 13:00 ` rgb
2005-09-01 10:56   ` Mathias Dahl
2005-09-05 18:11     ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).