emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: stardiviner <numbchild@gmail.com>
To: emacs-orgmode@gnu.org
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: Fri, 22 Dec 2017 18:24:38 +0800	[thread overview]
Message-ID: <655b5ab4-2df9-9570-f4b9-8fcb7ac3fbda@gmail.com> (raw)
In-Reply-To: <CAPvM=sT=QepB-qb0NFjP1DX4+CsOa84EyDFWg3zfwTHhpRARFg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1433 bytes --]

@Paul Do you have similar config? I use it to enable flycheck in editing 
temp src buffer.


    (defadvice org-edit-src-code (around set-buffer-file-name activate
    compile)
       (let ((file-name (buffer-file-name)))
         ad-do-it
         (setq buffer-file-name file-name)))


On 12/22/2017 06:39 AM, Paul Davis wrote:
>
> 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 <mail@nicolasgoaziou.fr 
> <mailto:mail@nicolasgoaziou.fr>> wrote:
>
>     Hello,
>
>     Paul Davis <paul.dangersalad@gmail.com
>     <mailto: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
>     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
>


[-- Attachment #2: Type: text/html, Size: 2618 bytes --]

      reply	other threads:[~2017-12-22 10:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-17 19:11 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/)] Paul Davis
2017-12-18 13:30 ` Nicolas Goaziou
2017-12-21 22:39   ` Paul Davis
2017-12-22 10:24     ` stardiviner [this message]

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=655b5ab4-2df9-9570-f4b9-8fcb7ac3fbda@gmail.com \
    --to=numbchild@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).