all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* URGENT Need help fixing beamer exporting, can someone jump on IRC?
@ 2013-03-05 15:18 James Harkins
  2013-03-05 15:28 ` James Harkins
  0 siblings, 1 reply; 10+ messages in thread
From: James Harkins @ 2013-03-05 15:18 UTC (permalink / raw)
  To: Emacs-orgmode

Hi, sorry to press, but is anyone on the org-mode IRC channel?

The new beamer exporter has suddenly gotten borked on my system and I
can't restore it. I have class tomorrow morning. This is an emergency.

This occurred after updating master to test a fix that Bastien pushed.
Recalling advice from others to use "maint" for production, I did "git
checkout maint" and "make clean" and now Emacs fails to initialize.

Symbol's value as variable is void: org-babel-tangle-lang-exts

I figure IRC is faster than e-mail (especially since I read the digest
only). But, nobody is answering.

Again, it's urgent. It's 11:15 PM here in China and I have to be up at
6:30 AM. Didn't quite want to be staying up late fixing my org
configuration...

Thanks,
hjh

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: URGENT Need help fixing beamer exporting, can someone jump on IRC?
  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
  0 siblings, 2 replies; 10+ messages in thread
From: James Harkins @ 2013-03-05 15:28 UTC (permalink / raw)
  To: Emacs-orgmode

On Tue, Mar 5, 2013 at 11:18 PM, James Harkins <jamshark70@gmail.com> wrote:
> Hi, sorry to press, but is anyone on the org-mode IRC channel?
>
> The new beamer exporter has suddenly gotten borked on my system and I
> can't restore it. I have class tomorrow morning. This is an emergency.

OK, in desperation, I checked out my sandbox branch (based on master),
cleaned all the elc files, and quit and relaunched Emacs. Now it's
fine.

I had been using C-c C-x ! to reload org after doing a "make" but this
turned out to mess things up pretty badly. I could get reasonable
behavior only by quitting emacs and restarting it. I don't know if
that should be considered a bug or not. Perhaps I don't understand
what C-c C-x ! is supposed to do? Tonight at least, it was totally
unreliable.

So, crisis averted, but it was quite scary to get essentially complete
garbage from the beamer exporter...

hjh

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: URGENT Need help fixing beamer exporting, can someone jump on IRC?
  2013-03-05 15:28 ` James Harkins
@ 2013-03-05 15:42   ` Achim Gratz
  2013-03-05 15:44   ` Suvayu Ali
  1 sibling, 0 replies; 10+ messages in thread
From: Achim Gratz @ 2013-03-05 15:42 UTC (permalink / raw)
  To: emacs-orgmode

James Harkins <jamshark70 <at> gmail.com> writes:
> I had been using C-c C-x ! to reload org after doing a "make" but this
> turned out to mess things up pretty badly. I could get reasonable
> behavior only by quitting emacs and restarting it. I don't know if
> that should be considered a bug or not. Perhaps I don't understand
> what C-c C-x ! is supposed to do? Tonight at least, it was totally
> unreliable.

You can't switch between maint and master without restarting Emacs.  Even when
it appears to work it really doesn't.


Regards,
Achim.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: URGENT Need help fixing beamer exporting, can someone jump on IRC?
  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
  1 sibling, 1 reply; 10+ messages in thread
From: Suvayu Ali @ 2013-03-05 15:44 UTC (permalink / raw)
  To: emacs-orgmode

Hi James,

On Tue, Mar 05, 2013 at 11:28:35PM +0800, James Harkins wrote:
> I had been using C-c C-x ! to reload org after doing a "make" but this
> turned out to mess things up pretty badly. I could get reasonable
> behavior only by quitting emacs and restarting it. I don't know if
> that should be considered a bug or not. Perhaps I don't understand
> what C-c C-x ! is supposed to do? Tonight at least, it was totally
> unreliable.

org-reload is there for convenience, quite often a proper emacs restart
is indeed required to get a consistent Org instance.

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.  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.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: URGENT Need help fixing beamer exporting, can someone jump on IRC?
  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
  0 siblings, 1 reply; 10+ messages in thread
From: Achim Gratz @ 2013-03-05 18:26 UTC (permalink / raw)
  To: emacs-orgmode

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.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug] beamer backend and org-reload
  2013-03-05 18:26     ` Achim Gratz
@ 2013-03-05 20:26       ` Suvayu Ali
  2013-03-05 20:50         ` Achim Gratz
  2013-03-05 23:29         ` Nicolas Goaziou
  0 siblings, 2 replies; 10+ messages in thread
From: Suvayu Ali @ 2013-03-05 20:26 UTC (permalink / raw)
  To: emacs-orgmode

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 might actually be a problem with ox-beamer and not org-reload
because I noticed my other Org customisations do stay intact (which is
of course in line with your comment about settings not being touched).

