GNU bug report logs - #7665
Emacs: add command line option -L to set more paths to load-path

Previous Next

Package: emacs;

Reported by: Jari Aalto <jari.aalto <at> cante.net>

Date: Fri, 17 Dec 2010 17:44:01 UTC

Severity: wishlist

Found in version 23.2+1-5.1

Fixed in version 19.29

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 7665 <at> debbugs.gnu.org (full text, mbox):

From: jari <jari.aalto <at> cante.net>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 7665 <at> debbugs.gnu.org
Subject: Re: bug#7665: Emacs: add command line option -L to set more paths
	to load-path
Date: Sat, 18 Dec 2010 21:10:30 +0200
On 2010-12-18 11:01, Stefan Monnier wrote:
| > | > An example:
| > | >     emacs -L ~/elisp/package -L ~/.emacs.d/downloaded -l my-test.el
|
| > Just like Drew explained. The above would effectively do:
| 
| >     (add-to-list 'load-path "~/elisp/package")
| >     (add-to-list 'load-path "~/.emacs.d/downloaded")
| >     (load-library "my-test.el")
| 
| I understood that part, of course.  The question is: why do you need to
| do that?
| Hence "What are these directories and how are they related to my-test.el?"
| And "Why ~/elisp/package and ~/.emacs.d/downloaded?"

Users download packages for Emas from emacswiki etc. and those packages are put
either under:

       ~/elisp/

or     ~/.emacs.d/


To set the load-path to include more directories at command line is
typically needed for

	- To test new features (as in above: my-test.el does
          something with 'require' commands).

	- To be able to set load-path for byte compiling packages

Jari




This bug report was last modified 12 years and 88 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.