From unknown Fri Jun 20 05:37:08 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#7665 <7665@debbugs.gnu.org> To: bug#7665 <7665@debbugs.gnu.org> Subject: Status: Emacs: add command line option -L to set more paths to load-path Reply-To: bug#7665 <7665@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:37:08 +0000 retitle 7665 Emacs: add command line option -L to set more paths to load-pa= th reassign 7665 emacs submitter 7665 Jari Aalto severity 7665 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 17 12:43:54 2010 Received: (at submit) by debbugs.gnu.org; 17 Dec 2010 17:43:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTeLS-0002O3-LD for submit@debbugs.gnu.org; Fri, 17 Dec 2010 12:43:54 -0500 Received: from emh05.mail.saunalahti.fi ([62.142.5.111]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTeLP-0002Nq-Ls for submit@debbugs.gnu.org; Fri, 17 Dec 2010 12:43:53 -0500 Received: from saunalahti-vams (vs3-11.mail.saunalahti.fi [62.142.5.95]) by emh05-2.mail.saunalahti.fi (Postfix) with SMTP id 9A4738BED6 for ; Fri, 17 Dec 2010 19:50:12 +0200 (EET) Received: from emh05.mail.saunalahti.fi ([62.142.5.111]) by vs3-11.mail.saunalahti.fi ([62.142.5.95]) with SMTP (gateway) id A027F897D14; Fri, 17 Dec 2010 19:50:12 +0200 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh05.mail.saunalahti.fi (Postfix) with ESMTP id 77EC227D83 for ; Fri, 17 Dec 2010 19:50:10 +0200 (EET) From: Jari Aalto To: submit@debbugs.gnu.org Subject: Emacs: add command line option -L to set more paths to load-path Mail-Copies-To: poster Date: Fri, 17 Dec 2010 19:50:10 +0200 Message-ID: <8739pw2srx.fsf@picasso.cante.net> MIME-Version: 1.0 Content-Type: text/plain X-Antivirus: VAMS X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) Package: emacs Version: 23.2+1-5.1 Severity: wishlist To use and test packages outside of standard Emacs installation directories, it would be nice to have option -L (like in linkers) to prepend paths easily to load-path. An example: emacs -L ~/elisp/package -L ~/.emacs.d/downloaded -l my-test.el The long version of the option could be names: --load-path -- System Information Debian Release: squeeze/sid APT Prefers testing APT policy: (990, testing) (500, unstable) (1, experimental) Architecture: amd64 Kernel: Linux picasso 2.6.32-5-amd64 #1 SMP Fri Sep 17 21:50:19 UTC 2010 x86_64 GNU/Linux Locale: LANG=en_DK.UTF-8 -- Versions of packages `emacs depends on'. Depends: emacs23 23.2+1-5.1 GNU Emacs is the extensible self-documenting emacs23-lucid 23.2+1-5.1 GNU Emacs is the extensible self-documenting emacs23-nox 23.2+1-5.1 GNU Emacs is the extensible self-documenting From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 17 13:43:47 2010 Received: (at 7665) by debbugs.gnu.org; 17 Dec 2010 18:43:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTfHP-0003oj-6C for submit@debbugs.gnu.org; Fri, 17 Dec 2010 13:43:47 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTfHM-0003oW-RG for 7665@debbugs.gnu.org; Fri, 17 Dec 2010 13:43:45 -0500 Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBHIo40L000897 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 17 Dec 2010 18:50:05 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBHIjwtE020160; Fri, 17 Dec 2010 18:50:03 GMT Received: from abhmt007.oracle.com by acsmt354.oracle.com with ESMTP id 885689891292611768; Fri, 17 Dec 2010 10:49:28 -0800 Received: from dradamslap1 (/10.159.229.142) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 17 Dec 2010 10:49:28 -0800 From: "Drew Adams" To: "'Jari Aalto'" , <7665@debbugs.gnu.org> References: <8739pw2srx.fsf@picasso.cante.net> Subject: RE: bug#7665: Emacs: add command line option -L to set more paths toload-path Date: Fri, 17 Dec 2010 10:49:27 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <8739pw2srx.fsf@picasso.cante.net> Thread-Index: AcueGuK0dRpkymitRLmTy0HAGA3p8QAACkZg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 7665 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) > To use and test packages outside of standard Emacs installation > directories, it would be nice to have option -L (like in linkers) to > prepend paths easily to load-path. > > An example: > > emacs -L ~/elisp/package -L ~/.emacs.d/downloaded -l my-test.el > > The long version of the option could be names: > > --load-path 1+ From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 17 16:59:19 2010 Received: (at 7665) by debbugs.gnu.org; 17 Dec 2010 21:59:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTiKd-0008LI-AL for submit@debbugs.gnu.org; Fri, 17 Dec 2010 16:59:19 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTiKc-0008L7-8e for 7665@debbugs.gnu.org; Fri, 17 Dec 2010 16:59:18 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAORsC03O+KHE/2dsb2JhbACkMXS/bYVKBIRljhE X-IronPort-AV: E=Sophos;i="4.60,190,1291611600"; d="scan'208";a="85759461" Received: from 206-248-161-196.dsl.teksavvy.com (HELO ceviche.home) ([206.248.161.196]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 17 Dec 2010 17:05:40 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 1891B66112; Fri, 17 Dec 2010 17:05:40 -0500 (EST) From: Stefan Monnier To: Jari Aalto Subject: Re: bug#7665: Emacs: add command line option -L to set more paths to load-path Message-ID: References: <8739pw2srx.fsf@picasso.cante.net> Date: Fri, 17 Dec 2010 17:05:40 -0500 In-Reply-To: <8739pw2srx.fsf@picasso.cante.net> (Jari Aalto's message of "Fri, 17 Dec 2010 19:50:10 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 7665 Cc: 7665@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > 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? Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 17 19:46:07 2010 Received: (at 7665) by debbugs.gnu.org; 18 Dec 2010 00:46:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTkw3-0003Xy-1f for submit@debbugs.gnu.org; Fri, 17 Dec 2010 19:46:07 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTkw1-0003XU-Cq for 7665@debbugs.gnu.org; Fri, 17 Dec 2010 19:46:05 -0500 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBI0qOUI020514 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 18 Dec 2010 00:52:26 GMT Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBI0qNje000527; Sat, 18 Dec 2010 00:52:24 GMT Received: from abhmt001.oracle.com by acsmt354.oracle.com with ESMTP id 864651111292633210; Fri, 17 Dec 2010 16:46:50 -0800 Received: from dradamslap1 (/10.159.217.191) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 17 Dec 2010 16:46:50 -0800 From: "Drew Adams" To: "'Stefan Monnier'" , "'Jari Aalto'" References: <8739pw2srx.fsf@picasso.cante.net> Subject: RE: bug#7665: Emacs: add command line option -L to set more paths toload-path Date: Fri, 17 Dec 2010 16:46:49 -0800 Message-ID: <2667D54DEB4D4555AD37D5709F87545E@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcueOQhQt47UTJf9TzqLxOFmq4yDnAAE4zcg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 7665 Cc: 7665@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) > > 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? I shouldn't try to speak for Jari, but since I seconded the idea... This is what I understood: -L means add its arg to `load-path' -l means load my-test.el (processing the `load-path' in the normal way). -L's action would be done before -l's. Presumably the -L's would be processed in order. The example given is only that: an example. Nothing special about the directories used in the example. Again, Jari might have had something different in mind, but that's what I imagined. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 18 06:18:35 2010 Received: (at 7665) by debbugs.gnu.org; 18 Dec 2010 11:18:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTuo6-0000Mw-Ms for submit@debbugs.gnu.org; Sat, 18 Dec 2010 06:18:35 -0500 Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTuo3-0000Mj-Qf for 7665@debbugs.gnu.org; Sat, 18 Dec 2010 06:18:33 -0500 Received: from saunalahti-vams (vs3-12.mail.saunalahti.fi [62.142.5.96]) by emh03-2.mail.saunalahti.fi (Postfix) with SMTP id 971D9EB944; Sat, 18 Dec 2010 13:24:54 +0200 (EET) Received: from emh04.mail.saunalahti.fi ([62.142.5.110]) by vs3-12.mail.saunalahti.fi ([62.142.5.96]) with SMTP (gateway) id A058464D9EE; Sat, 18 Dec 2010 13:24:54 +0200 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh04.mail.saunalahti.fi (Postfix) with ESMTP id B5FEC41BE2; Sat, 18 Dec 2010 13:24:50 +0200 (EET) From: Jari Aalto To: Stefan Monnier Subject: Re: bug#7665: Emacs: add command line option -L to set more paths to load-path Organization: Private References: <8739pw2srx.fsf@picasso.cante.net> Mail-Copies-To: poster Date: Sat, 18 Dec 2010 13:24:49 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 17 Dec 2010 17:05:40 -0500") Message-ID: <878vznz5ku.fsf@picasso.cante.net> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Antivirus: VAMS X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 7665 Cc: 7665@debbugs.gnu.org, Jari Aalto X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) 2010-12-18 00:05 Stefan Monnier : | > 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 18 10:54:59 2010 Received: (at 7665) by debbugs.gnu.org; 18 Dec 2010 15:54:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTz7b-0007Cj-3J for submit@debbugs.gnu.org; Sat, 18 Dec 2010 10:54:59 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTz7Y-0007CX-IX for 7665@debbugs.gnu.org; Sat, 18 Dec 2010 10:54:57 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAAVqDE1Ld/KP/2dsb2JhbACkNHS8OoVKBIRljhI X-IronPort-AV: E=Sophos;i="4.60,194,1291611600"; d="scan'208";a="85811853" Received: from 75-119-242-143.dsl.teksavvy.com (HELO pastel.home) ([75.119.242.143]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 18 Dec 2010 11:01:04 -0500 Received: by pastel.home (Postfix, from userid 20848) id AEC7758E99; Sat, 18 Dec 2010 11:01:03 -0500 (EST) From: Stefan Monnier To: Jari Aalto Subject: Re: bug#7665: Emacs: add command line option -L to set more paths to load-path Message-ID: References: <8739pw2srx.fsf@picasso.cante.net> <878vznz5ku.fsf@picasso.cante.net> Date: Sat, 18 Dec 2010 11:01:03 -0500 In-Reply-To: <878vznz5ku.fsf@picasso.cante.net> (Jari Aalto's message of "Sat, 18 Dec 2010 13:24:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7665 Cc: 7665@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > | > 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") 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?" Hopefully you (or Drew) understand those two questions now and can answer them, Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 18 14:04:14 2010 Received: (at 7665) by debbugs.gnu.org; 18 Dec 2010 19:04:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PU24k-0002pa-0K for submit@debbugs.gnu.org; Sat, 18 Dec 2010 14:04:14 -0500 Received: from emh02.mail.saunalahti.fi ([62.142.5.108]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PU24g-0002pM-T2 for 7665@debbugs.gnu.org; Sat, 18 Dec 2010 14:04:11 -0500 Received: from saunalahti-vams (vs3-10.mail.saunalahti.fi [62.142.5.94]) by emh02-2.mail.saunalahti.fi (Postfix) with SMTP id 20382EF5D5; Sat, 18 Dec 2010 21:10:34 +0200 (EET) Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) by vs3-10.mail.saunalahti.fi ([62.142.5.94]) with SMTP (gateway) id A01D9214190; Sat, 18 Dec 2010 21:10:34 +0200 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh03.mail.saunalahti.fi (Postfix) with ESMTP id 8897D158A63; Sat, 18 Dec 2010 21:10:30 +0200 (EET) Received: from jaalto by picasso.cante.net with local (Exim 4.72) (envelope-from ) id 1PU2Ao-0005yr-JY; Sat, 18 Dec 2010 21:10:30 +0200 Date: Sat, 18 Dec 2010 21:10:30 +0200 From: jari To: Stefan Monnier Subject: Re: bug#7665: Emacs: add command line option -L to set more paths to load-path Message-ID: <20101218191030.GC9613@picasso.cante.net> References: <8739pw2srx.fsf@picasso.cante.net> <878vznz5ku.fsf@picasso.cante.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jaalto@picasso.cante.net X-SA-Exim-Scanned: No (on picasso.cante.net); SAEximRunCond expanded to false X-Antivirus: VAMS X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 7665 Cc: 7665@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 18 15:11:31 2010 Received: (at 7665) by debbugs.gnu.org; 18 Dec 2010 20:11:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PU37r-0004HD-BE for submit@debbugs.gnu.org; Sat, 18 Dec 2010 15:11:31 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PU37p-0004H0-0i for 7665@debbugs.gnu.org; Sat, 18 Dec 2010 15:11:29 -0500 Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBIKHpZI022304 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 18 Dec 2010 20:17:52 GMT Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBIKCgv7014058; Sat, 18 Dec 2010 20:12:42 GMT Received: from abhmt007.oracle.com by acsmt355.oracle.com with ESMTP id 887187041292703153; Sat, 18 Dec 2010 12:12:33 -0800 Received: from dradamslap1 (/10.159.217.191) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 18 Dec 2010 12:12:33 -0800 From: "Drew Adams" To: "'jari'" , "'Stefan Monnier'" References: <8739pw2srx.fsf@picasso.cante.net><878vznz5ku.fsf@picasso.cante.net> <20101218191030.GC9613@picasso.cante.net> Subject: RE: bug#7665: Emacs: add command line option -L to set more paths toload-path Date: Sat, 18 Dec 2010 12:12:33 -0800 Message-ID: <67175E23C106407DA3B0DEC473FAB6C0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20101218191030.GC9613@picasso.cante.net> Thread-Index: Acue6PiQJPyWsCKcRY2HbNHyqBG+SAABSWbA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 7665 Cc: 7665@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) > | 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 05:59:19 2010 Received: (at 7665) by debbugs.gnu.org; 19 Dec 2010 10:59:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PUGz0-0007yR-3X for submit@debbugs.gnu.org; Sun, 19 Dec 2010 05:59:18 -0500 Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PUGyw-0007y5-6n for 7665@debbugs.gnu.org; Sun, 19 Dec 2010 05:59:16 -0500 Received: from saunalahti-vams (vs3-11.mail.saunalahti.fi [62.142.5.95]) by emh03-2.mail.saunalahti.fi (Postfix) with SMTP id 9C9D9EBB44; Sun, 19 Dec 2010 13:05:34 +0200 (EET) Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) by vs3-11.mail.saunalahti.fi ([62.142.5.95]) with SMTP (gateway) id A065E395DFA; Sun, 19 Dec 2010 13:05:34 +0200 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh03.mail.saunalahti.fi (Postfix) with ESMTP id 32BBB158A64; Sun, 19 Dec 2010 13:05:28 +0200 (EET) Received: from jaalto by picasso.cante.net with local (Exim 4.72) (envelope-from ) id 1PUH4x-0006Gk-Rq; Sun, 19 Dec 2010 13:05:27 +0200 Date: Sun, 19 Dec 2010 13:05:27 +0200 From: jari To: Drew Adams Subject: Re: bug#7665: Emacs: add command line option -L to set more paths toload-path Message-ID: <20101219110527.GD9613@picasso.cante.net> References: <8739pw2srx.fsf@picasso.cante.net> <878vznz5ku.fsf@picasso.cante.net> <20101218191030.GC9613@picasso.cante.net> <67175E23C106407DA3B0DEC473FAB6C0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67175E23C106407DA3B0DEC473FAB6C0@us.oracle.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jaalto@picasso.cante.net X-SA-Exim-Scanned: No (on picasso.cante.net); SAEximRunCond expanded to false X-Antivirus: VAMS X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 7665 Cc: 'Stefan Monnier' , 7665@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) On 2010-12-18 12:12, Drew Adams wrote: | | And I was thinking mainly of another use case: analyzing and reporting bugs. | ... To narrow down the problem, I sometimes copy suspect files to a separate | direactory, open `emacs -Q' and add just that directory to `load-path'. | | ... the order of switch processing should be just left to right. | That way, you could use -L followed by -l Processing would be as they appear on the command line. -L path1 -l library1 -l path2 -l library2 as in: (add-to-list 'load-path "path1") (load "library1") (add-to-list 'load-path "path2") (load "library2") Jari From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 21 13:44:12 2011 Received: (at 7665) by debbugs.gnu.org; 21 Jan 2011 18:44:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PgLy0-0000Cu-FU for submit@debbugs.gnu.org; Fri, 21 Jan 2011 13:44:12 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PgLxz-0000Ci-Cx for 7665@debbugs.gnu.org; Fri, 21 Jan 2011 13:44:11 -0500 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p0LIq2Kx002826; Fri, 21 Jan 2011 13:52:02 -0500 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 1C750B411E; Fri, 21 Jan 2011 13:52:02 -0500 (EST) From: Stefan Monnier To: jari Subject: Re: bug#7665: Emacs: add command line option -L to set more paths to load-path Message-ID: References: <8739pw2srx.fsf@picasso.cante.net> <878vznz5ku.fsf@picasso.cante.net> <20101218191030.GC9613@picasso.cante.net> Date: Fri, 21 Jan 2011 13:52:02 -0500 In-Reply-To: <20101218191030.GC9613@picasso.cante.net> (jari's message of "Sat, 18 Dec 2010 21:10:30 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3735=0 X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7665 Cc: 7665@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Users download packages for Emas from emacswiki etc. and those > packages are put either under: > ~/elisp/ > or ~/.emacs.d/ That's the obvious part. > 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). I don't understand: presumably your ~/.emacs.d or ~/elisp dir will be added to your load-path by ~/.emacs, so you don't need it on the command line. > - To be able to set load-path for byte compiling packages Again, I don't understand what situation you're thinking about. In my view, there are mainly two cases: - single file packages, which you can handle with "emacs -l /where/ever/foo.el" - multifile packages, which have an "autoloads" or "site-init" file and that file should set load-path for you, so "emacs -l /where/ever/autoloads" will again take care of the load-path. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 30 12:40:04 2011 Received: (at 7665) by debbugs.gnu.org; 30 Apr 2011 16:40:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QGDDA-0006UV-6v for submit@debbugs.gnu.org; Sat, 30 Apr 2011 12:40:04 -0400 Received: from emh01.mail.saunalahti.fi ([62.142.5.107]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QGDD5-0006Tu-JQ for 7665@debbugs.gnu.org; Sat, 30 Apr 2011 12:40:00 -0400 Received: from saunalahti-vams (vs3-10.mail.saunalahti.fi [62.142.5.94]) by emh01-2.mail.saunalahti.fi (Postfix) with SMTP id D8F698C505; Sat, 30 Apr 2011 19:39:52 +0300 (EEST) Received: from emh07.mail.saunalahti.fi ([62.142.5.117]) by vs3-10.mail.saunalahti.fi ([62.142.5.94]) with SMTP (gateway) id A01CCAD1F79; Sat, 30 Apr 2011 19:39:52 +0300 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh07.mail.saunalahti.fi (Postfix) with ESMTP id E9B6E1C6382; Sat, 30 Apr 2011 19:39:49 +0300 (EEST) From: Jari Aalto To: 7665@debbugs.gnu.org Subject: Re: Bug#7665: Emacs: add command line option -L to set more paths to load-path - GNU bug report logs Mail-Copies-To: poster Date: Sat, 30 Apr 2011 19:39:48 +0300 Message-ID: <87oc3nu20b.fsf@picasso.cante.net> MIME-Version: 1.0 Content-Type: text/plain X-Antivirus: VAMS X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 7665 Cc: 7665-submitter@bugs.debian.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) > In my view, there are mainly two cases: > - single file packages, which you can handle with "emacs -l > /where/ever/foo.el" > - multifile packages, which have an "autoloads" or "site-init" file and > that file should set load-path for you, so > "emacs -l /where/ever/autoloads" will again take care of the load-path. > > Stefan To test third party packages that depends on other 3rd party libraries. Not all packages have autoloads files. Jari From debbugs-submit-bounces@debbugs.gnu.org Mon May 02 12:09:20 2011 Received: (at 7665) by debbugs.gnu.org; 2 May 2011 16:09:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QGvgW-00048a-ET for submit@debbugs.gnu.org; Mon, 02 May 2011 12:09:20 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QGvgV-00048N-E6 for 7665@debbugs.gnu.org; Mon, 02 May 2011 12:09:19 -0400 Received: from 121-249-126-200.fibertel.com.ar ([200.126.249.121]:53282 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QGvgP-00082K-An; Mon, 02 May 2011 12:09:13 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 65F0366119; Mon, 2 May 2011 13:09:11 -0300 (ART) From: Stefan Monnier To: Jari Aalto Subject: Re: bug#7665: Emacs: add command line option -L to set more paths to load-path - GNU bug report logs Message-ID: References: <8739pw2srx.fsf@picasso.cante.net> <87oc3nu20b.fsf@picasso.cante.net> Date: Mon, 02 May 2011 13:09:11 -0300 In-Reply-To: <87oc3nu20b.fsf@picasso.cante.net> (Jari Aalto's message of "Sat, 30 Apr 2011 19:39:48 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 7665 Cc: 7665-submitter@bugs.debian.org, 7665@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) > To test third party packages that depends on other 3rd party > libraries. Not all packages have autoloads files. That's a good opportunity to fix them, Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu May 05 02:50:09 2011 Received: (at 7665) by debbugs.gnu.org; 5 May 2011 06:50:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QHsO0-0006gG-Ua for submit@debbugs.gnu.org; Thu, 05 May 2011 02:50:09 -0400 Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QHsNu-0006ff-4X for 7665@debbugs.gnu.org; Thu, 05 May 2011 02:50:07 -0400 Received: from saunalahti-vams (vs3-10.mail.saunalahti.fi [62.142.5.94]) by emh03-2.mail.saunalahti.fi (Postfix) with SMTP id E97FCEC31E for <7665@debbugs.gnu.org>; Thu, 5 May 2011 09:49:55 +0300 (EEST) Received: from emh07.mail.saunalahti.fi ([62.142.5.117]) by vs3-10.mail.saunalahti.fi ([62.142.5.94]) with SMTP (gateway) id A0323BEA882; Thu, 05 May 2011 09:49:55 +0300 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh07.mail.saunalahti.fi (Postfix) with ESMTP id C78C81C638A for <7665@debbugs.gnu.org>; Thu, 5 May 2011 09:49:53 +0300 (EEST) From: Jari Aalto To: 7665@debbugs.gnu.org Subject: Re: bug#7665: Emacs: add command line option -L to set more paths to Organization: Private Mail-Copies-To: poster Date: Thu, 05 May 2011 09:49:53 +0300 Message-ID: <87iptp3alq.fsf@picasso.cante.net> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Antivirus: VAMS X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 7665 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.5 (-) Stefan Monnier iro.umontreal.ca>: > > To test third party packages that depends on other 3rd party > > libraries. Not all packages have autoloads files. > > That's a good opportunity to fix them. Many packages are single source. They do not ship Makefiles or *-autoloads.el. An example: Developer Joe publishes A Developer Mike publishes B, but uses A's package. To avoid troubles he bundes A in his archive. Later Developr A publishes new version. But B does not update his copy. Elsewhere Zoe wants to use latest A and latest B, so he does downloads both from version control trees. He intends to test to see if B still works with latest A: emacs -L /patch/to/A -l A -l path/to/B -l B The -L option would be helpful in combining code from differe directories. Jari From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 23 20:01:02 2013 Received: (at 7665-done) by debbugs.gnu.org; 24 Feb 2013 01:01:02 +0000 Received: from localhost ([127.0.0.1]:46210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9Pxd-0000ep-Og for submit@debbugs.gnu.org; Sat, 23 Feb 2013 20:01:02 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:52697) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9Pxb-0000eS-TX for 7665-done@debbugs.gnu.org; Sat, 23 Feb 2013 20:01:00 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U9Pw8-0003n9-4M; Sat, 23 Feb 2013 19:59:28 -0500 From: Glenn Morris To: 7665-done@debbugs.gnu.org Subject: Re: bug#7665: Emacs: add command line option -L to set more paths to load-path References: <8739pw2srx.fsf@picasso.cante.net> X-Spook: Arnett UOP JFK Vince Foster Rubin Albanian fissionable X-Ran: HHAjEc+_pH_|/FfZ8]u/a?<@mQ21eX/[6~aG#1dK9!Kjh^V>TvLY&l;=5}Pq-2jNmUdhwT X-Hue: red X-Attribution: GM Date: Sat, 23 Feb 2013 19:59:28 -0500 In-Reply-To: <8739pw2srx.fsf@picasso.cante.net> (Jari Aalto's message of "Fri, 17 Dec 2010 19:50:10 +0200") Message-ID: <3ga9qua5n3.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: 7665-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -7.6 (-------) Version: 19.29 Jari Aalto wrote: > directories, it would be nice to have option -L (like in linkers) to > prepend paths easily to load-path. > > An example: > > emacs -L ~/elisp/package -L ~/.emacs.d/downloaded -l my-test.el [...] > 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") Emacs has had this feature since version 19.29... From unknown Fri Jun 20 05:37:08 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 24 Mar 2013 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator