From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Unexpected tanling behavior, is the following expected? Date: Wed, 5 Nov 2014 11:02:49 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm3yz-0002hu-Iz for emacs-orgmode@gnu.org; Wed, 05 Nov 2014 12:02:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm3ys-0005wJ-A8 for emacs-orgmode@gnu.org; Wed, 05 Nov 2014 12:02:57 -0500 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:59529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm3ys-0005wF-6B for emacs-orgmode@gnu.org; Wed, 05 Nov 2014 12:02:50 -0500 Received: by mail-ob0-f181.google.com with SMTP id uy5so905834obc.12 for ; Wed, 05 Nov 2014 09:02:49 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" * Question In another source file, I ran into an unexpected behavior where noweb refs expanded inside of source blocks are removing the closing round paren on the line of where the noweb-ref is expanded. I tried to reduce it to the simplest, simplest possible example while including all of the operational details. That attempt is the following: Should the closing round paren be removed in behavior A and why isn't it removed in behavior B? I ask because my config certainly could be causing this to happ= en! I posted this file as-is because: - It wouldn't make sense to lose the original source - To post it as a gist would lose the history for the group archive * Behavior A #+NAME: message #+begin_src emacs-lisp "Hello, world." #+end_src #+begin_src emacs-lisp :tangle example.el (print =C2=ABmessage=C2=BB) #+end_src * Behavior B #+NAME: statement #+begin_src emacs-lisp (print "Hi, there.") #+end_src #+begin_src emacs-lisp :tangle example.el (quote =C2=ABstatement=C2=BB) #+end_src * Tangled output #+begin_quote ;; [[file:~/tmp/example.org::*Behavior%20A][Behavior\ A:1]] (print ;; [[file:~/tmp/example.org::*Behavior%20A][message]] (print "Hello, world." (print ;; message ends here) ;; Behavior\ A:1 ends here ;; [[file:~/tmp/example.org::*Behavior%20B][Behavior\ B:1]] (quote ;; [[file:~/tmp/example.org::*Behavior%20B][statement]] (quote (print "Hi, there.") (quote ;; statement ends here) ;; Behavior\ B:1 ends here #+end_quote * Configuration #+begin_src emacs-lisp (print emacs-version) #+end_src #+NAME: #+begin_example "24.3.1" #+end_example #+begin_src emacs-lisp (print org-version) #+end_src #+NAME: #+begin_example "8.2.8" #+end_example #+begin_src emacs-lisp (print (pp-to-string org-babel-default-header-args)) #+end_src #+NAME: #+begin_example "((:eval . \"always\") (:padline . \"yes\") (:noweb . \"no-export\") (:exports . \"both\") (:results . \"output replace\") (:comments . \"noweb\") (:session . \"none\") (:cache . \"no\") (:hlines . \"no\") (:tangle . \"no\")) " #+end_example #+begin_src emacs-lisp (print org-babel-noweb-wrap-start) (print org-babel-noweb-wrap-end) #+end_src #+NAME: #+begin_example "=C2=AB" "=C2=BB" #+end_example --=20 Grant Rettke gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson