Step to reproduce:

1. `emacs -Q temp.org`, with the following content:
--8<---------------cut here---------------start------------->8---
#+begin_src emacs-lisp
#+end_src
--8<---------------cut here---------------end--------------->8---

2. Put cursor on the block and `M-:`, in eval type `(org-edit-src-code "'()")` and RET, the edit buffer shows up with the content `'()`, but...

Actual behavior:
1. The edit buffer is read only
2. `M-x org-edit-src-exit` close the edit buffer as intended, but it does not insert `'()` back into the org mode buffer.

Expect behavior:
1. The edit buffer should not be read only
2. Even if the edit buffer is not edited afterwards, `M-x org-edit-src-exit` should insert its content back to the org mode buffer.

------------------------------------------------------------------------
Emacs : GNU Emacs 30.0.92 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2)
Package: Org mode version 9.7.30

TIA,
Hiecaq

Reply via email to