* [babel] cannot comment out noweb references
@ 2014-02-05 3:07 Samuel Wales
2014-02-05 4:59 ` Eric Schulte
0 siblings, 1 reply; 9+ messages in thread
From: Samuel Wales @ 2014-02-05 3:07 UTC (permalink / raw)
To: emacs-orgmode
This:
#+BEGIN_SRC org :exports none :noweb-ref whatever
...
with "# " or COMMENT still tries to be read by Babel. The latter
works as if not commented. The former errors.
Hope that's enough to reproduce.
Thanks.
Samuel
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Denmark: free Karina Hansen NOW.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [babel] cannot comment out noweb references
2014-02-05 3:07 [babel] cannot comment out noweb references Samuel Wales
@ 2014-02-05 4:59 ` Eric Schulte
2014-02-05 5:44 ` Samuel Wales
0 siblings, 1 reply; 9+ messages in thread
From: Eric Schulte @ 2014-02-05 4:59 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode
Samuel Wales <samologist@gmail.com> writes:
> This:
>
> #+BEGIN_SRC org :exports none :noweb-ref whatever
> ...
>
> with "# " or COMMENT still tries to be read by Babel. The latter
> works as if not commented. The former errors.
>
> Hope that's enough to reproduce.
>
I don't understand. Where are you putting the comment character? Can
you provide an example?
>
> Thanks.
>
> Samuel
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [babel] cannot comment out noweb references
2014-02-05 4:59 ` Eric Schulte
@ 2014-02-05 5:44 ` Samuel Wales
2014-02-06 0:57 ` Eric Schulte
0 siblings, 1 reply; 9+ messages in thread
From: Samuel Wales @ 2014-02-05 5:44 UTC (permalink / raw)
To: Eric Schulte; +Cc: emacs-orgmode
hi eric,
#+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
a
#+END_SRC
# #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
# b
# #+END_SRC
#+BEGIN_SRC sh :results output :noweb yes
echo <<whatever>>
#+END_SRC
it is a bug that babel tries to use b.
babel tries to use COMMENT comments also.
samuel
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Denmark: free Karina Hansen NOW.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [babel] cannot comment out noweb references
2014-02-05 5:44 ` Samuel Wales
@ 2014-02-06 0:57 ` Eric Schulte
2014-02-06 7:55 ` Samuel Wales
2014-02-11 7:21 ` Samuel Wales
0 siblings, 2 replies; 9+ messages in thread
From: Eric Schulte @ 2014-02-06 0:57 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode
Samuel Wales <samologist@gmail.com> writes:
> hi eric,
>
> #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
> a
> #+END_SRC
> # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
> # b
> # #+END_SRC
> #+BEGIN_SRC sh :results output :noweb yes
> echo <<whatever>>
> #+END_SRC
>
> it is a bug that babel tries to use b.
>
> babel tries to use COMMENT comments also.
>
> samuel
When executing the last code block I get the expected output, namely
"a".
#+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
a
#+END_SRC
# #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
# b
# #+END_SRC
#+BEGIN_SRC sh :results output :noweb yes
echo <<whatever>>
#+END_SRC
#+RESULTS:
: a
Best,
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [babel] cannot comment out noweb references
2014-02-06 0:57 ` Eric Schulte
@ 2014-02-06 7:55 ` Samuel Wales
2014-02-06 7:59 ` Samuel Wales
2014-02-11 7:21 ` Samuel Wales
1 sibling, 1 reply; 9+ messages in thread
From: Samuel Wales @ 2014-02-06 7:55 UTC (permalink / raw)
To: Eric Schulte; +Cc: emacs-orgmode
I get this:
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
org-babel-expand-noweb-references(nil)
org-babel-expand-noweb-references(("sh" "echo <<whatever2>>"
((:comments . "") (:shebang . "") (:cache . "no") (:padline . "")
(:noweb . "yes") (:tangle . "no") (:exports . "code") (:results .
"replace output") (:session . "none") (:hlines . "no") (:result-type .
output) (:result-params "output" "replace") (:rowname-names)
(:colname-names)) "" nil 0 #<marker at 2309 in bug.org>))
org-babel-execute-src-block(nil)
org-babel-execute-src-block-maybe()
org-babel-execute-maybe()
org-babel-execute-safely-maybe()
run-hook-with-args-until-success(org-babel-execute-safely-maybe)
org-ctrl-c-ctrl-c(nil)
call-interactively(org-ctrl-c-ctrl-c nil nil)
On 2/5/14, Eric Schulte <schulte.eric@gmail.com> wrote:
> When executing the last code block I get the expected output, namely
> "a".
>
> #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
> a
> #+END_SRC
>
> # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
> # b
> # #+END_SRC
>
> #+BEGIN_SRC sh :results output :noweb yes
> echo <<whatever>>
> #+END_SRC
>
> #+RESULTS:
> : a
>
> Best,
>
> --
> Eric Schulte
> https://cs.unm.edu/~eschulte
> PGP: 0x614CA05D
>
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Denmark: free Karina Hansen NOW.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [babel] cannot comment out noweb references
2014-02-06 7:55 ` Samuel Wales
@ 2014-02-06 7:59 ` Samuel Wales
0 siblings, 0 replies; 9+ messages in thread
From: Samuel Wales @ 2014-02-06 7:59 UTC (permalink / raw)
To: Eric Schulte; +Cc: emacs-orgmode
[i changed whatever to whatever2]
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Denmark: free Karina Hansen NOW.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [babel] cannot comment out noweb references
2014-02-06 0:57 ` Eric Schulte
2014-02-06 7:55 ` Samuel Wales
@ 2014-02-11 7:21 ` Samuel Wales
2014-02-24 3:12 ` Samuel Wales
1 sibling, 1 reply; 9+ messages in thread
From: Samuel Wales @ 2014-02-11 7:21 UTC (permalink / raw)
To: Eric Schulte; +Cc: emacs-orgmode
Try with:
(setq org-babel-use-quick-and-dirty-noweb-expansion t)
This setting is much, much faster, by the way.
On 2/5/14, Eric Schulte <schulte.eric@gmail.com> wrote:
> Samuel Wales <samologist@gmail.com> writes:
>
>> hi eric,
>>
>> #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
>> a
>> #+END_SRC
>> # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
>> # b
>> # #+END_SRC
>> #+BEGIN_SRC sh :results output :noweb yes
>> echo <<whatever>>
>> #+END_SRC
>>
>> it is a bug that babel tries to use b.
>>
>> babel tries to use COMMENT comments also.
>>
>> samuel
>
> When executing the last code block I get the expected output, namely
> "a".
>
> #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
> a
> #+END_SRC
>
> # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
> # b
> # #+END_SRC
>
> #+BEGIN_SRC sh :results output :noweb yes
> echo <<whatever>>
> #+END_SRC
>
> #+RESULTS:
> : a
>
> Best,
>
> --
> Eric Schulte
> https://cs.unm.edu/~eschulte
> PGP: 0x614CA05D
>
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Denmark: free Karina Hansen NOW.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [babel] cannot comment out noweb references
2014-02-11 7:21 ` Samuel Wales
@ 2014-02-24 3:12 ` Samuel Wales
2014-03-06 16:51 ` Eric Schulte
0 siblings, 1 reply; 9+ messages in thread
From: Samuel Wales @ 2014-02-24 3:12 UTC (permalink / raw)
To: Eric Schulte; +Cc: emacs-orgmode
By which I mean, the bug should be reproducible if you do so.
On 2/11/14, Samuel Wales <samologist@gmail.com> wrote:
> Try with:
>
> (setq org-babel-use-quick-and-dirty-noweb-expansion t)
>
> This setting is much, much faster, by the way.
>
> On 2/5/14, Eric Schulte <schulte.eric@gmail.com> wrote:
>> Samuel Wales <samologist@gmail.com> writes:
>>
>>> hi eric,
>>>
>>> #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
>>> a
>>> #+END_SRC
>>> # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref
>>> whatever
>>> # b
>>> # #+END_SRC
>>> #+BEGIN_SRC sh :results output :noweb yes
>>> echo <<whatever>>
>>> #+END_SRC
>>>
>>> it is a bug that babel tries to use b.
>>>
>>> babel tries to use COMMENT comments also.
>>>
>>> samuel
>>
>> When executing the last code block I get the expected output, namely
>> "a".
>>
>> #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
>> a
>> #+END_SRC
>>
>> # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
>> # b
>> # #+END_SRC
>>
>> #+BEGIN_SRC sh :results output :noweb yes
>> echo <<whatever>>
>> #+END_SRC
>>
>> #+RESULTS:
>> : a
>>
>> Best,
>>
>> --
>> Eric Schulte
>> https://cs.unm.edu/~eschulte
>> PGP: 0x614CA05D
>>
>
>
> --
> The Kafka Pandemic: http://thekafkapandemic.blogspot.com
>
> The disease DOES progress. MANY people have died from it. ANYBODY can get
> it.
>
> Denmark: free Karina Hansen NOW.
>
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. And
ANYBODY can get it without warning.
Denmark: free Karina Hansen NOW.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [babel] cannot comment out noweb references
2014-02-24 3:12 ` Samuel Wales
@ 2014-03-06 16:51 ` Eric Schulte
0 siblings, 0 replies; 9+ messages in thread
From: Eric Schulte @ 2014-03-06 16:51 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode
I think you may have to use the slower and more correct version of noweb
expansion to avoid these sorts of problems.
Best,
Samuel Wales <samologist@gmail.com> writes:
> By which I mean, the bug should be reproducible if you do so.
>
> On 2/11/14, Samuel Wales <samologist@gmail.com> wrote:
>> Try with:
>>
>> (setq org-babel-use-quick-and-dirty-noweb-expansion t)
>>
>> This setting is much, much faster, by the way.
>>
>> On 2/5/14, Eric Schulte <schulte.eric@gmail.com> wrote:
>>> Samuel Wales <samologist@gmail.com> writes:
>>>
>>>> hi eric,
>>>>
>>>> #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
>>>> a
>>>> #+END_SRC
>>>> # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref
>>>> whatever
>>>> # b
>>>> # #+END_SRC
>>>> #+BEGIN_SRC sh :results output :noweb yes
>>>> echo <<whatever>>
>>>> #+END_SRC
>>>>
>>>> it is a bug that babel tries to use b.
>>>>
>>>> babel tries to use COMMENT comments also.
>>>>
>>>> samuel
>>>
>>> When executing the last code block I get the expected output, namely
>>> "a".
>>>
>>> #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
>>> a
>>> #+END_SRC
>>>
>>> # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever
>>> # b
>>> # #+END_SRC
>>>
>>> #+BEGIN_SRC sh :results output :noweb yes
>>> echo <<whatever>>
>>> #+END_SRC
>>>
>>> #+RESULTS:
>>> : a
>>>
>>> Best,
>>>
>>> --
>>> Eric Schulte
>>> https://cs.unm.edu/~eschulte
>>> PGP: 0x614CA05D
>>>
>>
>>
>> --
>> The Kafka Pandemic: http://thekafkapandemic.blogspot.com
>>
>> The disease DOES progress. MANY people have died from it. ANYBODY can get
>> it.
>>
>> Denmark: free Karina Hansen NOW.
>>
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-03-06 22:17 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 3:07 [babel] cannot comment out noweb references Samuel Wales
2014-02-05 4:59 ` Eric Schulte
2014-02-05 5:44 ` Samuel Wales
2014-02-06 0:57 ` Eric Schulte
2014-02-06 7:55 ` Samuel Wales
2014-02-06 7:59 ` Samuel Wales
2014-02-11 7:21 ` Samuel Wales
2014-02-24 3:12 ` Samuel Wales
2014-03-06 16:51 ` 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).