From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Leech-Pepin Subject: Re: Two questions about org-export-insert-default-template in new org-exporter Date: Tue, 04 Jun 2013 14:19:15 -0400 Message-ID: <874ndd20yk.fsf@leechpepin.com> References: <51AE288B.2030709@sift.info> <87li6p3gbi.fsf@pank.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjvpL-0007bq-Eb for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 14:19:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjvpG-0004a1-Ri for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 14:19:23 -0400 Received: from mail-gg0-x22d.google.com ([2607:f8b0:4002:c02::22d]:49606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjvpG-0004Zw-O7 for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 14:19:18 -0400 Received: by mail-gg0-f173.google.com with SMTP id l4so136164ggn.4 for ; Tue, 04 Jun 2013 11:19:18 -0700 (PDT) In-reply-to: <87li6p3gbi.fsf@pank.eu> 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: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > Robert Goldman writes: > >> 1. The original org-insert-export-options-template always inserted the >> template at the top of the file. The new one inserts at point. Since >> the options need to be at the top of the file, would there be any >> objection to making the new template inserter behave the same way? > > I can't reproduce your claim on Org v8.03. > > For instance this works great with html and LaTeX. > > #+BEGIN_SRC org > * TODO my topic > this is my documents with garbage in the bottom > * hide the boring stuff :noexport: > #+TITLE: my boring title > #+AUTHOR: my boring name > #+DATE: Another day at the office > #+OPTIONS: toc:nil todo:nil > #+END_SRC > I don't remember this being the case in previous versions either, I usually had something along the lines of #+BEGIN_SRC org * Configuration >> 2. Users can directly issue this command using M-x >> org-export-insert-default-template, since it's tagged as (interactive). >> Since this is possible, wouldn't it make sense to have the function >> query for the BACKEND argument when invoked interactively? > > Use the export dispatcher. C-e # or C-e l # (for LaTeX). > > –Rasmus