From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Davis Subject: Re: Bug: Editing src blocks: user-error: Cannot modify an area being edited in a dedicated buffer [9.1.4 (9.1.4-2-g118753-elpaplus @ /home/paul/.emacs.d/elpa/org-plus-contrib-20171211/)] Date: Thu, 21 Dec 2017 22:39:33 +0000 Message-ID: References: <87o9mwkvtq.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1b56e45ec8db0560e16042" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eS9VD-0003VI-Dt for emacs-orgmode@gnu.org; Thu, 21 Dec 2017 17:39:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eS9VC-0006WC-JG for emacs-orgmode@gnu.org; Thu, 21 Dec 2017 17:39:47 -0500 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:44558) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eS9VC-0006Tn-Am for emacs-orgmode@gnu.org; Thu, 21 Dec 2017 17:39:46 -0500 Received: by mail-lf0-x233.google.com with SMTP id g63so7542825lfl.11 for ; Thu, 21 Dec 2017 14:39:45 -0800 (PST) In-Reply-To: <87o9mwkvtq.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --94eb2c1b56e45ec8db0560e16042 Content-Type: text/plain; charset="UTF-8" Turns out that the issue was caused by trying to disable a flycheck checker using the org edit src hook On Mon, Dec 18, 2017, 6:30 AM Nicolas Goaziou wrote: > Hello, > > Paul Davis writes: > > > Using ~C-c '~ to edit a src block works as expected, but if I make > > changes and use ~C-c '~ again, I get the error ~Cannot modify an area > > being edited in a dedicated buffer~ > > I need more information. Where do you make changes? In the newly created > buffer? Where do you call ~C-c '~? > > For example, I created the following buffer > > #+begin_src emacs-lisp > (+ 1 2) > #+end_src > > moved on the source block, used C-c '. Then, in the new buffer, > I replaced 2 with 3 and pressed C-c ' again, without any error? > > IOW, could you provide a precise recipe demonstrating the issue? > > Thank you. > > Regards, > > -- > Nicolas Goaziou > --94eb2c1b56e45ec8db0560e16042 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Turns out that the issue was caused by trying to disable a f= lycheck checker using the org edit src hook


On Mon, Dec 18, 2017, 6:30 = AM Nicolas Goaziou <mail@nicol= asgoaziou.fr> wrote:
Hello,<= br>
Paul Davis <paul.dangersalad@gmail.com> writes:

> Using ~C-c '~ to edit a src block works as expected, but if I make=
> changes and use ~C-c '~ again, I get the error ~Cannot modify an a= rea
> being edited in a dedicated buffer~

I need more information. Where do you make changes? In the newly created buffer? Where do you call ~C-c '~?

For example, I created the following buffer

=C2=A0 =C2=A0 #+begin_src emacs-lisp
=C2=A0 =C2=A0 =C2=A0 (+ 1 2)
=C2=A0 =C2=A0 #+end_src

moved on the source block, used C-c '. Then, in the new buffer,
I replaced 2 with 3 and pressed C-c ' again, without any error?

IOW, could you provide a precise recipe demonstrating the issue?

Thank you.

Regards,

--
Nicolas Goaziou
--94eb2c1b56e45ec8db0560e16042--