From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiajie Chen Subject: Bug: Feature Request: add 'org-babel-before-execute-hook' [8.3.4 (8.3.4-99-ga8e4a3-elpa @ /Users/macbookair/.emacs.d/elpa/org-20160704/)] Date: Fri, 08 Jul 2016 18:56:34 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLTSh-00069B-Cn for emacs-orgmode@gnu.org; Fri, 08 Jul 2016 06:56:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLTSd-0001gh-8K for emacs-orgmode@gnu.org; Fri, 08 Jul 2016 06:56:46 -0400 Received: from smtpbg298.qq.com ([184.105.67.102]:37733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLTSc-0001gZ-JS for emacs-orgmode@gnu.org; Fri, 08 Jul 2016 06:56:43 -0400 Received: from MacBookAirs-MacBook-Air.local (unknown [14.20.7.110]) by esmtp4.qq.com (ESMTP) with SMTP id 0 for ; Fri, 08 Jul 2016 18:56:34 +0800 (CST) 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" To: emacs-orgmode@gnu.org Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ Now there exists 'org-babel-after-execute-hook'. I want to implement this functionality: Check whether the path specified in `:file' exists in file system and throw an error if that does not exists. If there is `org-babel-before-execute-hook', we can do that instead of using advice. I love symmetry :) Emacs : GNU Emacs 25.1.50.1 (x86_64-apple-darwin15.5.0, NS appkit-1404.47 Version 10.11.5 (Build 15F34)) of 2016-07-03 Package: Org-mode version 8.3.4 (8.3.4-99-ga8e4a3-elpa @ /Users/macbookair/.emacs.d/elpa/org-20160704/)