all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'jari'" <jari.aalto@cante.net>,
	"'Stefan Monnier'" <monnier@iro.umontreal.ca>
Cc: 7665@debbugs.gnu.org
Subject: bug#7665: Emacs: add command line option -L to set more paths toload-path
Date: Sat, 18 Dec 2010 12:12:33 -0800	[thread overview]
Message-ID: <67175E23C106407DA3B0DEC473FAB6C0@us.oracle.com> (raw)
In-Reply-To: <20101218191030.GC9613@picasso.cante.net>

> | 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

And I was thinking mainly of another use case: analyzing and reporting bugs.

I typically have many things open/loaded when I first detect a bug, and I use
lots of soft-`require's: (require 'foo nil t).

To narrow down the problem, I sometimes copy suspect files to a separate
directory, open `emacs -Q' and add just that directory to `load-path'.  I use a
Windows shortcut to launch Emacs, and it would be handy to just put the -L into
the run command for the shortcut.  This is also convenient if there are a couple
such directories that provide alternatives I want to compare.

Granted, this is all just convenience stuff - you can always modify `load-path'
using Lisp.  But I think it could be useful.

IMO (without too much thought, so I could be wrong), the order of switch
processing should be just left to right.  That way, you could use -L followed by
-l then a different -L followed by another -l etc.  Assuming that each -L pushes
a directory to `load-path', the second -L would shadow the first, in case the -l
library is in both directories.  Etc.

The real point of the last paragraph is that we should think over how we want
these switches to be processed, because the order can make a difference.  The
processing order should anyway be (deterministic and) documented for users.






  reply	other threads:[~2010-12-18 20:12 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   ` bug#7665: Emacs: add command line option -L to set more paths to load-path Jari Aalto
2010-12-18 16:01     ` Stefan Monnier
2010-12-18 19:10       ` jari
2010-12-18 20:12         ` Drew Adams [this message]
2010-12-19 11:05           ` bug#7665: Emacs: add command line option -L to set more paths toload-path 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=67175E23C106407DA3B0DEC473FAB6C0@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=7665@debbugs.gnu.org \
    --cc=jari.aalto@cante.net \
    --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.