From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Hinman Subject: Re: Bug: ob-clojure tangling does not handle comments correctly [8.2.5h (8.2.5h-6-g8e1386-elpa @ /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/org/)] Date: Thu, 6 Feb 2014 10:08:56 -0700 Message-ID: <52F3C187.9040908@writequit.org> References: <52F325CD.5060602@writequit.org> <87k3d8i4m0.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBSW5-00019q-DH for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 12:13:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBSVq-0003gT-Cx for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 12:13:33 -0500 Received: from alt-proxy8.mail.unifiedlayer.com ([74.220.207.38]:60765) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1WBSVq-0003gF-3x for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 12:13:18 -0500 In-Reply-To: <87k3d8i4m0.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode@gnu.org On 2/6/14, 9:32 AM, Bastien wrote: > Can you try with latest ob-clojure.el from the master branch? > We fixed a few things recently, and the example works fine for > me. I tried it running from git (org-version returns "Org-mode version 8.2.3a (release_8.2.3a @ /Users/hinmanm/src/elisp/org-mode/lisp/)") I'm still getting it tangled as (let [org-mode-print-catcher (java.io.StringWriter.)] (clojure.pprint/with-pprint-dispatch clojure.pprint/code-dispatch (clojure.pprint/pprint (do (println "foo") ;; My comment) org-mode-print-catcher) (str org-mode-print-catcher))) I did some bisecting on my dotfiles and determined it was caused by this line: (setq org-babel-default-header-args (cons '(:results . "code") (assq-delete-all :results org-babel-default-header-args))) Which seems very strange to me, once I comment out that line the text is tangled as just (println "foo") ;; My comment