From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: org babel before excute hook Date: Mon, 14 Oct 2013 07:24:50 -0600 Message-ID: <87txgk6koy.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VViHY-0004FS-Gi for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 09:34:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VViHT-0001e7-AO for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 09:34:00 -0400 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]:53407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VViHT-0001dw-37 for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 09:33:55 -0400 Received: by mail-pa0-f42.google.com with SMTP id lj1so7558846pab.29 for ; Mon, 14 Oct 2013 06:33:54 -0700 (PDT) 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: Samuel Wales Cc: emacs-orgmode@gnu.org, Henning Redestig Samuel Wales writes: > In case it helps, there is org-confirm-babel-evaluate. > > (But I have not found it to be useful, because it does not seem to > place point in a place where you can check properties, etc.) > I just pushed up a change so that `org-confirm-babel-evaluate' will always be called from the head of the code block being evaluated. So the info can always be reached with something like the following. (setf org-confirm-babel-evaluate (lambda (&rest args) (message "info: %S" (org-babel-get-src-block-info 'light)) nil)) > > Samuel -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D