emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Show presence of zero width spaces using overlay
@ 2015-09-18 18:44 Kaushal Modi
  2015-09-18 21:11 ` Nicolas Goaziou
  0 siblings, 1 reply; 17+ messages in thread
From: Kaushal Modi @ 2015-09-18 18:44 UTC (permalink / raw)
  To: emacs-org list

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

Hi all,

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?

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

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Show presence of zero width spaces using overlay
@ 2015-09-22 15:13 timor
  2015-09-27  9:41 ` Nicolas Goaziou
  0 siblings, 1 reply; 17+ messages in thread
From: timor @ 2015-09-22 15:13 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

(this is my first post on this list, to a message that I don't have in
my inbox, so I don't know if it will thread correctly)

Kaushal Modi <kaushal.m...@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?

I am the OP of that QnA

I am wondering why there is no simple backslash-escaping of org-mode syntax?

regards,
timor

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Show presence of zero width spaces using overlay
@ 2016-04-19 11:38 timor
  2016-04-19 19:21 ` Nicolas Goaziou
  0 siblings, 1 reply; 17+ messages in thread
From: timor @ 2016-04-19 11:38 UTC (permalink / raw)
  To: mail; +Cc: emacs-orgmode

Hello Nicolas,

2016-04-19 12:16 GMT+02:00 Nicolas Goaziou <mail@nicolasgoaziou.fr>:
> Actually, this is not really a specification of the problem, which is
> quite tricky. The list of characters is but one part of it. Another part
> is where escaping should be allowed. Note that allowing to escape
> everywhere would be terrible, if only performance-wise. The last part is
> about handling it at the parser level (there's also the fontification,
> which doesn't use the parser ATM).

Good points.  I don't understand enough org mode internals to judge
how much effort is needed on which level for things like this.

Maybe it is viable to start defining and implementing some obvious
cases, which can later be generalized into a rule, so that code has
not to be rewritten on every level at once.

In light of this, I can think of defining the case that bugged me the
most like this:

In plain-text parts of org documents (i.e. that would be exported as
the content of <p> attributes in html, or to plain text paragraphs in
Markdown, etc.), there shall be a way to treat strings in the same way
as the surrounding plain text, which would otherwise be handled by
org-mode in a special way.

Does that help?

regards,
timor

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-04-19 23:20 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).