emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Error when editing src block
@ 2014-02-09  9:53 Florian Beck
  2014-02-09 13:54 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Beck @ 2014-02-09  9:53 UTC (permalink / raw)
  To: Org Mode List

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error when editing src block
  2014-02-09  9:53 Error when editing src block Florian Beck
@ 2014-02-09 13:54 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2014-02-09 13:54 UTC (permalink / raw)
  To: Florian Beck; +Cc: Org Mode List

Hi Florian,

Florian Beck <fb@miszellen.de> writes:

> But 
> since the worst that can happen is the language mode not loading 
> correctly, maybe just downgrade the error to a warning?

Yes, that's what is done now in maint.
Thanks for the suggestion.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-09 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-09  9:53 Error when editing src block Florian Beck
2014-02-09 13:54 ` Bastien

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).