From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Cubizolles Subject: Re: Loading several latex classes for ox-latex Date: Thu, 11 Jul 2013 07:44:47 +0200 Message-ID: <878v1dlkfk.fsf@free.fr> References: <87wqoy4k8q.fsf@free.fr> <871u7635g7.fsf@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ux9gc-0000V7-Qy for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 01:45:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ux9gb-00007f-6R for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 01:45:02 -0400 Received: from plane.gmane.org ([80.91.229.3]:56809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ux9ga-00007b-Up for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 01:45:01 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ux9ga-0005Yi-3v for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 07:45:00 +0200 Received: from 37.161.132.27 ([37.161.132.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Jul 2013 07:45:00 +0200 Received: from j.cubizolles by 37.161.132.27 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Jul 2013 07:45:00 +0200 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: emacs-orgmode@gnu.org Nicolas Richard writes: > that's because your (progn) is unquoted and thus evaluated at the same > time as eval-after-load, i.e. it returns its last value (which is the > second add-to-list form) and that is what is being added to the > eval-after-load list. What you want is the whole (progn) added there, so > an easy fix probably is to say '(progn ...) *and* remove the quotes > around the calls to add-to-list. Thank you, you were right.