all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jari Aalto <jari.aalto@cante.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 7665@debbugs.gnu.org, Jari Aalto <jari.aalto@cante.net>
Subject: bug#7665: Emacs: add command line option -L to set more paths to load-path
Date: Sat, 18 Dec 2010 13:24:49 +0200	[thread overview]
Message-ID: <878vznz5ku.fsf@picasso.cante.net> (raw)
In-Reply-To: <jwv39pwukcf.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 17 Dec 2010 17:05:40 -0500")

2010-12-18 00:05 Stefan Monnier <monnier@iro.umontreal.ca>:
| > An example:
| >     emacs -L ~/elisp/package -L ~/.emacs.d/downloaded -l my-test.el
| 
| I don't understand this example: why ~/elisp/package and
| ~/.emacs.d/downloaded?  What are these directories and how are they
| related to 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")

Paths and file names in the example were arbitrary and non-important.

The -L would also be useful for setting load-path prior byte
compiling files that require other files.

Jari





  parent reply	other threads:[~2010-12-18 11:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-17 17:50 bug#7665: Emacs: add command line option -L to set more paths to load-path Jari Aalto
2010-12-17 18:49 ` bug#7665: Emacs: add command line option -L to set more paths toload-path Drew Adams
2010-12-17 22:05 ` bug#7665: Emacs: add command line option -L to set more paths to load-path Stefan Monnier
2010-12-18  0:46   ` bug#7665: Emacs: add command line option -L to set more paths toload-path Drew Adams
2010-12-18 11:24   ` Jari Aalto [this message]
2010-12-18 16:01     ` bug#7665: Emacs: add command line option -L to set more paths to load-path Stefan Monnier
2010-12-18 19:10       ` jari
2010-12-18 20:12         ` bug#7665: Emacs: add command line option -L to set more paths toload-path Drew Adams
2010-12-19 11:05           ` jari
2011-01-21 18:52         ` bug#7665: Emacs: add command line option -L to set more paths to load-path Stefan Monnier
2011-04-30 16:39 ` bug#7665: Emacs: add command line option -L to set more paths to load-path - GNU bug report logs Jari Aalto
2011-05-02 16:09   ` Stefan Monnier
2011-05-05  6:49 ` bug#7665: Emacs: add command line option -L to set more paths to Jari Aalto
2013-02-24  0:59 ` bug#7665: Emacs: add command line option -L to set more paths to load-path Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878vznz5ku.fsf@picasso.cante.net \
    --to=jari.aalto@cante.net \
    --cc=7665@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.