From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Beck Subject: Error when editing src block Date: Sun, 09 Feb 2014 10:53:57 +0100 Message-ID: <52F75035.1030108@miszellen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCR5V-0007Y9-PD for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 04:54:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCR5P-0000V7-QZ for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 04:54:09 -0500 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::2]:55926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCR5P-0000V0-EV for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 04:54:03 -0500 Received: from [109.43.153.119] (ip-109-43-153-119.web.vodafone.de [109.43.153.119]) by smtp.strato.de (RZmta 32.24 DYNA|AUTH) with ESMTPSA id 40480aq199s0e6y (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) for ; Sun, 9 Feb 2014 10:54:00 +0100 (CET) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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