From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Ruiz Subject: Re: odt exporter on mixed org setup Date: Thu, 16 Jan 2014 11:30:34 +0000 (GMT) Message-ID: <1389871834.12765.YahooMailNeo@web171305.mail.ir2.yahoo.com> References: Reply-To: Miguel Ruiz Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="2017425371-1179067587-1389871834=:12765" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3l9o-00080F-JM for emacs-orgmode@gnu.org; Thu, 16 Jan 2014 06:30:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3l9g-0002UF-T0 for emacs-orgmode@gnu.org; Thu, 16 Jan 2014 06:30:44 -0500 Received: from nm24-vm9.bullet.mail.ird.yahoo.com ([212.82.109.200]:20853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3l9g-0002Ts-9E for emacs-orgmode@gnu.org; Thu, 16 Jan 2014 06:30:36 -0500 In-Reply-To: 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: Rustom Mody , emacs-orgmode --2017425371-1179067587-1389871834=:12765 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable This is my setup in .emacs; it runs without problems version after version.= =0A=0A=0A;;=0A;; Remove Org remnants built into Emacs=0A;;=0A;; from Achim = Gratz=0A;; https://github.com/emacsmirror/org/blob/master/testing/org-batch= -test-init.el=0A=0A;; clean load-path=0A(setq load-path=0A=A0=A0=A0=A0=A0 (= delq nil (mapcar=0A=A0=A0=A0=0A =A0=A0=A0 =A0(function (lambda (p)=0A=A0=A0= =A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0 (unless (string-match "lisp\\(/package= s\\)?/org$" p)=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0=A0 p)))=0A= =A0=A0=A0 =A0=A0=A0 =A0load-path)))=0A;; remove property list to defeat cus= -load and remove autoloads=0A(mapatoms (function=A0 (lambda (s)=0A=A0=A0=A0= =A0=A0=A0 =A0=A0=A0=A0=A0=A0 (let ((sn (symbol-name s)))=0A=A0=A0=A0 =A0= =A0=A0 =A0=A0=A0 =A0(when (string-match "^\\(org\\|ob\\|ox\\)\\(-.*\\)?$" s= n)=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0 (setplist s nil)=0A=A0=A0=A0 =A0= =A0=A0 =A0=A0=A0 =A0=A0 (when (eq 'autoload (car-safe s))=0A=A0=A0=A0 =A0= =A0=A0 =A0=A0=A0 =A0=A0=A0=A0=0A (unintern s)))))))=0A=0A;; we should now s= tart from a clean slate=0A=0A;;(setq myorg "master")=0A(setq myorg "maint" = ) ;; I have several directories under ~/org-mode/ with different=0A=A0 =A0 = =A0 =A0 =A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ;; versions so I can change "= easily"=0A=0A;;(add-to-list 'load-path (concat "~/org-mode/" myorg "/testin= g/lisp"))=0A;;(add-to-list 'load-path (concat "~/org-mode/" myorg "/testing= "))=0A(add-to-list 'load-path (concat "~/org-mode/" myorg "/contrib/lisp"))= =0A(add-to-list 'load-path (concat "~/org-mode/" myorg "/lisp"))=0A=0A=0A(r= equire 'info)=0A(setq Info-directory-list=0A=A0 (cons (expand-file-name (co= ncat "~/org-mode/" myorg "/doc"))=0A=A0=A0=A0 Info-default-directory-list))= =0A=0A(setq org-odt-data-dir (expand-file-name (concat "~/org-mode/" myorg = "/etc")))=0A=0A(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))=0A= =0A(global-set-key "\C-cl" 'org-store-link)=0A(global-set-key "\C-cc" 'org-= capture)=0A(global-set-key "\C-ca" 'org-agenda)=0A(global-set-key "\C-cb"= =0A 'org-iswitchb)=0A=0AHTH=0A=0A=0A=0A=0AEl Jueves 16 de enero de 2014 6:4= 7, Rustom Mody escribi=F3:=0A =0AJust helped a frie= nd to install and upgrade to latest org.=0AMethod summary:=0A$ git clone=0A= $ make update=0Acombined with setup of load-paths=0A=0AEnded with: ox-odt c= annot find factory style files=0A=0AI remember that I too had this problem= =0Ahttp://lists.gnu.org/archive/html/emacs-orgmode/2013-07/msg00341.html=0A= and it had recently disappeared.=0A=0AChecked that it comes back it I use e= macs23; goes away if I use emacs24=0AChecked that the messages when it work= s in emacs24 are like thus:=0A=0ADebug (ox-odt): Searching for OpenDocument= styles files...=0ADebug (ox-odt): Trying /usr/share/emacs/etc/org/styles/.= .. [2 times]=0ADebug (ox-odt): Trying ~/pdsw/etc/styles/...=0ADebug (ox-odt= ): Trying ~/pdsw/org-mode/lisp/etc/styles/...=0ADebug (ox-odt): Trying /usr= /share/emacs/24.3/etc/org/...=0ADebug (ox-odt): Using styles under /usr/sha= re/emacs/24.3/etc/org/=0ADebug (ox-odt): Searching for OpenDocument schema = files...=0ADebug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 ti= mes]=0ADebug (ox-odt): No OpenDocument schema files installed=0A=0ASo evide= ntly my 'working' odt export is working because its using the=0Abuiltin ema= cs odt exporter and not the=0A latest one=0A=0ALooking at org-odt-* stuff I= see almost a dozen files and directories=0Aand file lists and what not.=0A= =0AAll attempts so far at doing=0A=A0 =A0 =A0 =A0 (setq org-odt-styles-dir= "~/pdsw/org-mode/etc/styles")=0Ain various places, hooks etc have not chan= ged the fact that it gets=0Athe builtin one --2017425371-1179067587-1389871834=:12765 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
This is my setup in .emacs; it= runs without problems version after version.

<= div id=3D"yiv3474890315yui_3_13_0_ym1_7_1389871340648_19" style=3D"color:rg= b(0, 0, 0);font-size:13.3333px;font-family:Courier New, courier, monaco, mo= nospace, sans-serif;background-color:transparent;font-style:normal;">;;
;; Remov= e Org remnants built into Emacs
;;
;; from Achim Gratz=
;; https://github.com/emacsmirror/org/blob/master/testin= g/org-batch-test-init.el

;; clean load-path
(setq load-path
      = (delq nil (mapcar
   =0A    = ;  (function (lambda (p)
     &n= bsp;           (unless (string-matc= h "lisp\\(/packages\\)?/org$" p)
     = ;              p)))<= br clear=3D"none">         load-path)))<= br clear=3D"none">;; remove property list to defeat cus-load and remove aut= oloads
(mapatoms (function  (lambda (s)
             &= nbsp; (let ((sn (symbol-name s)))
    &nbs= p;        (when (string-match "^\\(org\\|ob\\= |ox\\)\\(-.*\\)?$" sn)
      &nb= sp;        (setplist s nil)
&nbs= p;              (when (eq 'autoload (car-safe s))
    &nb= sp;           =0A (unintern s)= ))))))

;; we should now start from a c= lean slate

;;(setq myorg "master")
= (setq myorg "maint" ) ;; I have several directories under ~/org-mode/ with = different
              &nb= sp;       ;; versions so I can change "easily= "

;;(add-to-list 'load-path (concat "~= /org-mode/" myorg "/testing/lisp"))
;;(add-to-list 'load-= path (concat "~/org-mode/" myorg "/testing"))
(add-to-lis= t 'load-path (concat "~/org-mode/" myorg "/contrib/lisp"))
(add-to-list 'load-path (concat "~/org-mode/" myorg "/lisp"))


(require 'info)
(setq Info-directory-list
  (cons (expand-file-n= ame (concat "~/org-mode/" myorg "/doc"))
  &nbs= p; Info-default-directory-list))

(setq o= rg-odt-data-dir (expand-file-name (concat "~/org-mode/" myorg "/etc")))

(add-to-list 'auto-mode-alist '("\\.org\\= '" . org-mode))

(global-set-key "\C-cl= " 'org-store-link)
(global-set-key "\C-cc" 'org-capture)<= br clear=3D"none">(global-set-key "\C-ca" 'org-agenda)
(g= lobal-set-key "\C-cb"=0A 'org-iswitchb)

HTH


El Jueves 16 de enero de 2014 6:47,= Rustom Mody <rustompmody@gmail.com> escribi=F3:
<= /font>
Just helped a fr= iend to install and upgrade to latest org.
Method summary= :
$ git clone
$ make update
combined with setup of load-paths

Ended with: ox-odt cannot find factory style files
I remember that I too had this problem= http://lists.gnu.org/archive/html/emacs-orgmode/2013-07/msg00341.htmland it had recently disappeared.

Checked that it comes back it I use emacs23; goes away if I use= emacs24
Checked that the messages when it works in emacs= 24 are like thus:

Debug (ox-odt): Sear= ching for OpenDocument styles files...
Debug (ox-odt): Tr= ying /usr/share/emacs/etc/org/styles/... [2 times]
Debug = (ox-odt): Trying ~/pdsw/etc/styles/...
Debug (ox-odt): Tr= ying ~/pdsw/org-mode/lisp/etc/styles/...
Debug (ox-odt): Tryi= ng /usr/share/emacs/24.3/etc/org/...
Debug (ox-odt): Usin= g styles under /usr/share/emacs/24.3/etc/org/
Debug (ox-o= dt): Searching for OpenDocument schema files...
Debug (ox= -odt): Trying /usr/share/emacs/etc/org/schema/... [2 times]
Debug (ox-odt): No OpenDocument schema files installed

So evidently my 'working' odt export is working because= its using the
builtin emacs odt exporter and not the=0A = latest one

Looking at org-odt-* stuff = I see almost a dozen files and directories
and file lists= and what not.

All attempts so far at = doing
        (setq org-odt-styles-d= ir "~/pdsw/org-mode/etc/styles")
in various places, hooks= etc have not changed the fact that it gets
the builtin o= ne



--2017425371-1179067587-1389871834=:12765--