Dear Kévin, org-mode developers, with `org-return-follows-link` set to `t` in a read-only buffer I now get a `Buffer is read-only: #<buffer notmuch-startpage.org>` error when pressing ENTER/RETURN with point on an org-mode link.
This used to work (opening the org-mode link) till d3e6b58004997c5a9eeea82f96723c0f74480ab8 is the first bad commit commit d3e6b58004997c5a9eeea82f96723c0f74480ab8 Author: Kévin Le Gouguec <kevin.legoug...@gmail.com> Date: Tue May 5 19:01:07 2020 +0200 Make RET and C-j obey `electric-indent-mode' * lisp/org-compat.el (org-return-indent): Deprecate this command. * lisp/org-keys.el (org-mode-map): Rebind C-j to a command emulating `electric-newline-and-maybe-indent'. * lisp/org.el (org-cdlatex-environment-indent): Stop using the now obsolete function. (org--newline): New helper function. (org-return): Use it to transparently handle `electric-indent-mode'. (org-return-and-maybe-indent): New command to emulate `electric-newline-and-maybe-indent' while taking care of Org special cases (tables, links, timestamps). * testing/lisp/test-org.el (test-org/with-electric-indent, test-org/without-electric-indent): New tests. * testing/org-test.el (org-test-with-minor-mode): New helper to set a minor mode to a specific state, and reset it afterward. :040000 040000 85f261b701133d4be047c1a2e8872b25f3e0c7e7 21fe88d69e48ac3d24d233cbf07fe0084cde853e M etc :040000 040000 a677d2134361d2b023f252c188aebdeef9826896 4bdbb34abe7eaad343932d33a03c823b2cae0e24 M lisp :040000 040000 9ecba96d2748f0e7ff5430ec0fcf8c175875621f f6e7b54445ac19d1b7c59d4d54bd9b4a19126245 M testing I use this dozens of times a day and it would be convenient if it was possible to resurrect the old behaviour. Thanks for your attention and for developing org-mode, Gregor -- -... --- .-. . -.. ..--.. ...-.-