From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Bausch Subject: Re: C-c C-c not working at end of #+end_src line (was: [RFC] Standardized code block keywords) Date: Tue, 1 Nov 2011 07:34:09 +0100 Message-ID: <201111010734.10139.DanielBausch@gmx.de> References: <87pqhrih3s.fsf@gmail.com> <201110310825.58591.DanielBausch@gmx.de> <87zkghj891.fsf@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RL7vL-0004kN-IA for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 02:34:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RL7vK-0007aD-CC for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 02:34:15 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:54591) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RL7vJ-0007Zz-TB for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 02:34:14 -0400 In-Reply-To: <87zkghj891.fsf@gmail.com> 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: Eric Schulte Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Am Montag 31 Oktober 2011, 20:01:14 schrieb Eric Schulte: > Daniel Bausch writes: > > I did some tests with my documents and they look fine. Thanks for your > > work. > > Great, good to know. > > > (A minor remark, offtopic: If the document ends just below a source > > code block, no results are inserted when the block is executed. You > > have to insert an additional blank line, for a result to can appear.) > > I can't reproduce this problem. Ok, I played around and found that what I saw has nothing to do with a blank line existing or not, but only with the position of point. What I observed happens if point is at the end of the #+end_src line. If you press C-c C-c there then you get "Local setup has been refreshed" if there is a newline following. If the documents ends just there, then you get "org-mode fontification error". In both cases no result is produced. I think it is a very common case that one wants to execute a code block right after typing #+end_src, so that point position should "belong" to the code block. If you move one character left, so you are between r and c, then C-c C-c works as expected. If you need an example, use that #+begin_src R 42 #+end_src It even does not matter, whether there is additional text following.