From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH} Re: Bug: problem when exporting a org-mode file with a lots of code blocks Date: Wed, 11 Mar 2015 12:16:28 +0100 Message-ID: <87d24fzsvn.fsf@nicolasgoaziou.fr> References: <87d24hs3pa.fsf@gmail.com> <87h9tsyob7.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVebh-0007d0-MO for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 07:15:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVebe-0003zi-Fd for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 07:15:21 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:33453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVebe-0003zS-9a for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 07:15:18 -0400 In-Reply-To: <87h9tsyob7.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Wed, 11 Mar 2015 08:40:28 +0100") 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: "Charles C. Berry" Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: > "Charles C. Berry" writes: > >> The patch causes an informative error message to be reported for src >> blocks like this (no language): >> >> #+begin_src >> (+ 1 2) >> #_end_src > > Thanks. However could you move the check for language earlier (i.e., > right after "(src-block ...)")? Also, `line-number-at-pos' is not a reliable information in this case (preceding block might have modified the buffer anyway).