From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [Bug] beamer backend and org-reload Date: Wed, 06 Mar 2013 00:29:10 +0100 Message-ID: <87hakps9x5.fsf@gmail.com> References: <20130305154434.GM7544@kuru.dyndns-at-home.com> <87obex1z4h.fsf@Rainer.invalid> <20130305202607.GO7544@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD1IS-0004Eu-UF for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 18:29:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UD1IR-0003zy-Oo for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 18:29:24 -0500 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:48231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD1IR-0003zo-ID for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 18:29:23 -0500 Received: by mail-we0-f175.google.com with SMTP id x8so7262914wey.34 for ; Tue, 05 Mar 2013 15:29:22 -0800 (PST) In-Reply-To: <20130305202607.GO7544@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Tue, 5 Mar 2013 21:26:07 +0100") 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: Suvayu Ali Cc: emacs-orgmode@gnu.org Hello, Suvayu Ali writes: > Hi Achim, > > On Tue, Mar 05, 2013 at 07:26:54PM +0100, Achim Gratz wrote: >> Suvayu Ali writes: >> > That said, I have noticed something odd about the new exporter and >> > org-reload. I think with the new exporter after doing org-reload, org >> > related config is not reloaded properly. >> >> Config is not reloaded at all (and never has been), any configuration >> variables that are already existing are not touched when the file gets >> reloaded. >> >> > This borks the Org instance. This is more visible when using the >> > Beamer backend since it requires customisation of org-latex-classes by >> > the user. One of these days, I'll try to come up with a proper recipe >> > to reproduce this. >> >> Please do, this should not happen. > > Here is the recipe: > > 1. emacs -nw -Q -l ~/minimal-org.el > > ;;; minimal-org.el: Minimal setup to load latest `org-mode' > > ;;; Code: > (setq debug-on-error t > debug-on-signal nil > debug-on-quit nil) > > (add-to-list 'load-path (expand-file-name "~/build/org-mode/lisp")) > > (require 'ox-beamer) > (add-to-list 'org-latex-classes > '("beamer" > "\\documentclass\[presentation\]\{beamer\}" > ("\\section\{%s\}" . "\\section*\{%s\}") > ("\\subsection\{%s\}" . "\\subsection*\{%s\}") > ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}"))) > > 2. C-x C-f some-file.org RET > 3. Now try to export: C-c C-e. You can see menu options for beamer export. > 4. Now reload Org: C-c C-x !. Try step 3 again. You will notice the > entries for beamer is missing. This should be fixed in master. Thank you. Regards, -- Nicolas Goaziou