From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rustom Mody Subject: source block coloring inconsistency Date: Thu, 17 Apr 2014 13:52:07 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WahaX-0005Ds-BE for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 04:22:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WahaW-0004ad-3o for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 04:22:29 -0400 Received: from mail-oa0-x22b.google.com ([2607:f8b0:4003:c02::22b]:42800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WahaV-0004aW-VW for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 04:22:28 -0400 Received: by mail-oa0-f43.google.com with SMTP id eb12so125350oac.2 for ; Thu, 17 Apr 2014 01:22:27 -0700 (PDT) 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: emacs-orgmode Ive struggling with source code blocks for a few days. After not managing inline source in some cases I tried to switch to display blocks. Here again after trying for a couple of days I thought I was on an org bug. Finally I find its not a bug. However the hinting given by the coloring of code-blocks could perhaps be improved??? Heres the example file (heavily cut down) ------------------------------------------------------- #+TITLE: Unicode in Python #+OPTIONS: toc:nil * Introduction Python has been making long strides in embracing unicode. However it is arguably only half-way yet -- python programs can /support/ unicode well however python program- /source/ is still completely ASCII. Well=E2=80=A6 Actually with python 3 (not 2) this is already possible #+BEGIN_SRC python >>> =CE=B1, =CE=B2, =CE=B3 =3D 1,2,3 >>> (=CE=B1, =CE=B2, =CE=B3) (1, 2, 3) #+END_SRC * Legend ** Math Space Advantage -- MSA Below I will point such cases out with a 'MSA'. In some cases its technically required to have spaces, in others its just more aesthetic to have them. #+BEGIN_SRC python x in lst #+END_SRC python cannot be written as #+BEGIN_SRC python xinlst #+END_SRC python ----------------------------------------------------------- Some blocks export (to html) correct; some dont. Finally traced it to the end line: #+END_SRC python which should be #+END_SRC However emacs shows the end line in red as though it recognized it. Could the fontlock highlighter and the exporter be consistent with respect to syntax? IOW for a block ending as follows: #+BEGIN_SRC python If it is wrong it should not be colored as a block If it is right then export should work on it as a block Thanks Rusi org version: 8.2.5e emacs version 24.3.1