all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Literate config and :tangle clauses
@ 2016-12-23 23:00 aaermolov
  2016-12-25 10:39 ` joakim
  0 siblings, 1 reply; 5+ messages in thread
From: aaermolov @ 2016-12-23 23:00 UTC (permalink / raw)
  To: Emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

Hi all!

Recently I've experienced a kind of a problem - my literate Emacs config
stopped tangling correctly, only a subset of code blocks were found in
resulting .el file. 
I've looked at it a bit closer and it seems now (not earlier than 9.0.2)
the :tangle clause became required. I've searched Org repo but failed to
find a respective commit or any reference to the relevant info.

Can anyone point me to the right direction? 

regards,
Alex

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Literate config and :tangle clauses
  2016-12-23 23:00 Literate config and :tangle clauses aaermolov
@ 2016-12-25 10:39 ` joakim
  2016-12-25 17:52   ` Charles C. Berry
  2016-12-26  8:33   ` aaermolov
  0 siblings, 2 replies; 5+ messages in thread
From: joakim @ 2016-12-25 10:39 UTC (permalink / raw)
  To: emacs-orgmode

aaermolov@gmail.com writes:

> Hi all!
>
> Recently I've experienced a kind of a problem - my literate Emacs config
> stopped tangling correctly, only a subset of code blocks were found in
> resulting .el file. 
> I've looked at it a bit closer and it seems now (not earlier than 9.0.2)
> the :tangle clause became required. I've searched Org repo but failed to
> find a respective commit or any reference to the relevant info.

I also experienced the same behaviour. :tangle became required, which it
wasn't previously.

My solution was just to add the ":tangle yes" tag everywhere.


>
> Can anyone point me to the right direction? 
>
> regards,
> Alex
>
-- 
Joakim Verona

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Literate config and :tangle clauses
  2016-12-25 10:39 ` joakim
@ 2016-12-25 17:52   ` Charles C. Berry
  2016-12-26  8:49     ` aaermolov
  2016-12-26  8:33   ` aaermolov
  1 sibling, 1 reply; 5+ messages in thread
From: Charles C. Berry @ 2016-12-25 17:52 UTC (permalink / raw)
  To: joakim; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1713 bytes --]

On Sun, 25 Dec 2016, joakim@verona.se wrote:

> aaermolov@gmail.com writes:
>
>> Hi all!
>>
>> Recently I've experienced a kind of a problem - my literate Emacs config
>> stopped tangling correctly, only a subset of code blocks were found in
>> resulting .el file.
>> I've looked at it a bit closer and it seems now (not earlier than 9.0.2)
>> the :tangle clause became required. I've searched Org repo but failed to
>> find a respective commit or any reference to the relevant info.
>

I don't think the problem lies with any revision to org.

First, what `C-h v org-babel-default-header-args RET' shows below is
unchanged for at least a year:

--8<---------------cut here---------------start------------->8---

org-babel-default-header-args is a variable defined in ‘ob-core.el’.
Its value is ((:session . "none")
  (:results . "replace")
  (:exports . "code")
  (:cache . "no")
  (:noweb . "no")
  (:hlines . "no")
  (:tangle . "no"))

...
--8<---------------cut here---------------end--------------->8---

Note that `(:tangle . "no")' sets the default behavior.

Second, I have files that depend on the above. i.e. I set the header
on a few blocks to `:tangle yes' and leave the rest alone, relying on
the above default to keep them from being tangled.


> I also experienced the same behaviour. :tangle became required, which it
> wasn't previously.
>
> My solution was just to add the ":tangle yes" tag everywhere.
>
>
>>
>> Can anyone point me to the right direction?
>>

Use

#+PROPERTY: header-args :tangle yes

(and type `C-c C-c' to reset the buffer the first time you type it)

and review

(info "(org) Using header arguments")

for tips on how to control the application of header args.

HTH,

Chuck

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Literate config and :tangle clauses
  2016-12-25 10:39 ` joakim
  2016-12-25 17:52   ` Charles C. Berry
