* Tangling the same file in v8.2 and v.8.5 produces different results?
@ 2016-08-04 3:34 Grant Rettke
2016-08-04 18:48 ` Charles C. Berry
0 siblings, 1 reply; 4+ messages in thread
From: Grant Rettke @ 2016-08-04 3:34 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
Good evening,
I'm tangling this example in a file named test3.org
--snip--
#+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
<<fullest-disk>>
#+END_SRC
* the mount point of the fullest disk
:PROPERTIES:
:noweb-ref: fullest-disk
:END:
** query all mounted disks
#+BEGIN_SRC sh
df \
#+END_SRC
** strip the header row
#+BEGIN_SRC sh
|sed '1d' \
#+END_SRC
** sort by the percent full
#+BEGIN_SRC sh
|awk '{print $5 " " $6}'|sort -n |tail -1 \
#+END_SRC
** extract the mount point
#+BEGIN_SRC sh
|awk '{print $2}'
#+END_SRC
--snip--
with
GNU Emacs 24.5.1 (x86_64-apple-darwin15.4.0, NS apple-appkit-1404.46)
and
Org-mode version 8.2.10 (release_8.2.10 @
/usr/local/Cellar/emacs/24.5/share/emacs/24.5/lisp/org/)
started like this
open /Applications/Emacs.app -n --args --no-init-file
and when I run `org-babel-tangle' it create a file test3.sh which
contains the following
--snip--
#!/bin/sh
df \
|sed '1d' \
|awk '{print $5 " " $6}'|sort -n |tail -1 \
|awk '{print $2}'
--snip--
I am trying to tangle the same file test3.org in the Git version of
Org-Mode and get a different result.
Here is how I started Emacs this time:
open /Applications/Emacs.app -n --args --quick --load
~/src/help/.org-mode-ecm.emacs.el
Here are the contents of .org-mode-ecm.emacs.el right now
--snip--
(setq load-prefer-newer t)
(add-to-list 'load-path "~/src/org-mode/lisp")
(add-to-list 'load-path "~/src/org-mode/contrib/lisp")
;;(setq org-list-allow-alphabetical t)
;;(setq org-enforce-todo-checkbox-dependencies t)
;;(setq org-babel-noweb-wrap-start "«")
;;(setq org-babel-noweb-wrap-end "»")
(require 'org)
--snip--
The Org mode version is
Org-mode version 8.3.5 (release_8.3.5-1032-g9798da-git @
/Users/gcr/src/org-mode/lisp/)
When I tangle the file it's output to test3.sh is
--snip--
#!/bin/sh
--snip--
I expected the contents of test3.sh to be the same when I tangled it
in Org 8.5 as in Org 8.2 but instead they were not.
Do you know if what setting changed to cause this or if I am doing
something incorrectly here what is the right approach?
Sincerely,
Grant Rettke
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Tangling the same file in v8.2 and v.8.5 produces different results?
2016-08-04 3:34 Tangling the same file in v8.2 and v.8.5 produces different results? Grant Rettke
@ 2016-08-04 18:48 ` Charles C. Berry
2016-08-04 20:52 ` Grant Rettke
0 siblings, 1 reply; 4+ messages in thread
From: Charles C. Berry @ 2016-08-04 18:48 UTC (permalink / raw)
To: Grant Rettke; +Cc: emacs-orgmode@gnu.org
On Wed, 3 Aug 2016, Grant Rettke wrote:
> Good evening,
>
> I'm tangling this example in a file named test3.org
>
> --snip--
> #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
> <<fullest-disk>>
> #+END_SRC
> * the mount point of the fullest disk
> :PROPERTIES:
> :noweb-ref: fullest-disk
> :END:
First, see
./org-mode/etc/ORG-NEWS::*Old Babel header properties are no longer supported
*if* that doesn't solve it, possibly this is relevant:
https://lists.gnu.org/archive/html/emacs-orgmode/2016-05/msg00056.html
HTH,
Chuck
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Tangling the same file in v8.2 and v.8.5 produces different results?
2016-08-04 18:48 ` Charles C. Berry
@ 2016-08-04 20:52 ` Grant Rettke
2016-08-05 5:53 ` Michael Welle
0 siblings, 1 reply; 4+ messages in thread
From: Grant Rettke @ 2016-08-04 20:52 UTC (permalink / raw)
To: Charles C. Berry; +Cc: emacs-orgmode@gnu.org
On Thu, Aug 4, 2016 at 1:48 PM, Charles C. Berry <ccberry@ucsd.edu> wrote:
> On Wed, 3 Aug 2016, Grant Rettke wrote:
>
>> Good evening,
>>
>> I'm tangling this example in a file named test3.org
>>
>> --snip--
>> #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
>> <<fullest-disk>>
>> #+END_SRC
>> * the mount point of the fullest disk
>> :PROPERTIES:
>> :noweb-ref: fullest-disk
>> :END:
>
>
> First, see
>
> ./org-mode/etc/ORG-NEWS::*Old Babel header properties are no longer
> supported
That is exactly it.
It needs to be.
:PROPERTIES:
:header-args: :noweb-ref fullest-disk
:END:
Sorry I forgot to check ORG-NEWS; I will remember now!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Tangling the same file in v8.2 and v.8.5 produces different results?
2016-08-04 20:52 ` Grant Rettke
@ 2016-08-05 5:53 ` Michael Welle
0 siblings, 0 replies; 4+ messages in thread
From: Michael Welle @ 2016-08-05 5:53 UTC (permalink / raw)
To: emacs-orgmode
Hello,
Grant Rettke <gcr@wisdomandwonder.com> writes:
> On Thu, Aug 4, 2016 at 1:48 PM, Charles C. Berry <ccberry@ucsd.edu> wrote:
>> On Wed, 3 Aug 2016, Grant Rettke wrote:
>>
>>> Good evening,
>>>
>>> I'm tangling this example in a file named test3.org
>>>
>>> --snip--
>>> #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
another thing I want to point out is that 'sh' has become 'shell' in
recent org versions. That seems to be tricky, because on a system with a
user installed newer org mode using 'sh' sometimes fails resp. sometimes
works unexpected . The trouble is that there is an ob-sh.el delivered
with the Emacs installation, which is sometimes loaded. I haven't tried
to find out why it only failed sometimes, but that is how I find out
about the change sh -> shell ;).
Regards
hmw
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-05 5:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-04 3:34 Tangling the same file in v8.2 and v.8.5 produces different results? Grant Rettke
2016-08-04 18:48 ` Charles C. Berry
2016-08-04 20:52 ` Grant Rettke
2016-08-05 5:53 ` Michael Welle
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).