emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Rainer M Krug <r.m.krug@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [BABEL] org-babel-post-tangle-hook problems
Date: Wed, 28 Jul 2010 07:42:38 -0600	[thread overview]
Message-ID: <87pqy763e7.fsf@gmail.com> (raw)
In-Reply-To: 4C4FD9C5.1030300@mail.com

Hi Rainer,

Thanks for catching this, I've just pushed up a fix.

Best -- Eric

Rainer M Krug <r.m.krug@gmail.com> writes:

> On 27/07/10 15:32, Rainer M Krug wrote:
>> Hi Eric
>> 
>> I relized the following problems today:
>> 
>> After setting the org-babel-post-tangle-hook (e.g.
>> (add-hook 'org-babel-post-tangle-hook
>>             (lambda () (message "I'm in %s" (buffer-file-name)) ))
>> )
>> 
>> the .org file closes, and the .R file is opened.
>> If I tangle a second time, emacs tells me that the .R file has changed
>> on disk, and if it should be re-read.
>> I don't know what happened, but it would be nice to have the working
>> behavior back.
>> 
>> I haven't used org for a few days, so I don't know when it happened.
>
>
> One addition: it works with org-7.01g, but not any more with
> Org-mode version 7.01trans (release_7.01g.31.g95212)
>
> Example org file:
>
> #################################################
> ** tangle R and load
>   #:PROPERTIES:
>   #:tangle:   to-load.r
>   #:END:
>
> evaluate this
> #+begin_src emacs-lisp :results silent :tangle no
> (add-hook 'org-babel-post-tangle-hook
> (lambda () (ess-load-file (buffer-file-name))))
> #+end_src
>
> then tangle
>
> #+begin_src R :comments yes
> x <- 8
> #+end_src
> t
> #+begin_src R
>  y <- 9
> #+end_src
>
> #+begin_src R :tangle file2.R
>  y <- 9
> #+end_src
> #################################################
>
> Cheers,
>
> Rainer
>
>
>> 
>> Cheers,
>> 
>> Rainer
>> 

  reply	other threads:[~2010-07-28 15:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-27 13:32 [BABEL] org-babel-post-tangle-hook problems Rainer M Krug
2010-07-28  7:18 ` Rainer M Krug
2010-07-28 13:42   ` Eric Schulte [this message]
2010-07-29  7:21     ` Rainer M Krug

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=87pqy763e7.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=r.m.krug@gmail.com \
    /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).