* org-mode code / verbatim delimiters don't work with quotation marks
@ 2012-02-20 13:30 Leo Alekseyev
2012-02-20 17:47 ` Michael Hannon
2012-02-20 17:54 ` Viktor Rosenfeld
0 siblings, 2 replies; 4+ messages in thread
From: Leo Alekseyev @ 2012-02-20 13:30 UTC (permalink / raw)
To: Emacs orgmode
I noticed that strings like ='foo'= or =di"= don't get recognized by
org as code, which is somewhat unfortunate because it forces me to
edit exported HTML by hand. Are there any workarounds for this
behavior?
--Leo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-mode code / verbatim delimiters don't work with quotation marks
2012-02-20 13:30 org-mode code / verbatim delimiters don't work with quotation marks Leo Alekseyev
@ 2012-02-20 17:47 ` Michael Hannon
2012-02-20 18:47 ` Leo Alekseyev
2012-02-20 17:54 ` Viktor Rosenfeld
1 sibling, 1 reply; 4+ messages in thread
From: Michael Hannon @ 2012-02-20 17:47 UTC (permalink / raw)
To: Leo Alekseyev, Emacs orgmode
> I noticed that strings like ='foo'= or =di"= don't get recognized by org as
> code, which is somewhat unfortunate because it forces me to edit exported
> HTML by hand. Are there any workarounds for this behavior?
Hi, Leo. You might try inserting a null character before and after the
quotation marks, as:
=^@'foo'^@=
where:
^@
means CTRL-@, in the usual, text-based notation.
-- Mike
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-mode code / verbatim delimiters don't work with quotation marks
2012-02-20 13:30 org-mode code / verbatim delimiters don't work with quotation marks Leo Alekseyev
2012-02-20 17:47 ` Michael Hannon
@ 2012-02-20 17:54 ` Viktor Rosenfeld
1 sibling, 0 replies; 4+ messages in thread
From: Viktor Rosenfeld @ 2012-02-20 17:54 UTC (permalink / raw)
To: emacs-orgmode
Hi,
this behavior is controlled by the contents of the 3rd element of
org-emphasis-regexp-components.
See this post:
http://thread.gmane.org/gmane.emacs.orgmode/20915/focus=20922
I've removed \" a while ago and haven't noticed any problems so far.
Cheers,
Viktor
Leo Alekseyev wrote:
> I noticed that strings like ='foo'= or =di"= don't get recognized by
> org as code, which is somewhat unfortunate because it forces me to
> edit exported HTML by hand. Are there any workarounds for this
> behavior?
>
> --Leo
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-mode code / verbatim delimiters don't work with quotation marks
2012-02-20 17:47 ` Michael Hannon
@ 2012-02-20 18:47 ` Leo Alekseyev
0 siblings, 0 replies; 4+ messages in thread
From: Leo Alekseyev @ 2012-02-20 18:47 UTC (permalink / raw)
To: Michael Hannon; +Cc: Emacs orgmode
Null character /sort of/ works: it makes org-mode insert the code
delimiters on export, but the presence of null characters breaks
export down the road, at least in my case. This time, I could
intercept the exported text and remove the null characters by hand,
but it might not always be the case.
What org really needs is a stronger verbatim quoting construct. In a
lot of cases, you just want your text to be displayed verbatim, with
no interpretation, period. Near as I can see, there's nothing in org
that can currently do this -- please correct me if I'm wrong. For
instance, things like =[[foo]]= should _not_ undergo further parsing /
be interpreted as links. Same goes for quotes, or virtually anything.
= signs should be allowed provided they are escaped in the usual
manner (=\==). The current behavior is very unsatisfactory.
On Mon, Feb 20, 2012 at 12:47 PM, Michael Hannon <jm_hannon@yahoo.com> wrote:
>> I noticed that strings like ='foo'= or =di"= don't get recognized by org as
>> code, which is somewhat unfortunate because it forces me to edit exported
>> HTML by hand. Are there any workarounds for this behavior?
>
> Hi, Leo. You might try inserting a null character before and after the
> quotation marks, as:
>
> =^@'foo'^@=
>
> where:
>
> ^@
>
> means CTRL-@, in the usual, text-based notation.
>
> -- Mike
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-20 18:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-20 13:30 org-mode code / verbatim delimiters don't work with quotation marks Leo Alekseyev
2012-02-20 17:47 ` Michael Hannon
2012-02-20 18:47 ` Leo Alekseyev
2012-02-20 17:54 ` Viktor Rosenfeld
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).