@ 2016-12-26  8:33   ` aaermolov
  1 sibling, 0 replies; 5+ messages in thread
From: aaermolov @ 2016-12-26  8:33 UTC (permalink / raw)
  To: joakim, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

Yes, I've ended up doing the same. It's not a problem at all, but I was
just curious how has it gone that way.

regards,
Alex

joakim@verona.se writes:

> aaermolov@gmail.com writes:
>
>> Hi all!
>>
>> Recently I've experienced a kind of a problem - my literate Emacs config
>> stopped tangling correctly, only a subset of code blocks were found in
>> resulting .el file. 
>> I've looked at it a bit closer and it seems now (not earlier than 9.0.2)
>> the :tangle clause became required. I've searched Org repo but failed to
>> find a respective commit or any reference to the relevant info.
>
> I also experienced the same behaviour. :tangle became required, which it
> wasn't previously.
>
> My solution was just to add the ":tangle yes" tag everywhere.
>
>
>>
>> Can anyone point me to the right direction? 
>>
>> regards,
>> Alex
>>
> -- 
> Joakim Verona

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Literate config and :tangle clauses
  2016-12-25 17:52   ` Charles C. Berry
@ 2016-12-26  8:49     ` aaermolov
  0 siblings, 0 replies; 5+ messages in thread
From: aaermolov @ 2016-12-26  8:49 UTC (permalink / raw)
  To: Charles C. Berry, joakim; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2298 bytes --]

Hi, Chuck

I do not blame Org at first place, but I've bisected my config and the
behaviour is the same for a significant list of commits deeper in git
history. And, as I've already mentioned, it started to behave as
described only some time ago (about a week), after one of the package
updates. Presumably the root cause can be found elsewhere...

regards,
Alex

"Charles C. Berry" <ccberry@ucsd.edu> writes:

> On Sun, 25 Dec 2016, joakim@verona.se wrote:
>
>> aaermolov@gmail.com writes:
>>
>>> Hi all!
>>>
>>> Recently I've experienced a kind of a problem - my literate Emacs config
>>> stopped tangling correctly, only a subset of code blocks were found in
>>> resulting .el file.
>>> I've looked at it a bit closer and it seems now (not earlier than 9.0.2)
>>> the :tangle clause became required. I've searched Org repo but failed to
>>> find a respective commit or any reference to the relevant info.
>>
>
> I don't think the problem lies with any revision to org.
>
> First, what `C-h v org-babel-default-header-args RET' shows below is
> unchanged for at least a year:
>
> --8<---------------cut here---------------start------------->8---
>
> org-babel-default-header-args is a variable defined in ‘ob-core.el’.
> Its value is ((:session . "none")
>   (:results . "replace")
>   (:exports . "code")
>   (:cache . "no")
>   (:noweb . "no")
>   (:hlines . "no")
>   (:tangle . "no"))
>
> ...
> --8<---------------cut here---------------end--------------->8---
>
> Note that `(:tangle . "no")' sets the default behavior.
>
> Second, I have files that depend on the above. i.e. I set the header
> on a few blocks to `:tangle yes' and leave the rest alone, relying on
> the above default to keep them from being tangled.
>
>
>> I also experienced the same behaviour. :tangle became required, which it
>> wasn't previously.
>>
>> My solution was just to add the ":tangle yes" tag everywhere.
>>
>>
>>>
>>> Can anyone point me to the right direction?
>>>
>
> Use
>
> #+PROPERTY: header-args :tangle yes
>
> (and type `C-c C-c' to reset the buffer the first time you type it)
>
> and review
>
> (info "(org) Using header arguments")
>
> for tips on how to control the application of header args.
>
> HTH,
>
> Chuck

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-12-26  8:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-23 23:00 Literate config and :tangle clauses aaermolov
2016-12-25 10:39 ` joakim
2016-12-25 17:52   ` Charles C. Berry
2016-12-26  8:49     ` aaermolov
2016-12-26  8:33   ` aaermolov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.