From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: [PATCH} Re: Bug: problem when exporting a org-mode file with a lots of code blocks Date: Wed, 11 Mar 2015 19:30:05 -0700 Message-ID: References: <87d24hs3pa.fsf@gmail.com> <87h9tsyob7.fsf@nicolasgoaziou.fr> <87d24fzsvn.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVst4-0003KP-Kt for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 22:30:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVst0-0002l0-GD for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 22:30:14 -0400 Received: from iport-bcv3-out.ucsd.edu ([132.239.0.89]:40401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVst0-0002he-6k for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 22:30:10 -0400 In-Reply-To: <87d24fzsvn.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On Wed, 11 Mar 2015, Nicolas Goaziou wrote: > 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 ...)")? > Done -- lines 3--6 below "(src-block ". > Also, `line-number-at-pos' is not a reliable information in this case > (preceding block might have modified the buffer anyway). > It now reports the src-block name (if any). Pushed to master. Chuck