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: Wed, 23 Apr 2014 08:27:11 +0200 Message-ID: <87vbu0d0hs.fsf@bzg.ath.cx> References: <1398196476-4773-1-git-send-email-aaronecay@gmail.com> <87bnvt2h6r.fsf@bzg.ath.cx> <87d2g92au5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcqeU-00039a-Al for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 02:27:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcqeL-0000Oz-8p for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 02:27:26 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:42644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcqeL-0000Om-1w for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 02:27:17 -0400 Received: by mail-wi0-f177.google.com with SMTP id cc10so607034wib.4 for ; Tue, 22 Apr 2014 23:27:16 -0700 (PDT) In-Reply-To: <87d2g92au5.fsf@gmail.com> (Aaron Ecay's message of "Tue, 22 Apr 2014 20:04:43 -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, Aaron Ecay writes: > How does this sound as an algorithm: > 1. if :file is present, behave exactly as we do now > 2. if :file is absent but :file-ext and a #+name is present, generate a > :file parameter from :output-dir, the #+name, and :file-ext. I suggest this one: 1. if :file is present, behave exactly as we do now 2. if :file-ext is present: - if #+name is present, generate a :file parameter from :output-dir, #+name and :file-ext - otherwise, generate the :file parameter from :output-dir, the headline or the title or the current file name and :file-ext Just falling back on something sensible when :file is absent and :file-ext is specified. > Open questions: > 1. should :file-ext without a #+name be a no-op, or an error? See above. > 2. should :output-dir apply to the :file case as well? To me yes. In overall I think would be good, but I'd like Eric and other babelist around here to have a look before we commit this. So perhaps another round of patch testing will be good. Thanks! -- Bastien