emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Florian Beck <fb@miszellen.de>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Error when editing src block
Date: Sun, 09 Feb 2014 10:53:57 +0100	[thread overview]
Message-ID: <52F75035.1030108@miszellen.de> (raw)

When `org-edit-src-code' fails to load the language mode, it leaves the 
buffer(s) in an unusable state. For example, evaluate

M-: (add-hook 'emacs-lisp-mode-hook 'paredit-mode)

Then C-c ' in this block

#+begin_src emacs-lisp
   (save-excursion
#+end_src

  -> byte-code: Language mode `emacs-lisp-mode' fails with: "Unmatched 
bracket or quote"

That's fine. But now C-c ' doesn't work and M-x org-edit-src-exit claims:

org-edit-src-exit: This is not a sub-editing buffer, something is wrong

Indeed.

I guess, the source buffer and the overlay should be cleaned up. But 
since the worst that can happen is the language mode not loading 
correctly, maybe just downgrade the error to a warning?


-- 
Florian Beck

             reply	other threads:[~2014-02-09  9:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-09  9:53 Florian Beck [this message]
2014-02-09 13:54 ` Error when editing src block Bastien

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=52F75035.1030108@miszellen.de \
    --to=fb@miszellen.de \
    --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).