emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Darlan Cavalcante Moreira <darcamo@gmail.com>
Cc: nicholas.dokos@hp.com, Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Feature Request: Disable auto-insert-mode exporting
Date: Thu, 27 Oct 2011 17:03:55 -0400	[thread overview]
Message-ID: <25696.1319749435@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Darlan Cavalcante Moreira <darcamo@gmail.com> of "Thu, 27 Oct 2011 16:31:59 -0300." <4ea9b1b7.d185ec0a.0baf.08ab@mx.google.com>

Darlan Cavalcante Moreira <darcamo@gmail.com> wrote:

> 
> I consider auto-insert-mode to be a very useful feature in Emacs and it
> works great in most situations, except when exporting an org-mode buffer.
> 
> If I export to PDF or HTML, for instance, then org-mode creates a TeX or an
> HTML buffer and auto-insert kicks-in in both cases (asking for the title in
> the HTML buffer, or the master file in the TeX buffer). Whatever I write
> will be overwritten by the org-mode exporter and the file exports just
> fine, but this interruption is annoying.
> 

I don't think the master file question comes from auto-insert - I believe
it comes from auctex. In particular, I get the question but I don't have
auto-insert enabled for latex.

> I suppose I could create a function that disable auto-insert-mode, call
> org-export and then re-enable auto-insert-mode, but maybe this should be
> the default behaviour of org-mode export. Does this make sense?
> 

You can advise org-export:

(defadvice org-export (around org-export-no-auto-insert)
  (let ((auto-insert nil))
    ad-do-it))

(ad-activate 'org-export)

should do it (untested).

Nick

  reply	other threads:[~2011-10-27 21:04 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-27 19:31 Feature Request: Disable auto-insert-mode exporting Darlan Cavalcante Moreira
2011-10-27 21:03 ` Nick Dokos [this message]
2011-10-28  4:49   ` Darlan Cavalcante Moreira
2011-10-28  8:43     ` Carsten Dominik
2011-10-28 16:29       ` Darlan Cavalcante Moreira
2011-10-28 16:45         ` Nick Dokos
2011-10-28 16:51           ` Carsten Dominik
  -- strict thread matches above, loose matches on Subject: below --
2009-09-25  0:15 Problem with LaTeX snippets preview Paul Burkander
2009-09-25  0:48 ` Fwd: " Paul Burkander
2009-09-25 14:06 ` Darlan Cavalcante Moreira
2009-09-25 14:15   ` Carsten Dominik
2009-09-25 14:30     ` Darlan Cavalcante Moreira
2009-09-25 15:52       ` Nick Dokos
2009-09-25 15:58         ` Paul Burkander
2009-09-25 16:46           ` Nick Dokos
2009-09-25 17:20             ` Nick Dokos
2009-09-26  6:39               ` Carsten Dominik
2009-09-26  7:36               ` Carsten Dominik
2009-09-26  2:28           ` Darlan Cavalcante Moreira
2009-09-26  7:30         ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=25696.1319749435@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=darcamo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).