emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [Bug] beamer backend and org-reload
Date: Wed, 06 Mar 2013 00:29:10 +0100	[thread overview]
Message-ID: <87hakps9x5.fsf@gmail.com> (raw)
In-Reply-To: <20130305202607.GO7544@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Tue, 5 Mar 2013 21:26:07 +0100")

Hello,

Suvayu Ali <fatkasuvayu+linux@gmail.com> 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

  parent reply	other threads:[~2013-03-05 23:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05 15:18 URGENT Need help fixing beamer exporting, can someone jump on IRC? James Harkins
2013-03-05 15:28 ` James Harkins
2013-03-05 15:42   ` Achim Gratz
2013-03-05 15:44   ` Suvayu Ali
2013-03-05 18:26     ` Achim Gratz
2013-03-05 20:26       ` [Bug] beamer backend and org-reload Suvayu Ali
2013-03-05 20:50         ` Achim Gratz
2013-03-05 22:26           ` Suvayu Ali
2013-03-05 23:29         ` Nicolas Goaziou [this message]
2013-03-06 12:10           ` Suvayu Ali

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=87hakps9x5.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fatkasuvayu+linux@gmail.com \
    /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).