From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jisang Yoo Subject: ASCII art in org src mode triggers font lock glitch Date: Wed, 17 Jul 2013 20:45:38 +0900 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzQAy-00070Y-Rv for emacs-orgmode@gnu.org; Wed, 17 Jul 2013 07:45:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzQAt-0001XH-TL for emacs-orgmode@gnu.org; Wed, 17 Jul 2013 07:45:44 -0400 Received: from mail-qa0-x234.google.com ([2607:f8b0:400d:c00::234]:41661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzQAt-0001X8-OV for emacs-orgmode@gnu.org; Wed, 17 Jul 2013 07:45:39 -0400 Received: by mail-qa0-f52.google.com with SMTP id bv4so1035238qab.18 for ; Wed, 17 Jul 2013 04:45:39 -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 Short description: Invoking C-c ' (org-edit-special) on an org src block containing an ascii diagram causes table recognition and font lock glitch if the diagram has a rectangle in it. Long description: Invoke C-c ' on any of the following three src blocks #+BEGIN_SRC artist +---------+ | | | box1 | | | +---------+ #+END_SRC #+BEGIN_EXAMPLE +---------+ | | | box2 | | | +---------+ #+END_EXAMPLE #+BEGIN_ASCII +---------+ | | | box3 | | | +---------+ #+END_ASCII and org src mode will trigger table recognition (message "Recognizing tables...done" in echo area) and leave some font lock glitch such as blue background inside the rectangle. Another glitch is that if the user uses variable-pitch for text outside source blocks and fixed-pitch for text inside them, the org-src-mode buffer will be in variable-pitch font after table recognition is triggered. This bug sometimes disappear on second invoke of org-edit-special of the same block. Workarounds for now: 1. Prefixing the diagram (with dots in this case): #+BEGIN_EXAMPLE . +---------+ . | | . | box | . | | . +---------+ #+END_EXAMPLE 2. Using a colon block which does not have the benefit of being foldable: : +---------+ : | | : | box | : | | : +---------+ 3. Not using + in rectangle corners: #+BEGIN_EXAMPLE --------- | | | box | | | --------- #+END_EXAMPLE