From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: [Testing + Babel] Old Org HTML hides Org HTML Date: Fri, 15 Oct 2010 16:41:03 +0200 Message-ID: <80d3rb8qo0.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org #+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 upda= ted 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 exists. 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 happens= 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-orgstruct)= (turn-on-orgstruct++))) (when (locate-library "org.el") (turn-on-orgtbl) (turn-on-orgstruct) (tur= n-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, ne= ither in my =3D.gnus=3D. So, a lot of small things don't work anymore. Am I the responsible of this, 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/org= -html c:/home/sva/src/org/contrib/lisp/org-velocity hides c:/home/sva/Downloads/e= macs/site-lisp/org-velocity c:/home/sva/src/org/contrib/lisp/org-invoice hides c:/home/sva/Downloads/em= acs/site-lisp/org-invoice c:/home/sva/src/org/contrib/lisp/htmlize hides c:/home/sva/Downloads/emacs/= site-lisp/htmlize c:/home/sva/src/org/contrib/lisp/org-panel hides c:/Program Files/Emacs-23/= EmacsW32/nxhtml/util/org-panel c:/home/sva/src/org/lisp/org hides c:/Program Files/Emacs-23/emacs/lisp/org= /org c:/home/sva/src/org/lisp/org-xoxo hides c:/Program Files/Emacs-23/emacs/lis= p/org/org-xoxo c:/home/sva/src/org/lisp/org-wl hides c:/Program Files/Emacs-23/emacs/lisp/= org/org-wl c:/home/sva/src/org/lisp/org-w3m hides c:/Program Files/Emacs-23/emacs/lisp= /org/org-w3m c:/home/sva/src/org/lisp/org-vm hides c:/Program Files/Emacs-23/emacs/lisp/= 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/.old= =3D, so that it won't be seen by =3Dmy/add-to-load-path=3D (as directories beginning wit= h a dot are simply ignored). Restarted Emacs. OK now. Question: is it acceptable to replace (in Git) =3Dold=3D by =3D.old=3D -- i= n the hope you'd be interested by my above function for finding lisp directories? Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode