[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug: org-catch-invisible-edits doesn't actually catch most deletions
From: |
Ihor Radchenko |
Subject: |
Re: Bug: org-catch-invisible-edits doesn't actually catch most deletions [9.4 (9.4-41-g9bb930-elpaplus @ /home/omarantolin/.emacs.d/elpa/org-plus-contrib-20201116/)] |
Date: |
Sat, 10 Feb 2024 16:11:10 +0000 |
Omar AntolĂn Camarena <omar@matem.unam.mx> writes:
> Setting org-catch-invisible-edits to 'error does catch
> org-delete-backward-char (bound to <backspace> by default), but it doesn't
> catch backward-kill-word (<C-backspace>), or kill-word with argument -1 (M--
> M-d), or backward-kill-sexp (ESC <C-backspace>).
> ...
> I'd suggest that naming the variable org-catch-invisible-edits strongly
> suggests it should catch all deletions in the invisible text and that the
> current behavior is misleading.
Catching all commands is impossible because we cannot know in advance
which command (including user-defined) is going to perform editing and
which does not.
And throwing an error /while/ a command is performing edits can easily
break command logic and cause unpredictable bugs. Not to mention that
some commands are OK to edit inside folded text.
Org mode now has `org-fold-catch-invisible-edits-commands' where you can
manually specify the commands you want Org to abort before they are
executed.
Handled.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Bug: org-catch-invisible-edits doesn't actually catch most deletions [9.4 (9.4-41-g9bb930-elpaplus @ /home/omarantolin/.emacs.d/elpa/org-plus-contrib-20201116/)],
Ihor Radchenko <=