all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 23.0.50; delete-seletion-mode and read-only text
@ 2008-01-21 10:48 Johan Bockgård
  2008-01-21 22:03 ` martin rudalics
  2008-01-22 11:31 ` Richard Stallman
  0 siblings, 2 replies; 14+ messages in thread
From: Johan Bockgård @ 2008-01-21 10:48 UTC (permalink / raw)
  To: emacs-devel

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

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

end of thread, other threads:[~2008-01-24 23:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-21 10:48 23.0.50; delete-seletion-mode and read-only text Johan Bockgård
2008-01-21 22:03 ` martin rudalics
2008-01-22 13:12   ` before-change-functions (was: 23.0.50; delete-seletion-mode and read-only text) Johan Bockgård
2008-01-23  9:32     ` before-change-functions martin rudalics
2008-01-22 13:20   ` read-only overlays (was: 23.0.50; delete-seletion-mode and read-only text) Johan Bockgård
2008-01-22 14:12     ` read-only overlays martin rudalics
2008-01-23 21:41     ` read-only overlays (was: 23.0.50; delete-seletion-mode and read-only text) Richard Stallman
2008-01-24  1:52       ` read-only overlays Stefan Monnier
2008-01-24 23:42         ` Richard Stallman
2008-01-22 22:29   ` 23.0.50; delete-seletion-mode and read-only text Richard Stallman
2008-01-23  9:19     ` martin rudalics
2008-01-23 16:20       ` Richard Stallman
2008-01-22 11:31 ` Richard Stallman
2008-01-22 13:02   ` Johan Bockgård

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.