From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Put latex export buffer in latex-mode? Date: Sun, 25 Apr 2010 09:14:14 +0200 Message-ID: <89205147-B3E3-40BD-876A-68A98293821F@gmail.com> References: <87vdbgzoe7.fsf@stats.ox.ac.uk> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5w2n-00037L-86 for emacs-orgmode@gnu.org; Sun, 25 Apr 2010 03:14:21 -0400 Received: from [140.186.70.92] (port=38246 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5w2l-00037D-5A for emacs-orgmode@gnu.org; Sun, 25 Apr 2010 03:14:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5w2j-0006gs-FT for emacs-orgmode@gnu.org; Sun, 25 Apr 2010 03:14:19 -0400 Received: from mail-ew0-f214.google.com ([209.85.219.214]:50110) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5w2j-0006gl-9g for emacs-orgmode@gnu.org; Sun, 25 Apr 2010 03:14:17 -0400 Received: by ewy6 with SMTP id 6so3672644ewy.32 for ; Sun, 25 Apr 2010 00:14:16 -0700 (PDT) In-Reply-To: <87vdbgzoe7.fsf@stats.ox.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dan Davison Cc: emacs org-mode mailing list Hi Dan, thanks, I have fixed this, almost like you propose. - Carsten On Apr 24, 2010, at 8:38 PM, Dan Davison wrote: > C-e H brings up the exported html in an html-mode buffer, but C-e L > brings up a fundamental-mode buffer rather than latex-mode. Is this an > oversight or is there a reason for this? > > Dan > > p.s. I could use org-export-latex-after-save-hook, or a change to the > source could be something like this > > Modified lisp/org-latex.el > diff --git a/lisp/org-latex.el b/lisp/org-latex.el > index 67d9745..3d31248 100644 > --- a/lisp/org-latex.el > +++ b/lisp/org-latex.el > @@ -797,6 +797,7 @@ when PUB-DIR is set, use this as the publishing > directory." > (org-export-latex-fix-inputenc) > (run-hooks 'org-export-latex-after-save-hook) > (goto-char (point-min)) > + (latex-mode) > (or (org-export-push-to-kill-ring "LaTeX") > (message "Exporting to LaTeX...done")) > (prog1 > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten