From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Show presence of zero width spaces using overlay Date: Sat, 19 Sep 2015 13:37:30 +0200 Message-ID: <878u82tzb9.fsf@nicolasgoaziou.fr> References: <87twqrtou5.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdGQq-0002he-8m for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 07:35:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdGQp-0004RN-Eh for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 07:35:52 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:58250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdGQp-0004RG-8F for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 07:35:51 -0400 In-Reply-To: (Kaushal Modi's message of "Fri, 18 Sep 2015 22:39:32 +0000") 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: Kaushal Modi Cc: emacs-org list Kaushal Modi writes: > 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? As I said, entities can only escape most Org syntax. Verbatim and code objects are an exception. Here I think we should introduce an escape mechanism, much like the one used in macro arguments in order to escape commas. For example, in a verbatim object, one only needs to escape "=", using common "\". Obviously, "\=" constructs can be escaped with "\\=" and so on. Likewise, in code objects, only "~" needs to be escaped. In any case, I don't think Org syntax should rely on non-ASCII characters. Regards,