* Babel add comma in front of my '*'
@ 2012-02-15 15:02 Daniel Dehennin
2012-02-18 15:23 ` Eric Schulte
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Dehennin @ 2012-02-15 15:02 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 515 bytes --]
Hello,
I tryed to babelize an iptables-save file and file to restore it.
Babel put a comma in front of my '*', in the following, the '*mangle'
became ',*mangle':
#+begin_src text
# Generated by iptables-save v1.4.4 on Wed Feb 15 10:16:05 2012
,*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
#+end_src
Regards.
--
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Babel add comma in front of my '*'
2012-02-15 15:02 Babel add comma in front of my '*' Daniel Dehennin
@ 2012-02-18 15:23 ` Eric Schulte
2012-02-18 16:25 ` Daniel Dehennin
0 siblings, 1 reply; 4+ messages in thread
From: Eric Schulte @ 2012-02-18 15:23 UTC (permalink / raw)
To: Daniel Dehennin; +Cc: emacs-orgmode
Daniel Dehennin <daniel.dehennin@baby-gnu.org> writes:
> Hello,
>
> I tryed to babelize an iptables-save file and file to restore it.
>
> Babel put a comma in front of my '*', in the following, the '*mangle'
> became ',*mangle':
>
> #+begin_src text
> # Generated by iptables-save v1.4.4 on Wed Feb 15 10:16:05 2012
> ,*mangle
> :PREROUTING ACCEPT [0:0]
> :INPUT ACCEPT [0:0]
> :FORWARD ACCEPT [0:0]
> :OUTPUT ACCEPT [0:0]
> :POSTROUTING ACCEPT [0:0]
> COMMIT
> #+end_src
>
> Regards.
Yes,
Org-mode does the above to protect the rest of the file from the
possible Org-mode syntax in the code block. However if you then use
this text (e.g., through tangling or reference from another code block)
the comma will be automatically removed, so it shouldn't cause you any
problems.
Best,
--
Eric Schulte
http://cs.unm.edu/~eschulte/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Babel add comma in front of my '*'
2012-02-18 15:23 ` Eric Schulte
@ 2012-02-18 16:25 ` Daniel Dehennin
2012-02-18 17:39 ` Eric Schulte
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Dehennin @ 2012-02-18 16:25 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 623 bytes --]
Eric Schulte <eric.schulte@gmx.com> writes:
[...]
> Yes,
>
> Org-mode does the above to protect the rest of the file from the
> possible Org-mode syntax in the code block. However if you then use
> this text (e.g., through tangling or reference from another code block)
> the comma will be automatically removed, so it shouldn't cause you any
> problems.
What about removing it during org-edit-special?
My use is to org-edit-special the block, and use that overlay by
cut&past and so on.
Regards.
--
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Babel add comma in front of my '*'
2012-02-18 16:25 ` Daniel Dehennin
@ 2012-02-18 17:39 ` Eric Schulte
0 siblings, 0 replies; 4+ messages in thread
From: Eric Schulte @ 2012-02-18 17:39 UTC (permalink / raw)
To: Daniel Dehennin; +Cc: emacs-orgmode
Daniel Dehennin <daniel.dehennin@baby-gnu.org> writes:
> Eric Schulte <eric.schulte@gmx.com> writes:
>
>
> [...]
>
>> Yes,
>>
>> Org-mode does the above to protect the rest of the file from the
>> possible Org-mode syntax in the code block. However if you then use
>> this text (e.g., through tangling or reference from another code block)
>> the comma will be automatically removed, so it shouldn't cause you any
>> problems.
>
> What about removing it during org-edit-special?
>
> My use is to org-edit-special the block, and use that overlay by
> cut&past and so on.
>
> Regards.
I've just pushed up a fix so that commas will be stripped when
org-edit-special is used.
Best,
--
Eric Schulte
http://cs.unm.edu/~eschulte/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-18 17:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-15 15:02 Babel add comma in front of my '*' Daniel Dehennin
2012-02-18 15:23 ` Eric Schulte
2012-02-18 16:25 ` Daniel Dehennin
2012-02-18 17:39 ` Eric Schulte
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).