From: Kaushal Modi <kaushal.modi@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: Request to add support for escaping comments in org blocks
Date: Tue, 03 May 2016 19:22:59 +0000 [thread overview]
Message-ID: <CAFyQvY18N9niFCEfR0AzxQ=5PZdjxy2isum9UytGE7k+hKy9uQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]
Hi,
I would like to add the Local Variables comment block to my org file (for
documentation purpose) without affecting the actual local variable values
in that buffer.
Here is a minimum working example:
#+BEGIN_SRC org
,#+STARTUP: align
,* COMMENT Local Variables
,# Local Variables:
,# fill-column: 90
,# End:
#+END_SRC
The problem with above is that the commas before the comments are seen in
the export too.
The ASCII export looks like this:
,----
| #+STARTUP: align
| * COMMENT Local Variables
| ,# Local Variables:
| ,# fill-column: 80
| ,# End:
`----
If I instead have
#+BEGIN_SRC org
,#+STARTUP: align
,* COMMENT Local Variables
# Local Variables:
# fill-column: 80
# End:
#+END_SRC
the export looks fine (below) .. but then that corrupts the local variables
in that buffer.
,----
| #+STARTUP: align
| * COMMENT Local Variables
| # Local Variables:
| # fill-column: 80
| # End:
`----
Can we please add support for comma escaped comments in source blocks?
Thanks.
Kaushal
--
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 1839 bytes --]
next reply other threads:[~2016-05-03 19:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-03 19:22 Kaushal Modi [this message]
2016-05-03 23:23 ` Request to add support for escaping comments in org blocks Charles C. Berry
2016-05-04 3:44 ` Kaushal Modi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFyQvY18N9niFCEfR0AzxQ=5PZdjxy2isum9UytGE7k+hKy9uQ@mail.gmail.com' \
--to=kaushal.modi@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.