* comment section with latex_header
@ 2015-03-22 11:02 Andreas Leha
2015-03-22 11:37 ` Rasmus
2015-03-23 23:36 ` Nicolas Goaziou
0 siblings, 2 replies; 21+ messages in thread
From: Andreas Leha @ 2015-03-22 11:02 UTC (permalink / raw)
To: emacs-orgmode
Hi all,
If there are `#+latex_header:' entries in a section and that section is
`COMMENT'ed out, I'd expect the #+latex_header entries to be
uneffective. As they are when I comment them out one by one as in
`# #+latex_header:'.
Is this a bug? (I'd say, yes....)
Regards,
Andreas
PS:
ECM
--8<---------------cut here---------------start------------->8---
* Test
test
* COMMENT LaTeX setup
#+latex_header: \usepackage{foo}
--8<---------------cut here---------------end--------------->8---
LaTeX export:
--8<---------------cut here---------------start------------->8---
% Created 2015-03-22 Sun 10:56
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
% ...
\usepackage{foo}
% ...
\begin{document}
\tableofcontents
\section{Test}
\label{sec-1}
test
% Emacs 24.4.50.1 (Org mode 8.3beta)
\end{document}
--8<---------------cut here---------------end--------------->8---
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-22 11:02 comment section with latex_header Andreas Leha
@ 2015-03-22 11:37 ` Rasmus
2015-03-23 8:31 ` Andreas Leha
2015-03-23 8:56 ` Sebastien Vauban
2015-03-23 23:36 ` Nicolas Goaziou
1 sibling, 2 replies; 21+ messages in thread
From: Rasmus @ 2015-03-22 11:37 UTC (permalink / raw)
To: emacs-orgmode
Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
> Hi all,
>
> If there are `#+latex_header:' entries in a section and that section is
> `COMMENT'ed out, I'd expect the #+latex_header entries to be
> uneffective. As they are when I comment them out one by one as in
> `# #+latex_header:'.
>
> Is this a bug? (I'd say, yes....)
Why? I guess you can still archive
--
To err is human. To screw up 10⁶ times per second, you need a computer
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-22 11:37 ` Rasmus
@ 2015-03-23 8:31 ` Andreas Leha
2015-03-23 10:01 ` Rasmus
2015-03-23 8:56 ` Sebastien Vauban
1 sibling, 1 reply; 21+ messages in thread
From: Andreas Leha @ 2015-03-23 8:31 UTC (permalink / raw)
To: emacs-orgmode
Hi Rasmus,
Rasmus <rasmus@gmx.us> writes:
> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>
>> Hi all,
>>
>> If there are `#+latex_header:' entries in a section and that section is
>> `COMMENT'ed out, I'd expect the #+latex_header entries to be
>> uneffective. As they are when I comment them out one by one as in
>> `# #+latex_header:'.
>>
>> Is this a bug? (I'd say, yes....)
>
> Why? I guess you can still archive
Could you expand on that?
Best,
Andreas
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-22 11:37 ` Rasmus
2015-03-23 8:31 ` Andreas Leha
@ 2015-03-23 8:56 ` Sebastien Vauban
1 sibling, 0 replies; 21+ messages in thread
From: Sebastien Vauban @ 2015-03-23 8:56 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Rasmus wrote:
> Andreas Leha <andreas.leha-A1rZ2h3LdSKGMSlLMZIubhS11BummzK+@public.gmane.org> writes:
>>
>> If there are `#+latex_header:' entries in a section and that section is
>> `COMMENT'ed out, I'd expect the #+latex_header entries to be
>> uneffective. As they are when I comment them out one by one as in
>> `# #+latex_header:'.
>>
>> Is this a bug? (I'd say, yes....)
>
> Why? I guess you can still archive
I'd also say that this is a bug, as -- in my understanding --
COMMENT'ing a subtree is exactly equivalent to commenting every line of
it, that is:
--8<---------------cut here---------------start------------->8---
* COMMENT Section
Some text
Some code
Some text
--8<---------------cut here---------------end--------------->8---
should be equivalent to:
--8<---------------cut here---------------start------------->8---
# * Section
# Some text
# Some code
# Some text
--8<---------------cut here---------------end--------------->8---
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-23 8:31 ` Andreas Leha
@ 2015-03-23 10:01 ` Rasmus
2015-03-23 10:09 ` Andreas Leha
0 siblings, 1 reply; 21+ messages in thread
From: Rasmus @ 2015-03-23 10:01 UTC (permalink / raw)
To: emacs-orgmode
Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
> Hi Rasmus,
>
> Rasmus <rasmus@gmx.us> writes:
>> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>>
>>> Hi all,
>>>
>>> If there are `#+latex_header:' entries in a section and that section is
>>> `COMMENT'ed out, I'd expect the #+latex_header entries to be
>>> uneffective. As they are when I comment them out one by one as in
>>> `# #+latex_header:'.
>>>
>>> Is this a bug? (I'd say, yes....)
>>
>> Why? I guess you can still archive
>
> Could you expand on that?
Sorry, I must have clicked C-c C-c by accident.
#+LATEX_HEADERs in :noexport: sections are included. I guess that code in
COMMENT sections aren't included. So I guess keywords could also be
excluded. I don't know.
—Rasmus
--
⠠⠵
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-23 10:01 ` Rasmus
@ 2015-03-23 10:09 ` Andreas Leha
0 siblings, 0 replies; 21+ messages in thread
From: Andreas Leha @ 2015-03-23 10:09 UTC (permalink / raw)
To: emacs-orgmode
Hi Rasmus,
Rasmus <rasmus@gmx.us> writes:
> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>
>> Hi Rasmus,
>>
>> Rasmus <rasmus@gmx.us> writes:
>>> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>>>
>>>> Hi all,
>>>>
>>>> If there are `#+latex_header:' entries in a section and that section is
>>>> `COMMENT'ed out, I'd expect the #+latex_header entries to be
>>>> uneffective. As they are when I comment them out one by one as in
>>>> `# #+latex_header:'.
>>>>
>>>> Is this a bug? (I'd say, yes....)
>>>
>>> Why? I guess you can still archive
>>
>> Could you expand on that?
>
> Sorry, I must have clicked C-c C-c by accident.
>
> #+LATEX_HEADERs in :noexport: sections are included. I guess that code in
> COMMENT sections aren't included. So I guess keywords could also be
> excluded. I don't know.
>
> —Rasmus
Thanks,
Andreas
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-22 11:02 comment section with latex_header Andreas Leha
2015-03-22 11:37 ` Rasmus
@ 2015-03-23 23:36 ` Nicolas Goaziou
2015-03-23 23:54 ` Andreas Leha
2015-03-24 7:13 ` Robert Klein
1 sibling, 2 replies; 21+ messages in thread
From: Nicolas Goaziou @ 2015-03-23 23:36 UTC (permalink / raw)
To: Andreas Leha; +Cc: emacs-orgmode
Hello,
Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
> If there are `#+latex_header:' entries in a section and that section is
> `COMMENT'ed out, I'd expect the #+latex_header entries to be
> uneffective. As they are when I comment them out one by one as in
> `# #+latex_header:'.
>
> Is this a bug? (I'd say, yes....)
This is fixed in c9a52787c14c3a7429bcd3c8975350525e0baa04. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-23 23:36 ` Nicolas Goaziou
@ 2015-03-23 23:54 ` Andreas Leha
2015-03-24 7:13 ` Robert Klein
1 sibling, 0 replies; 21+ messages in thread
From: Andreas Leha @ 2015-03-23 23:54 UTC (permalink / raw)
To: emacs-orgmode
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>
>> If there are `#+latex_header:' entries in a section and that section is
>> `COMMENT'ed out, I'd expect the #+latex_header entries to be
>> uneffective. As they are when I comment them out one by one as in
>> `# #+latex_header:'.
>>
>> Is this a bug? (I'd say, yes....)
>
> This is fixed in c9a52787c14c3a7429bcd3c8975350525e0baa04. Thank you.
>
Thanks. Confirmed.
Andreas
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-23 23:36 ` Nicolas Goaziou
2015-03-23 23:54 ` Andreas Leha
@ 2015-03-24 7:13 ` Robert Klein
2015-03-24 8:41 ` Nicolas Goaziou
1 sibling, 1 reply; 21+ messages in thread
From: Robert Klein @ 2015-03-24 7:13 UTC (permalink / raw)
To: emacs-orgmode
On 03/24/2015 12:36 AM, Nicolas Goaziou wrote:
> Hello,
>
> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>
>> If there are `#+latex_header:' entries in a section and that section is
>> `COMMENT'ed out, I'd expect the #+latex_header entries to be
>> uneffective. As they are when I comment them out one by one as in
>> `# #+latex_header:'.
>>
>> Is this a bug? (I'd say, yes....)
>
> This is fixed in c9a52787c14c3a7429bcd3c8975350525e0baa04. Thank you.
>
> Regards,
>
Hello,
this patch also breaks this kind of construct where not the table is
exported, but the one created from the booktabs() call:
---> begin example <---
* Grundlagen
*** COMMENT unexported subtree with table source
#+tblname: masse
| 1 gestr. Teelöffel | 1 gestr. Eßlöffel | 1 Tasse |
| ca. 5 ccm | ca 15 ccm | ca 120 ccm |
|---------------------+-----------------------+-------------|
| Zimt 2 g | Haferflocken 8 g | Mehl 80 g |
| Paprika 2 g | Speisestärke 9 g | Grieß 96 g |
| Speisestärke 2--3 g | Mehl, Semmelmehl 10 g | Zucker 90 g |
| Zucker 4 g | Salz, Zucker, Öl 15 g | |
| Salz 5 g | Reis, Butter 15 g | |
** Maße und Gewichte
#+call: booktabs(table=masse, align="lll") :results latex :exports results
---> end example <---
booktabs() code is from library-of-babel.org (currently residing in the
doc directory). Also cf.
http://orgmode.org/tmp/worg/org-contrib/babel/languages/ob-doc-LaTeX.html.
However, in this org version (8.3 beta+) you get the same / similar
results using
---> begin example <---
** Maße und Gewichte
#+tblname: masse
#+attr_latex: :align lll :booktabs t
| 1 gestr. Teelöffel | 1 gestr. Eßlöffel | 1 Tasse |
| ca. 5 ccm | ca 15 ccm | ca 120 ccm |
|---------------------+-----------------------+-------------|
| Zimt 2 g | Haferflocken 8 g | Mehl 80 g |
| Paprika 2 g | Speisestärke 9 g | Grieß 96 g |
| Speisestärke 2--3 g | Mehl, Semmelmehl 10 g | Zucker 90 g |
| Zucker 4 g | Salz, Zucker, Öl 15 g | |
| Salz 5 g | Reis, Butter 15 g | |
---> end example <---
This change probably ought to be mentioned in the Changes for a 8.3 release.
Best regards,
Robert
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-24 7:13 ` Robert Klein
@ 2015-03-24 8:41 ` Nicolas Goaziou
2015-03-24 9:04 ` Sebastien Vauban
0 siblings, 1 reply; 21+ messages in thread
From: Nicolas Goaziou @ 2015-03-24 8:41 UTC (permalink / raw)
To: Robert Klein; +Cc: emacs-orgmode
Hello,
Robert Klein <RoKlein@roklein.de> writes:
> this patch also breaks this kind of construct where not the table is
> exported, but the one created from the booktabs() call:
>
>
> ---> begin example <---
> * Grundlagen
> *** COMMENT unexported subtree with table source
> #+tblname: masse
This is deprecated. Use #+name: instead.
> | 1 gestr. Teelffel | 1 gestr. Elffel | 1 Tasse |
> | ca. 5 ccm | ca 15 ccm | ca 120 ccm |
> |---------------------+-----------------------+-------------|
> | Zimt 2 g | Haferflocken 8 g | Mehl 80 g |
> | Paprika 2 g | Speisestärke 9 g | Grieß 96 g |
> | Speisestärke 2--3 g | Mehl, Semmelmehl 10 g | Zucker 90 g |
> | Zucker 4 g | Salz, Zucker, Öl 15 g | |
> | Salz 5 g | Reis, Butter 15 g | |
>
> ** Maße und Gewichte
>
> #+call: booktabs(table=masse, align="lll") :results latex :exports results
> ---> end example <---
Good catch. The line between data that can be accessed and data that
cannot in a commented subtree is blurry.
Anyway, this should be fixed in
359572d37eb3131d934fbfaeffdee0c2a1abc7cc. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-24 8:41 ` Nicolas Goaziou
@ 2015-03-24 9:04 ` Sebastien Vauban
2015-03-25 11:46 ` Robert Klein
2015-03-26 20:14 ` Nicolas Goaziou
0 siblings, 2 replies; 21+ messages in thread
From: Sebastien Vauban @ 2015-03-24 9:04 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Nicolas Goaziou wrote:
> Robert Klein <RoKlein-dMgjidx2iAaELgA04lAiVw@public.gmane.org> writes:
>
>> this patch also breaks this kind of construct where not the table is
>> exported, but the one created from the booktabs() call:
>>
>>
>> ---> begin example <---
>> * Grundlagen
>> *** COMMENT unexported subtree with table source
>> #+tblname: masse
>
> This is deprecated. Use #+name: instead.
>
>> | 1 gestr. Teelffel | 1 gestr. Elffel | 1 Tasse |
>> | ca. 5 ccm | ca 15 ccm | ca 120 ccm |
>> |---------------------+-----------------------+-------------|
>> | Zimt 2 g | Haferflocken 8 g | Mehl 80 g |
>> | Paprika 2 g | Speisestärke 9 g | Grieß 96 g |
>> | Speisestärke 2--3 g | Mehl, Semmelmehl 10 g | Zucker 90 g |
>> | Zucker 4 g | Salz, Zucker, Öl 15 g | |
>> | Salz 5 g | Reis, Butter 15 g | |
>>
>> ** Maße und Gewichte
>>
>> #+call: booktabs(table=masse, align="lll") :results latex :exports results
>> ---> end example <---
>
> Good catch. The line between data that can be accessed and data that
> cannot in a commented subtree is blurry.
Can't we say that a COMMENT'ed subtree is like having all of its
contents commented, line by line? IOW, nothing "accessible"?
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-24 9:04 ` Sebastien Vauban
@ 2015-03-25 11:46 ` Robert Klein
2015-03-26 8:35 ` Sebastien Vauban
2015-03-26 20:14 ` Nicolas Goaziou
1 sibling, 1 reply; 21+ messages in thread
From: Robert Klein @ 2015-03-25 11:46 UTC (permalink / raw)
To: emacs-orgmode
Hi,
On 03/24/2015 10:04 AM, Sebastien Vauban wrote:
> Can't we say that a COMMENT'ed subtree is like having all of its
> contents commented, line by line? IOW, nothing "accessible"?
This would probably break a lot of babel stuff.
If there was an option to disable exports for #+NAME:-ed stuff (i.e.
data sources for babel), e.g. somtehing like
#+NAME: xyzzy :exports none
| munich | 13 |
| cologne | 12 |
you could deprecate and eventually disable data sources in COMMENT-ed
section.
Best regards
Robert
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-25 11:46 ` Robert Klein
@ 2015-03-26 8:35 ` Sebastien Vauban
2015-03-26 13:06 ` Andreas Leha
0 siblings, 1 reply; 21+ messages in thread
From: Sebastien Vauban @ 2015-03-26 8:35 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Robert Klein wrote:
> On 03/24/2015 10:04 AM, Sebastien Vauban wrote:
>
>> Can't we say that a COMMENT'ed subtree is like having all of its
>> contents commented, line by line? IOW, nothing "accessible"?
>
> This would probably break a lot of babel stuff.
Could you elaborate why?
> If there was an option to disable exports for #+NAME:-ed stuff (i.e.
> data sources for babel), e.g. somtehing like
>
> #+NAME: xyzzy :exports none
> | munich | 13 |
> | cologne | 12 |
>
> you could deprecate and eventually disable data sources in COMMENT-ed
> section.
If you *not to export* some stuff in a subtree, adding the "noexport"
tag would be enough, right?
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-26 8:35 ` Sebastien Vauban
@ 2015-03-26 13:06 ` Andreas Leha
2015-03-26 20:17 ` Nicolas Goaziou
0 siblings, 1 reply; 21+ messages in thread
From: Andreas Leha @ 2015-03-26 13:06 UTC (permalink / raw)
To: emacs-orgmode
Hi all,
Sebastien Vauban <sva-news@mygooglest.com> writes:
> Robert Klein wrote:
>> On 03/24/2015 10:04 AM, Sebastien Vauban wrote:
>>
>>> Can't we say that a COMMENT'ed subtree is like having all of its
>>> contents commented, line by line? IOW, nothing "accessible"?
>>
>> This would probably break a lot of babel stuff.
>
> Could you elaborate why?
>
>> If there was an option to disable exports for #+NAME:-ed stuff (i.e.
>> data sources for babel), e.g. somtehing like
>>
>> #+NAME: xyzzy :exports none
>> | munich | 13 |
>> | cologne | 12 |
>>
>> you could deprecate and eventually disable data sources in COMMENT-ed
>> section.
>
> If you *not to export* some stuff in a subtree, adding the "noexport"
> tag would be enough, right?
>
> Best regards,
> Seb
FWIW, I agree that COMMENT should be equivalent to individual line # .
Sections that should be accessible without being exported get
the :noexport: tag.
Is there any usecase for COMMENTed sections that is not covered
by :noexport:?
Regards,
Andreas
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-24 9:04 ` Sebastien Vauban
2015-03-25 11:46 ` Robert Klein
@ 2015-03-26 20:14 ` Nicolas Goaziou
1 sibling, 0 replies; 21+ messages in thread
From: Nicolas Goaziou @ 2015-03-26 20:14 UTC (permalink / raw)
To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ
Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
writes:
> Can't we say that a COMMENT'ed subtree is like having all of its
> contents commented, line by line? IOW, nothing "accessible"?
There is, at least, one problem. Comments are always comments (really).
However COMMENT keyword is only active during export. That means the
behaviour will differ unexpectedly when exporting a document, as
reported by Robert Klein.
Anyway, anything is possible as long as it is clearly documented.
Regards,
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-26 13:06 ` Andreas Leha
@ 2015-03-26 20:17 ` Nicolas Goaziou
2015-03-26 21:02 ` Andreas Leha
0 siblings, 1 reply; 21+ messages in thread
From: Nicolas Goaziou @ 2015-03-26 20:17 UTC (permalink / raw)
To: Andreas Leha; +Cc: emacs-orgmode
Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
> FWIW, I agree that COMMENT should be equivalent to individual line # .
I hope you mean it should be equivalent during export only. Otherwise,
it would introduce some serious slowdown as COMMENT can be inherited.
> Sections that should be accessible without being exported get
> the :noexport: tag.
>
> Is there any usecase for COMMENTed sections that is not covered
> by :noexport:?
Babel code from a :noexport: headline is executed. It isn't when in
a COMMENT headline. I think both are useful.
Regards,
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-26 20:17 ` Nicolas Goaziou
@ 2015-03-26 21:02 ` Andreas Leha
2015-03-27 11:02 ` Nicolas Goaziou
0 siblings, 1 reply; 21+ messages in thread
From: Andreas Leha @ 2015-03-26 21:02 UTC (permalink / raw)
To: emacs-orgmode
Hi Nicolas,
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>
>> FWIW, I agree that COMMENT should be equivalent to individual line # .
>
> I hope you mean it should be equivalent during export only. Otherwise,
> it would introduce some serious slowdown as COMMENT can be inherited.
>
I see. I did not consider any possible slow-downs. I'd expect COMMENT
to behave exactly like # in every regard -- not only export. That is a
clearly defined behaviour, that should not produce confusion.
But I am not sure (hence my question below) whether there are use cases
that need different behaviour.
If COMMENT is only valid for export, then I would actually recommend
to rename it to make that clear.
>> Sections that should be accessible without being exported get
>> the :noexport: tag.
>>
>> Is there any usecase for COMMENTed sections that is not covered
>> by :noexport:?
>
> Babel code from a :noexport: headline is executed. It isn't when in
> a COMMENT headline. I think both are useful.
I completely agree. My question was, what a use case would be that
requires a COMMENT that behaves different from #'ing the individual
lines (and is not covered by :noexport: already).
Regards,
Andreas
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-26 21:02 ` Andreas Leha
@ 2015-03-27 11:02 ` Nicolas Goaziou
2015-03-27 11:24 ` Andreas Leha
2015-03-27 12:09 ` Robert Klein
0 siblings, 2 replies; 21+ messages in thread
From: Nicolas Goaziou @ 2015-03-27 11:02 UTC (permalink / raw)
To: Andreas Leha; +Cc: emacs-orgmode
Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
> I see. I did not consider any possible slow-downs. I'd expect COMMENT
> to behave exactly like # in every regard -- not only export. That is a
> clearly defined behaviour, that should not produce confusion.
As explained, this is not realistic.
> If COMMENT is only valid for export, then I would actually recommend
> to rename it to make that clear.
The manual is, IMO, pretty explicit:
Finally, a ‘COMMENT’ keyword at the beginning of an entry, but after
any other keyword or priority cookie, comments out the entire subtree.
In this case, the subtree is not exported and no code block within it is
executed either. The command below helps changing the comment status of
a headline.
> I completely agree. My question was, what a use case would be that
> requires a COMMENT that behaves different from #'ing the individual
> lines (and is not covered by :noexport: already).
I don't think there is any. This is basically what my first patch did
(i.e., removing any COMMENT subtree at the very beginning of export
process), but it nevertheless surprised some users.
Regards,
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-27 11:02 ` Nicolas Goaziou
@ 2015-03-27 11:24 ` Andreas Leha
2015-03-27 12:09 ` Robert Klein
1 sibling, 0 replies; 21+ messages in thread
From: Andreas Leha @ 2015-03-27 11:24 UTC (permalink / raw)
To: emacs-orgmode
Hi Nicolas,
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>
>> I see. I did not consider any possible slow-downs. I'd expect COMMENT
>> to behave exactly like # in every regard -- not only export. That is a
>> clearly defined behaviour, that should not produce confusion.
>
> As explained, this is not realistic.
>
OK, then I'll update my mental model about COMMENTs.
>> If COMMENT is only valid for export, then I would actually recommend
>> to rename it to make that clear.
>
> The manual is, IMO, pretty explicit:
>
> Finally, a ‘COMMENT’ keyword at the beginning of an entry, but after
> any other keyword or priority cookie, comments out the entire subtree.
> In this case, the subtree is not exported and no code block within it is
> executed either. The command below helps changing the comment status of
> a headline.
>
>> I completely agree. My question was, what a use case would be that
>> requires a COMMENT that behaves different from #'ing the individual
>> lines (and is not covered by :noexport: already).
>
> I don't think there is any. This is basically what my first patch did
> (i.e., removing any COMMENT subtree at the very beginning of export
> process), but it nevertheless surprised some users.
>
Well, in that case my updated mental model should not change anything.
Thanks,
Andreas
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-27 11:02 ` Nicolas Goaziou
2015-03-27 11:24 ` Andreas Leha
@ 2015-03-27 12:09 ` Robert Klein
2015-03-28 15:00 ` Nicolas Goaziou
1 sibling, 1 reply; 21+ messages in thread
From: Robert Klein @ 2015-03-27 12:09 UTC (permalink / raw)
To: emacs-orgmode
Hi,
On 03/27/2015 12:02 PM, Nicolas Goaziou wrote:
> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>> I completely agree. My question was, what a use case would be that
>> requires a COMMENT that behaves different from #'ing the individual
>> lines (and is not covered by :noexport: already).
>
> I don't think there is any. This is basically what my first patch did
> (i.e., removing any COMMENT subtree at the very beginning of export
> process), but it nevertheless surprised some users.
>
Just a note: I didn't know of :noexport: before Andreas brought it up in
this thread.
If you revert the second patch, please put a note in the release notes
for the next org release, so the other babel users know a migration path.
Best regards
Robert
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: comment section with latex_header
2015-03-27 12:09 ` Robert Klein
@ 2015-03-28 15:00 ` Nicolas Goaziou
0 siblings, 0 replies; 21+ messages in thread
From: Nicolas Goaziou @ 2015-03-28 15:00 UTC (permalink / raw)
To: Robert Klein; +Cc: emacs-orgmode
Robert Klein <RoKlein@roklein.de> writes:
> If you revert the second patch, please put a note in the release notes
> for the next org release, so the other babel users know a migration
> path.
I reverted the second patch, and slightly changed documentation. I'm not
sure about ORG NEWS as using data from a COMMENT subtree was undefined
(AFAIR it didn't work in Org 7.x).
Regards,
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2015-03-28 14:59 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-22 11:02 comment section with latex_header Andreas Leha
2015-03-22 11:37 ` Rasmus
2015-03-23 8:31 ` Andreas Leha
2015-03-23 10:01 ` Rasmus
2015-03-23 10:09 ` Andreas Leha
2015-03-23 8:56 ` Sebastien Vauban
2015-03-23 23:36 ` Nicolas Goaziou
2015-03-23 23:54 ` Andreas Leha
2015-03-24 7:13 ` Robert Klein
2015-03-24 8:41 ` Nicolas Goaziou
2015-03-24 9:04 ` Sebastien Vauban
2015-03-25 11:46 ` Robert Klein
2015-03-26 8:35 ` Sebastien Vauban
2015-03-26 13:06 ` Andreas Leha
2015-03-26 20:17 ` Nicolas Goaziou
2015-03-26 21:02 ` Andreas Leha
2015-03-27 11:02 ` Nicolas Goaziou
2015-03-27 11:24 ` Andreas Leha
2015-03-27 12:09 ` Robert Klein
2015-03-28 15:00 ` Nicolas Goaziou
2015-03-26 20:14 ` Nicolas Goaziou
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).