emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>,
	emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Show presence of zero width spaces using overlay
Date: Fri, 18 Sep 2015 22:39:32 +0000	[thread overview]
Message-ID: <CAFyQvY231-ooVR4shT2Hb7pZKCZxiojPDCT_=ARZbHs=86FemQ@mail.gmail.com> (raw)
In-Reply-To: <87twqrtou5.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]

My most common uses are escaping double quotes (") and equals (=) within
org verbatim blocks (=VERBATIM=)

Examples:

1. =var=[ZWS]val=
2. =[ZWS]"something"[ZWS]=

Here [ZWS] is the 0x200b zero width space unicode char.

I found [ZWS] useful as a generic escape char for org mode. There are few
other cases where this has been useful, but I can't recall right now.

In any case, what would be the recommended way to escape " and = in the
above 2 examples?

On Fri, Sep 18, 2015 at 5:09 PM Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Kaushal Modi <kaushal.modi@gmail.com> writes:
>
> > The suggestion to use zero width spaces to sort of "escape" stuff in org
> > mode has come up many times. I have started using it a lot and suggest
> that
> > to other people now.
> >
> > Here is one such recent QnA on emacs.SE:
> > http://emacs.stackexchange.com/a/16702/115
> >
> > The OP of that question made a valid point that while using zero width
> > spaces is convenient, it is not apparent where it has been used in the
> > document.
> >
> > To resolve that, I am requesting a feature.
> >
> > Can the zero width spaces be optionally represented with something like a
> > single space overlay with a colored background (like purple)?
> >
> > Making this officially part of org-mode will probably make more people
> make
> > use of it.
> >
> > .. Or should people use zero width spaces?
>
> Entities can be used to escape most Org syntax, e.g.
>
>   \ast{}shrug\ast
>
> I see no compelling reason to treat zero width spaces specially.
>
>
> Regards,
>
> --
> Nicolas Goaziou
>

[-- Attachment #2: Type: text/html, Size: 2340 bytes --]

  reply	other threads:[~2015-09-18 22:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-18 18:44 Show presence of zero width spaces using overlay Kaushal Modi
2015-09-18 21:11 ` Nicolas Goaziou
2015-09-18 22:39   ` Kaushal Modi [this message]
2015-09-19  1:47     ` Eric Abrahamsen
2015-09-19  4:07       ` Kaushal Modi
2015-09-19  4:11         ` Kaushal Modi
2015-09-19  6:15           ` Kaushal Modi
2015-09-19  7:22             ` Eric Abrahamsen
2015-09-19 13:46               ` Kaushal Modi
2015-09-19 11:37     ` Nicolas Goaziou
  -- strict thread matches above, loose matches on Subject: below --
2015-09-22 15:13 timor
2015-09-27  9:41 ` Nicolas Goaziou
2016-04-19  9:23   ` timor
2016-04-19 10:16     ` Nicolas Goaziou
2016-04-19 11:38 timor
2016-04-19 19:21 ` Nicolas Goaziou
2016-04-19 23:20   ` timor

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='CAFyQvY231-ooVR4shT2Hb7pZKCZxiojPDCT_=ARZbHs=86FemQ@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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).