emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Quoting characters?
@ 2012-01-12 20:58 Yu
  2012-01-21  6:04 ` Samuel Wales
  0 siblings, 1 reply; 2+ messages in thread
From: Yu @ 2012-01-12 20:58 UTC (permalink / raw)
  To: org-mode mailing list

Hello!

When working with Org-mode I sometimes run into oddities, when a
character I need clashes with org-mode syntax. Is there a way to avoid
this?

Examples would be:

Writing a macro that expands to `$\neg$':
    #+macro: not $\neg$
expands to
    $
    eg$
even if I write it as \\neg. Writing the macro in the C-c C-' buffer
produces \n, but when editing it again, it is displayed as a newline.

Similiarily, I found no way to have "\^" or "\_" appear in the export,
when I wanted to write about escaping ^ and _ as =\^= and =\_=
respectively. Here as well, writing multiple backslashes wouldn't
change the output.


Maybe related, I found that when editing an block
    : #+foo: bar
    : This is an org-mode example
with C-c C-', the result text will be
    : ,#+foo: bar
    : This is an org-mode example
The extra comma generated will still be there also in the C-c C-'
editing buffer.

In a source code block, that is declared to be of the language "org",
this behaviour doesn't appear, but it reappears for other languages.

When exporting to html or pdf, the comma isn't present for "src"
blocks, but it is for the "colon" blocks.


kind regards, Yu

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

* Re: Quoting characters?
  2012-01-12 20:58 Quoting characters? Yu
@ 2012-01-21  6:04 ` Samuel Wales
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Wales @ 2012-01-21  6:04 UTC (permalink / raw)
  To: Yu; +Cc: org-mode mailing list

No solution, but sympathy.  Syntax risk is difficult to prevent in Org
 I wonder if we can come up with incremental improvements that involve
more universal escaping, quoting, nesting, etc. mechanisms somehow?

(This is /not/ intended to be a sly plug for my universal syntax
proposal.  That's not intended to replace all existing syntax, but
only to be used for future syntax.  However, I do have a list of
parsing risk issues on the list someplace that might be a reference.)

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
===
Bigotry against people with serious diseases is still bigotry.

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

end of thread, other threads:[~2012-01-21  6:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-12 20:58 Quoting characters? Yu
2012-01-21  6:04 ` Samuel Wales

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