emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gregor Zattler <telegraph@gmx.net>
To: emacs-orgmode@gnu.org, "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
Subject: [bug] error on RET in read-only buffer with org-return-follows-link set to t
Date: Thu, 14 May 2020 21:40:56 +0200	[thread overview]
Message-ID: <87wo5egv93.fsf@no.workgroup> (raw)

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.legouguec@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 
-- 
 -... --- .-. . -.. ..--.. ...-.-



             reply	other threads:[~2020-05-14 19:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-14 19:40 Gregor Zattler [this message]
2020-05-14 21:28 ` [bug] error on RET in read-only buffer with org-return-follows-link set to t Nicolas Goaziou
2020-05-14 21:57   ` Kévin Le Gouguec
2020-05-14 22:49     ` Nicolas Goaziou
     [not found]       ` <87a72a6sj6.fsf@nicolasgoaziou.Freitag>
2020-05-15 12:54         ` Gregor Zattler
2020-05-14 21:32 ` Kévin Le Gouguec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wo5egv93.fsf@no.workgroup \
    --to=telegraph@gmx.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=kevin.legouguec@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).