Hello Nicolas
>> In plain-text parts of org documents (i.e. that would be exported as
>> the content of 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 b
timor writes:
> 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.
I'd rather define some specifications right from the beginning, i.e.,
what, where and, ultimately
Hello Nicolas,
2016-04-19 12:16 GMT+02:00 Nicolas Goaziou :
> 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 t
Hello,
timor writes:
> Specification-wise, I cannot think of anything other than
>
> "Use to prevent any special characters from formatting text."
>
> I guess one would have to define the list of characters which can be escaped.
> I also don't know if backslash is the correct way to go.
Actual
Hello Nicolas,
Sorry for not replying earlier. If my comments don't matter anymore,
please ignore.
Specification-wise, I cannot think of anything other than
"Use to prevent any special characters from formatting text."
I guess one would have to define the list of characters which can be escape
Hello,
timor writes:
> I am wondering why there is no simple backslash-escaping of org-mode
> syntax?
I think a backslash escaping is needed. However, I don't think it is
going to be that simple. Do you have some specifications in mind?
Regards,
--
Nicolas Goaziou
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 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 sugg
That's correct. That code might be an overkill for people who never needed
org entities.
I thought that I have never used `C-u` before plain single characters, so
why not make use of that in org mode. With that code in place, inserting an
org entity is now C-u away :)
If I happen to need org enti
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 esc
Kaushal Modi writes:
> I got really interested in org-entities (to deal with the case I
> mentioned in the first email in this thread like \ast{}shrug\ast{})
> and came up with this:
[...]
> Question to the list is: Does this advise mask any useful
> functionality of org-self-insert-command?
T
I got really interested in org-entities (to deal with the case I mentioned
in the first email in this thread like \ast{}shrug\ast{}) and came up with
this:
=
(defun modi/org-entity-get-name (char)
"Return the entity name for CHAR. For example, return \"ast\" for *."
(let ((ll (append org-
Here's the MWE once again with proper indication ([ZWS]) of where you need
to insert the zero width space char.
=
* Escaping =equal= sign in verbatim formatting.
=a\equal{}b+c=
** Here's the same but using zero width spaces instead of /org entities/.
=a=[ZWS]b+c=
* Here I am trying to have d
Thanks for letting me know about org-entities. That is awesome. I now know
how to escape various characters in general, but unfortunately this does
not work within verbatim formatting (which makes sense).
Here's a minimum working example:
=
* Escaping =equal= sign in verbatim formatting.
=a\
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 esc
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
othe
Hello,
Kaushal Modi 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
>
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 val
17 matches
Mail list logo