From: Jisang Yoo <jisang.yoo.ac+org@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: ASCII art in org src mode triggers font lock glitch
Date: Wed, 17 Jul 2013 20:45:38 +0900 [thread overview]
Message-ID: <CADtzDwaNFvipei55KjxqeQ5yiyTUXVs3j+w4v2wd4_HoLvOtAw@mail.gmail.com> (raw)
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
next reply other threads:[~2013-07-17 11:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-17 11:45 Jisang Yoo [this message]
2013-07-17 12:58 ` ASCII art in org src mode triggers font lock glitch Bastien
2013-07-18 23:00 ` Jisang Yoo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADtzDwaNFvipei55KjxqeQ5yiyTUXVs3j+w4v2wd4_HoLvOtAw@mail.gmail.com \
--to=jisang.yoo.ac+org@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).