Package: org-mode
Version: 6.26a-1

I had Emacs already open and installed the package later. I tried
loading the startup file /etc/emacs/site-start.d/50org-mode.el but I
got void variable 'flavor' error. Doing a C-h v with flavor doesn't
show flavor as being a bound symbol. Therefore the let environment
assignment in the said file fails.

I managed to get it working by replacing flavor by
debian-emacs-flavor.

My emacs package version is 22.2+2-5 (Lenny)

I attach a simple patch.

Thank you,
António,

** O Ouvido de Maxwell: Pare, escute, sinta     http://ouvidodemaxwell.com
*** /tmp/t1.d/50org-mode.el.orig	2009-04-20 08:12:23.000000000 +0100
--- /tmp/t1.d/50org-mode.el	2009-04-21 00:45:29.000000000 +0100
***************
*** 12,24 ****
  ;; xemacs19, emacs20, xemacs20...).  The compiled code is then
  ;; installed in a subdirectory of the respective site-lisp directory.
  ;; We have to add this to the load-path:
! (let ((package-dir (concat "/usr/share/"
!                            (symbol-name flavor)
!                            "/site-lisp/org-mode")))
! 
! ;; If package-dir does not exist, the org-mode package must have
! ;; removed but not purged, and we should skip the setup.
!   (when (file-directory-p package-dir)
!     (setq load-path (cons package-dir load-path))
!     (require 'org-install)
!     (add-to-list 'auto-mode-alist '("\\.org\\(-mode\\)?$" . org-mode))))
--- 12,23 ----
  ;; xemacs19, emacs20, xemacs20...).  The compiled code is then
  ;; installed in a subdirectory of the respective site-lisp directory.
  ;; We have to add this to the load-path:
!   (let ((package-dir (concat "/usr/share/"
! 			     (symbol-name debian-emacs-flavor)
! 			     "/site-lisp/org-mode")))
!     ;; If package-dir does not exist, the org-mode package must have
!     ;; removed but not purged, and we should skip the setup.
!     (when (file-directory-p package-dir)
!       (setq load-path (cons package-dir load-path))
!       (require 'org-install)
!       (add-to-list 'auto-mode-alist '("\\.org\\(-mode\\)?$" . org-mode))))

Reply via email to