Instead of step (3), you could also try M-x org-beamer-export-as-latex.
After step (4), repeating this alternate step (3) should give you the
following backtrace.

Debugger entered--Lisp error: (error "Unknown \"beamer\" back-end: Aborting export")
  signal(error ("Unknown \"beamer\" back-end: Aborting export"))
  error("Unknown \"%s\" back-end: Aborting export" beamer)
  org-export-barf-if-invalid-backend(beamer)
  org-export-as(beamer nil nil nil nil)
  org-export-to-buffer(beamer "*Org BEAMER Export*" nil nil nil nil)
  org-beamer-export-as-latex()
  call-interactively(org-beamer-export-as-latex record nil)
  command-execute(org-beamer-export-as-latex record)
  execute-extended-command(nil "org-beamer-export-as-latex")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

Hopefully my recipe is complete to fix this issue.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bug] beamer backend and org-reload
  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
  1 sibling, 1 reply; 10+ messages in thread
From: Achim Gratz @ 2013-03-05 20:50 UTC (permalink / raw)
  To: emacs-orgmode

Suvayu Ali writes:
>    (add-to-list 'org-latex-classes
>                 '("beamer"
>                   "\\documentclass\[presentation\]\{beamer\}"
>                   ("\\section\{%s\}" . "\\section*\{%s\}")
>                   ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
>                   ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))

Pilot error, I'd say: org-latex-classes is a defcustom, I don't think it
is a good idea to muck with the data directly (it doesn't have
getter/setter methods IIRC, but still).  So what happens when you add
the beamer classes properly, via customize — and then do an org-reload?



Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bug] beamer backend and org-reload
  2013-03-05 20:50         ` Achim Gratz
@ 2013-03-05 22:26           ` Suvayu Ali
  0 siblings, 0 replies; 10+ messages in thread
From: Suvayu Ali @ 2013-03-05 22:26 UTC (permalink / raw)
  To: emacs-orgmode

Hi Achim,

On Tue, Mar 05, 2013 at 09:50:29PM +0100, Achim Gratz wrote:
> Suvayu Ali writes:
> >    (add-to-list 'org-latex-classes
> >                 '("beamer"
> >                   "\\documentclass\[presentation\]\{beamer\}"
> >                   ("\\section\{%s\}" . "\\section*\{%s\}")
> >                   ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
> >                   ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))
> 
> Pilot error, I'd say: org-latex-classes is a defcustom, I don't think it
> is a good idea to muck with the data directly (it doesn't have
> getter/setter methods IIRC, but still).  So what happens when you add
> the beamer classes properly, via customize — and then do an org-reload?

I see the same problem when I put the following in my minimal-org.el

(custom-set-variables
 '(org-latex-classes (quote (("beamer" "\\documentclass[presentation]{beamer}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("chapter" "\\documentclass[11pt]{report}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))))
)

I did encounter another curious problem though.  When in the customise
buffer I try to add a new class, I get a customize interface similar to
what is shown below.

  [INS] [DEL] List:
              LaTeX class: beamer
              LaTeX header: \documentclass[presentation]{article}
              Choice: [Value Menu] Heading:
                numbered: \section{%s}
              unnumbered: \section*{%s}
  [INS] [DEL] List:
              LaTeX class: article
              LaTeX header: \documentclass[11pt]{article}
              Levels:
              [INS] [DEL] Choice: [Value Menu] Heading:
                            numbered: \section{%s}
                          unnumbered: \section*{%s}
              [INS] [DEL] Choice: [Value Menu] Heading:
                            numbered: \subsection{%s}
                          unnumbered: \subsection*{%s}
  [...]

As you can see, there is no way to add deeper sectioning entries for the
new entry (beamer).  I worked around it for the moment to proceed with
my test, but I find this very curious indeed.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bug] beamer backend and org-reload
  2013-03-05 20:26       ` [Bug] beamer backend and org-reload Suvayu Ali
  2013-03-05 20:50         ` Achim Gratz
@ 2013-03-05 23:29         ` Nicolas Goaziou
  2013-03-06 12:10           ` Suvayu Ali
  1 sibling, 1 reply; 10+ messages in thread
From: Nicolas Goaziou @ 2013-03-05 23:29 UTC (permalink / raw)
  To: Suvayu Ali; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bug] beamer backend and org-reload
  2013-03-05 23:29         ` Nicolas Goaziou
@ 2013-03-06 12:10           ` Suvayu Ali
  0 siblings, 0 replies; 10+ messages in thread
From: Suvayu Ali @ 2013-03-06 12:10 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

I can confirm this is fixed now.  :)

Thanks,


On Wed, Mar 06, 2013 at 12:29:10AM +0100, Nicolas Goaziou wrote:
> 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

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-03-06 12:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-03-06 12:10           ` Suvayu Ali

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.