Adrian Aichner <adrian(a)xemacs.org> writes:
Aidan Kehoe <kehoea(a)parhasard.net> writes:
> Consider the following, as evaluated in *scratch*;
>
> (progn
> (require 'atomic-extents)
> (setq our-extent (make-extent 1 3))
> ;; Make it such that point can never be within the extent.
> (set-extent-property our-extent 'atomic t)
> (goto-char 4)
> (delete-backward-char))
Looks like the 'atomic property is not documented, even in
AFAIK it's a feature of the "atomic-extents" package, not a core
XEmacs feature. The package installs its own pre-command-hooks to
take care that `atomic' extents are not included in movement commands.
The whole thing is pretty easy to break, given that Lisp code can
easily "enter" the so-called atomic extents, and that the basic
commands such as delete-char don't work properly.
> Now, Iâd like that delete-backward-char to delete the whole
> extent; has anyone an idiom to do this, ideally avoiding wrapping
> or advising the various backward-delete-char-like functions?
I don't.
Neither do I, and I don't think one exists either.