From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to tangle contents of a noweb-ref block that as source block indicators in it? Date: Fri, 19 Sep 2014 14:46:29 -0400 Message-ID: <871tr7tpmi.fsf@alphaville.bos.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV3Cu-00024d-Hv for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 14:47:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XV3Cn-0003uH-HX for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 14:47:00 -0400 Received: from plane.gmane.org ([80.91.229.3]:47186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV3Cn-0003sH-BI for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 14:46:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XV3Cc-0001c1-QD for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 20:46:42 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Sep 2014 20:46:42 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Sep 2014 20:46:42 +0200 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 Grant Rettke writes: > Good afternoon, > > I work in: > > ╭──── > │ (print emacs-version) > │ (print org-version) > ╰──── > > ╭──── > │ "24.3.1" > │ > │ "8.2.7c" > ╰──── > > My `org' configuration specifies source blocks like this: > > ╭──── > │ (setq org-babel-noweb-wrap-start "«") > │ (setq org-babel-noweb-wrap-end "»") > ╰──── > > When I tangle this block the output is bit for bit. > > When I tangle this other block: > > ╭──── > │ (wrap-region-add-wrapper "«" "»" "w" 'org-mode) ;; noweb blocks > ╰──── > > the guillemot is removed. > > What I want is to tangle the source block without having the guillemot > removed. > > I did it wrong because I generated this: > > ╭──── > │ (wrap-region-add-wrapper "" "w" 'org-mode) ;; noweb blocks > ╰──── > > What should I do to generate the desired output? > Just a guess: you probably *evaluated* the first code block, so your org-babel-noweb-wrap-{start,end} variables got changed, which affected the second code block. If you leave the markers unchanged, I'd expect it to work. Nick