From: Grant Rettke <gcr@wisdomandwonder.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Tangling the same file in v8.2 and v.8.5 produces different results?
Date: Wed, 3 Aug 2016 22:34:24 -0500 [thread overview]
Message-ID: <CAAjq1megMBJLt9D-bCQaJyfe77qXdq6RReTdr9PDx3uQ1Oa=Pw@mail.gmail.com> (raw)
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
next reply other threads:[~2016-08-04 3:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-04 3:34 Grant Rettke [this message]
2016-08-04 18:48 ` Tangling the same file in v8.2 and v.8.5 produces different results? Charles C. Berry
2016-08-04 20:52 ` Grant Rettke
2016-08-05 5:53 ` Michael Welle
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAjq1megMBJLt9D-bCQaJyfe77qXdq6RReTdr9PDx3uQ1Oa=Pw@mail.gmail.com' \
--to=gcr@wisdomandwonder.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 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).