[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23.0.50; delete-seletion-mode and read-only text
From: |
Johan Bockgård |
Subject: |
23.0.50; delete-seletion-mode and read-only text |
Date: |
Mon, 21 Jan 2008 11:48:27 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) |
In delete-seletion-mode, trying to self insert in read-only text when
there is a selection signals an error that clears pre-command-hook.
emacs -Q
(delete-selection-mode 1)
(insert (propertize "12345" 'read-only t))
Select read only text with C-SPC + moving. Press a self-inserting key ("x").
=> pre-command-hook is cleared.
delete-selection-mode does check buffer-read-only, but it does not
protect against read-only text.
--
Johan Bockgård