Alessandro Ghedini <al3x...@gmail.com> writes: > > I'm afraid I don't understand what you are saying. Could you please point me > to > a package that uses debian-pkg-add-load-path-item?
debian-el in /etc/emacs/site-start.d/51debian-el.el for example (debian-pkg-add-load-path-item (concat "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/debian-el")) or you can let-bind the flavour directory expression, eg. haml-elisp (let ((package-dir (concat "/usr/share/" (symbol-name flavor) "/site-lisp/haml-elisp"))) ;; If package-dir does not exist, the haml-mode package must have ;; removed but not purged, and we should skip the setup. (when (file-directory-p package-dir) ;; Use debian-pkg-add-load-path-item per s9 of debian emacs subpolicy (debian-pkg-add-load-path-item package-dir ) (autoload 'haml-mode "haml-mode" "Major mode for editing haml-mode files." t) (add-to-list 'auto-mode-alist '("\\.haml\\'" . haml-mode)) )) > I've looked into a few but > all of them use load-path in their startup scripts. Many don't obey the policy yet, and cut and paste seems to propagate setups from one package to another :). But the intention described in the debian-emacs-policy.gz is sound. -- The sigfile finance for the layman series: In an annual report screaming wild optimism is the normal tone for a chairman's letter. If it's anything less then expect to lose money. _______________________________________________ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers