From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks. Date: Tue, 22 Apr 2014 23:22:04 +0200 Message-ID: <87bnvt2h6r.fsf@bzg.ath.cx> References: <1398196476-4773-1-git-send-email-aaronecay@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wci8v-0001Eb-N8 for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 17:22:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wci8m-0005Up-MG for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 17:22:17 -0400 Received: from mail-we0-x235.google.com ([2a00:1450:400c:c03::235]:33350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wci8m-0005Uc-Bl for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 17:22:08 -0400 Received: by mail-we0-f181.google.com with SMTP id q58so47740wes.26 for ; Tue, 22 Apr 2014 14:22:07 -0700 (PDT) In-Reply-To: <1398196476-4773-1-git-send-email-aaronecay@gmail.com> (Aaron Ecay's message of "Tue, 22 Apr 2014 15:54:36 -0400") 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: Aaron Ecay Cc: emacs-orgmode@gnu.org Hi Aaron, thanks for the patch. Aaron Ecay writes: > #+name: one > #+begin_src R :results file graphics :file png > ... > #+end_src What happens when there is :file png with no #+name line? > The benefit comes from the reduced duplication of information in the > file. It also becomes possible to use the usual property inheritance > mechanisms (via #+PROPERTY lines or :PROPERTY: drawers) to specify > result file types for multiple source blocks at once. > > This patch also introduces the :output-dir property, which can be used > to redirect all the output from blocks in a (file/subtree) to a > subdirectory. Does :output-dir accept absolute or relative paths? I'm asking because you speak of "subdirectory", but both should be accepted IMHO. > The patch treats any :file args containing a period as before, so > backwards compatibility with old files should in most cases be > maintained. Maybe there are cases where the :file value does not take an extension but the user still want to write the output to this file? How would your patch handle this? > If this patch looks good, I can provide tests and documentation. Looks useful to me, but ":file png" looks wrong, with too much implicit. We should find something less confusing. Thanks, -- Bastien