Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > "Charles C. Berry" <ccbe...@ucsd.edu> 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).