From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Bug: cannot export to beamer, even with (require 'ox-beamer) [9.1.14 (release_9.1.14-1059-gadec50 @ /home/oub/emacs/site-lisp/packages/org/)] Date: Mon, 17 Dec 2018 22:22:44 -0500 Message-ID: <874lbbwmbf.fsf@alphaville.usersys.redhat.com> References: <8736qwmv9z.fsf@mat.ucm.es> <87k1k8vxg2.fsf@alphaville.usersys.redhat.com> <87o99kc4k5.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZ5yE-0001rv-Ew for emacs-orgmode@gnu.org; Mon, 17 Dec 2018 22:22:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZ5yB-0005RD-6K for emacs-orgmode@gnu.org; Mon, 17 Dec 2018 22:22:58 -0500 Received: from [195.159.176.226] (port=59732 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gZ5yA-0005Q4-V0 for emacs-orgmode@gnu.org; Mon, 17 Dec 2018 22:22:55 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gZ5vz-00055g-KJ for emacs-orgmode@gnu.org; Tue, 18 Dec 2018 04:20:39 +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" To: emacs-orgmode@gnu.org Uwe Brauer writes: >> Uwe Brauer writes: > >> You are probably loading ox-beamer which adds it and then loading the >> customized version which resets it. Try changing the order. > > The setting in my .emacs is: > (load-file "~/emacs/init/emacs_init.el") > (setq custom-file "/home/oub/emacs/init/custom-init.el") > (load-file "/home/oub/emacs/init/custom-init.el") > > > > So I changed that to > (setq custom-file "/home/oub/emacs/init/custom-init.el") > (load-file "/home/oub/emacs/init/custom-init.el") > (load-file "~/emacs/init/emacs_init.el") > > Then the export works, but other problems occur. If I open a org file > If your only problem with the original order was what you described before, don't change the order: just do (load-file "~/emacs/init/emacs_init.el") (setq custom-file "/home/oub/emacs/init/custom-init.el") (load-file "/home/oub/emacs/init/custom-init.el") (require 'ox-beamer) and delete the original `(require 'ox-beamer)' from wherever it was before (presumably in ~/emacs/init/emacs_init.el). You are only trying to avoid the loading of your customizations from clobbering org-latex-classes. BTW, the fact that you *do* have problems when you change the order, probably means that there is strong coupling between your init files which is not a good thing. You might want to spend some time refactoring them and breaking interdependencies. If you decide to do that, small steps (and good backups) are probably a good idea. -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler