Sławomir Grochowski <[email protected]> writes: > Ihor Radchenko <[email protected]> writes: > >> Here is a tentative patch that should fix the problem. >> Can you please test? > > Thank you Ihor. > The patch unfortunately does not work.
What about the attached?
>From c443a0457a9f1eb2be3007410c99a075d4c3820e Mon Sep 17 00:00:00 2001 Message-ID: <c443a0457a9f1eb2be3007410c99a075d4c3820e.1769353671.git.yanta...@posteo.net> From: Ihor Radchenko <[email protected]> Date: Fri, 26 Dec 2025 19:50:43 +0100 Subject: [PATCH v2] org-columns: Do not interfere with editing commands like C-c C-z MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * lisp/org-colview.el (org-columns--display-here): Allow inserting after newline in headings when column view is active. By default, 'read-only overlay property is rear-sticky, so that inserted text after may inherit it (interactively, or when using `insert-and-inherit'), which triggers an error as inserting a new character with inherited 'read-only constitutes a change and triggers an error. Reported-by: Sławomir Grochowski <[email protected]> Link: https://orgmode.org/list/87ecrsxaf6.fsf@localhost --- lisp/org-colview.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/org-colview.el b/lisp/org-colview.el index c295cea1d..da622dbed 100644 --- a/lisp/org-colview.el +++ b/lisp/org-colview.el @@ -466,6 +466,11 @@ (defun org-columns--display-here (columns &optional dateline) (push ov org-columns-overlays)) (with-silent-modifications (let ((inhibit-read-only t)) + ;; Allow edits like adding a note. + (put-text-property + (line-end-position 0) + (line-beginning-position 2) + 'rear-nonsticky t) (put-text-property (line-end-position 0) (line-beginning-position 2) -- 2.52.0
-- Ihor Radchenko // yantar92, Org mode maintainer, 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>
