From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [Testing + Babel] Old Org HTML hides Org HTML Date: Fri, 15 Oct 2010 09:18:58 -0600 Message-ID: <87tyknh4bh.fsf@gmail.com> References: <80d3rb8qo0.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=34086 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6m3o-00042G-Ah for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 11:19:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6m3l-0000yD-4R for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 11:19:07 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:57409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6m3l-0000xm-0Z for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 11:19:05 -0400 Received: by yxm34 with SMTP id 34so611594yxm.0 for ; Fri, 15 Oct 2010 08:19:04 -0700 (PDT) In-Reply-To: <80d3rb8qo0.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Fri, 15 Oct 2010 16:41:03 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org Hi Seb, Since this old testing file is obsolete I've just deleted it. Thanks to git it can always be resurrected later as the basis for a modern org-html test suite. Best -- Eric S=C3=A9bastien Vauban writes: > #+TITLE: Old-Org-HTML-hides-Org-HTML.txt > #+DATE: 2010-10-15 > #+LANGUAGE: en_US > > Hello, > > Yesterday, still being in the loop of (re-)installations after my laptop > crashed end of last week, I've *moved* my Org repository from > =3D~/Downloads/emacs/site-lisp/org-mode=3D to =3D~/src/org=3D and have up= dated the > =3Dload-path=3D: > > #+begin_src emacs-lisp > (my/add-to-load-path "~/src/org" 'with-subdirs 'recursive) > #+end_src > > before > > #+begin_src emacs-lisp > (when (require 'org-install) > ...) > #+end_src > > and have restarted Emacs 23. > > FYI, here is my definition of =3Dmy/add-to-load-path=3D: > > #+begin_src emacs-lisp > (defun my/add-to-load-path (this-directory > &optional with-subdirs recursive) > "Add THIS-DIRECTORY at the beginning of the load-path, if it exis= ts. > Add all its subdirectories not starting with a '.' if the > optional argument WITH-SUBDIRS is not nil. > Do it recursively if the third argument is not nil." > (when (and this-directory > (file-directory-p this-directory)) > (let* ((this-directory (expand-file-name this-directory)) > (files (directory-files this-directory t "^[^\\.]"))) > > ;; completely canonicalize the directory name (*may not* begin > ;; with `~') > (while (not (string=3D this-directory > (expand-file-name this-directory))) > (setq this-directory (expand-file-name this-directory))) > > (message "Adding `%s' to load-path..." this-directory) > (add-to-list 'load-path this-directory) > > (when with-subdirs > (while files > (setq dir-or-file (car files)) > (when (file-directory-p dir-or-file) > (if recursive > (my/add-to-load-path dir-or-file > 'with-subdirs 'recursive) > (my/add-to-load-path dir-or-file))) > (setq files (cdr files))))))) > #+end_src > > And could be the cause of problems I now have: > > #+begin_src emacs-lisp > Symbol's value as variable is void: org-html-entities > #+end_src > > In details (here, when replying to an email in Gnus -- but the same happe= ns in > different Org situations): > > #+begin_src emacs-lisp > Debugger entered--Lisp error: (void-variable org-html-entities) > org-compute-latex-and-specials-regexp() > org-set-regexps-and-options() > org-mode() > org-get-local-variables() > orgstruct-setup() > orgstruct-mode(1) > turn-on-orgstruct() > (progn (turn-on-orgtbl) (turn-on-orgstruct) (turn-on-orgstruct++)) > (if (locate-library "org.el") (progn (turn-on-orgtbl) (turn-on-orgstruc= t) (turn-on-orgstruct++))) > (when (locate-library "org.el") (turn-on-orgtbl) (turn-on-orgstruct) (t= urn-on-orgstruct++)) > my/message-mode-hook() > run-hooks(text-mode-hook message-mode-hook) > apply(run-hooks (text-mode-hook message-mode-hook)) > run-mode-hooks(message-mode-hook) > message-mode() > message-pop-to-buffer("*reply to Kate*") > message-reply(nil nil) > gnus-summary-reply((4248) nil) > gnus-summary-reply-with-original(nil) > call-interactively(gnus-summary-reply-with-original nil nil) > #+end_src > > I see; in Version 6.35 (info from =3DChanges.org=3D), that: > > #+begin_src txt > The constant =3Dorg-html-entities=3D is obsolete > #+end_src > > But, AFAIK, I don't reference it anywhere -- nowhere in my =3D.emacs=3D, = neither > in my =3D.gnus=3D. > > So, a lot of small things don't work anymore. Am I the responsible of thi= s, > or do things have changed? > > I don't see any mix of versions that I could have caused, but... > > #+begin_src emacs-lisp :results output > (list-load-path-shadows) > #+end_src > > #+results: > #+begin_example > > 90 Emacs Lisp load-path shadowings were found > #+end_example > > Weird... Lines are not outputted... *Bug*? > > Here a copy/paste of the top 10 lines containing the string =3Dorg=3D: > > #+begin_src emacs-lisp > c:/home/sva/src/org/testing/old/org-html hides c:/home/sva/src/org/lisp/o= rg-html > c:/home/sva/src/org/contrib/lisp/org-velocity hides c:/home/sva/Downloads= /emacs/site-lisp/org-velocity > c:/home/sva/src/org/contrib/lisp/org-invoice hides c:/home/sva/Downloads/= emacs/site-lisp/org-invoice > c:/home/sva/src/org/contrib/lisp/htmlize hides c:/home/sva/Downloads/emac= s/site-lisp/htmlize > c:/home/sva/src/org/contrib/lisp/org-panel hides c:/Program Files/Emacs-2= 3/EmacsW32/nxhtml/util/org-panel > c:/home/sva/src/org/lisp/org hides c:/Program Files/Emacs-23/emacs/lisp/o= rg/org > c:/home/sva/src/org/lisp/org-xoxo hides c:/Program Files/Emacs-23/emacs/l= isp/org/org-xoxo > c:/home/sva/src/org/lisp/org-wl hides c:/Program Files/Emacs-23/emacs/lis= p/org/org-wl > c:/home/sva/src/org/lisp/org-w3m hides c:/Program Files/Emacs-23/emacs/li= sp/org/org-w3m > c:/home/sva/src/org/lisp/org-vm hides c:/Program Files/Emacs-23/emacs/lis= p/org/org-vm > #+end_src > > Aaii, =3Dold/org-html=3D hides =3Dorg-html=3D... > > Solution in my case: rename =3Dorg/testing/old=3D into =3Dorg/testing/.ol= d=3D, so that > it won't be seen by =3Dmy/add-to-load-path=3D (as directories beginning w= ith a dot > are simply ignored). > > Restarted Emacs. OK now. > > Question: is it acceptable to replace (in Git) =3Dold=3D by =3D.old=3D --= in the hope > you'd be interested by my above function for finding lisp directories? > > Best regards, > Seb