From unknown Tue Aug 12 07:34:32 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#60923 <60923@debbugs.gnu.org> To: bug#60923 <60923@debbugs.gnu.org> Subject: Status: 29.0.60; package-vc-install: Allow specifying directories Reply-To: bug#60923 <60923@debbugs.gnu.org> Date: Tue, 12 Aug 2025 14:34:32 +0000 retitle 60923 29.0.60; package-vc-install: Allow specifying directories reassign 60923 emacs submitter 60923 Mohammed Sadiq severity 60923 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 17 23:24:54 2023 Received: (at submit) by debbugs.gnu.org; 18 Jan 2023 04:24:54 +0000 Received: from localhost ([127.0.0.1]:38757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pI00M-0003PL-0U for submit@debbugs.gnu.org; Tue, 17 Jan 2023 23:24:54 -0500 Received: from lists.gnu.org ([209.51.188.17]:52036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pI00H-0003P8-0k for submit@debbugs.gnu.org; Tue, 17 Jan 2023 23:24:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pI00G-0000RM-Ql for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 23:24:48 -0500 Received: from relay11.mail.gandi.net ([2001:4b98:dc4:8::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pI00E-000444-JQ for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 23:24:48 -0500 Received: (Authenticated sender: sadiq@sadiqpk.org) by mail.gandi.net (Postfix) with ESMTPA id 67080100002 for ; Wed, 18 Jan 2023 04:24:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sadiqpk.org; s=gm1; t=1674015882; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aUG9WhWoOaIdcAgwZMPPdpmrbEMUMyTmSWqyETkv9HE=; b=dVSMcvUbUOCSbHgSzM/P7Mu4flThjggJnJVucfHXq6Rpg8dj3ReijBrMQN49JqGugpf6JU 9R+0XWJVDEDV3fx6hQgfMB2FiR59k7qLoXjUDDfjsFzZT/CaRA0sK1eMNnwzmmcJwB2zRt +Qu99JHMYtWZkCQGB6wVZp0Crkl4EaZLrAmhtPrUB7ybucwpzZXV9JO5RypcnM0gkoO4Gi jKLjwTjj7QA2yOTYncAT3/KLiyOgeeYlxV2TLE4IhQZUuRvkwm5XyD1BE8b2nnwPqmPJ6w wmQCHJvfNbnXuExtc7jm1IxnNn4Vxznk0lrk6WFku3mr1H0tq1fc/L1oYm4gug== MIME-Version: 1.0 Date: Wed, 18 Jan 2023 09:54:41 +0530 From: Mohammed Sadiq To: bug-gnu-emacs@gnu.org Subject: 29.0.60; package-vc-install: Allow specifying directories Message-ID: <53e3ed2fa97c11f2d3fb68afee57379d@sadiqpk.org> X-Sender: sadiq@sadiqpk.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2001:4b98:dc4:8::231; envelope-from=sadiq@sadiqpk.org; helo=relay11.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) When installing packages from vc, I want to ignore some directories (eg: tests directory). I would like package-vc-install to have an option to accept list of directories to ignore or include (eg: if source is in src subdirectory) In GNU Emacs 29.0.60 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.16.0) of 2023-01-17 built on purism Repository revision: e8c77d9abda9c5c48de546a4ff667ffdf3d27c94 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12101005 System Description: Debian GNU/Linux bookworm/sid From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 13 14:59:52 2023 Received: (at 60923) by debbugs.gnu.org; 13 Feb 2023 19:59:52 +0000 Received: from localhost ([127.0.0.1]:51692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRezP-0005rB-Sf for submit@debbugs.gnu.org; Mon, 13 Feb 2023 14:59:52 -0500 Received: from mout02.posteo.de ([185.67.36.66]:41823) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRezN-0005qu-Rk for 60923@debbugs.gnu.org; Mon, 13 Feb 2023 14:59:50 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id EEBEF2402F0 for <60923@debbugs.gnu.org>; Mon, 13 Feb 2023 20:59:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676318384; bh=Iqf8y3Cp3Ku+rWKj+i8B/ycEB10t3qH5eKRUgkupOQQ=; h=From:To:Cc:Subject:Date:From; b=VQMaaNBvmlbyyd2IUAi1mv2Pm7ezJOQ+uxXAEdHG4z2QfsbEqjKZ08ZaYiCDPD0Ns BCLDy9VJY4q/8enAy3gnos3Vm0WZrNXGS94NndArU2+uD/JrVfRS3m9f8Wofh7GB5/ e1BbN4z0bk0WjmQQBn2ammmtvKrJCH/ltTIMwGo9SdHIOmlIhpc+M1yB+3mHbJEgnU qiqrOAOjmwtZZARt3GWfehWCTCU+o8ecV7zbWXWqbgRQMtD5p3XSYqIVZu/52Ypsw8 7gqVrh2GnkVqTEaDRSACx3a+0X5gE3ZWsj4mP630e0i1C9YgeczFvlZrAPx/4J8bi6 rJP5n3YfNrftA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PFwCx4zGcz9rxK; Mon, 13 Feb 2023 20:59:41 +0100 (CET) From: Philip Kaludercic To: Mohammed Sadiq Subject: Re: bug#60923: 29.0.60; package-vc-install: Allow specifying directories In-Reply-To: <53e3ed2fa97c11f2d3fb68afee57379d@sadiqpk.org> (Mohammed Sadiq's message of "Wed, 18 Jan 2023 09:54:41 +0530") References: <53e3ed2fa97c11f2d3fb68afee57379d@sadiqpk.org> Date: Mon, 13 Feb 2023 19:59:41 +0000 Message-ID: <87o7pxe3pu.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60923 Cc: 60923@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Mohammed Sadiq writes: > When installing packages from vc, I want to ignore some directories (eg: > tests directory). I would like package-vc-install to have an option to > accept list of directories to ignore or include (eg: if source is in src > subdirectory) What does "ignore" mean in this context? On ELPA we have the following attribute for package specifications: ** =:ignored-files FILES= Names of files or directories that should not be included in the tarballs. package.el already supports ignoring the contents of a .elpaignore file, but all that does is remove a few files from the byte-compilation process. -- Philip Kaludercic From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 14 10:28:25 2023 Received: (at 60923) by debbugs.gnu.org; 14 Feb 2023 15:28:25 +0000 Received: from localhost ([127.0.0.1]:56741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRxEH-0004tK-5f for submit@debbugs.gnu.org; Tue, 14 Feb 2023 10:28:25 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:46613) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRxEE-0004t4-1U for 60923@debbugs.gnu.org; Tue, 14 Feb 2023 10:28:23 -0500 Received: (Authenticated sender: sadiq@sadiqpk.org) by mail.gandi.net (Postfix) with ESMTPA id 13DE61C000A; Tue, 14 Feb 2023 15:28:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sadiqpk.org; s=gm1; t=1676388495; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6q/FeomvudCNGkqvHgTLzmQysQxj9dotYMMjUGWbBts=; b=HLY9Q5OohzOve8NtatW8Rw7/E6CgPxbs3rdqQc95+8jscj5lQeoTIBkEnn8XlwczuXJLEa 2KNf8lhZOdWE77vuy88UEtm1ie3t0IG7bmtBuTTtP6nVvnIaCHStKbaOOxCILobJelLcd2 XrdHZMjIdNakLA/cvsWr9Kp2qnAEbQTSh8J9FaglsSJdMgou7zmhGpZ28FNdDxHc02M/yr EPtGOvO8TwbkzGIGjWii98xzTwCcKt1HhzoT8xHy/f2JwQhmGRzMDO05ZFWCO02WsaBifV Hsqt5VbAcoziKQfzW+ngEH3aTECpjWBjM1NhC0Cy6WQ50Uy5o948OT6FTQ2wmw== MIME-Version: 1.0 Date: Tue, 14 Feb 2023 20:58:14 +0530 From: Mohammed Sadiq To: Philip Kaludercic Subject: Re: bug#60923: 29.0.60; package-vc-install: Allow specifying directories In-Reply-To: <87o7pxe3pu.fsf@posteo.net> References: <53e3ed2fa97c11f2d3fb68afee57379d@sadiqpk.org> <87o7pxe3pu.fsf@posteo.net> Message-ID: <159754a18c3ef265ad752a3dcb7e2275@sadiqpk.org> X-Sender: sadiq@sadiqpk.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 60923 Cc: 60923@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2023-02-14 01:29, Philip Kaludercic wrote: > What does "ignore" mean in this context? Ignore as in, the file is never kept in the installation directory. > package.el already supports ignoring the contents of a .elpaignore > file, > but all that does is remove a few files from the byte-compilation > process. I tried installing pareedit, and it doesn't seem to work. I tried: emacs --batch --eval='(package-vc-install "https://github.com/emacsmirror/paredit.git")' The project contains .elpaignore, which specifies the file test.el, but the file test.el is still compiled to test.elc. Also, since it is installed, I'm able to access functions like `paredit-test-failed'. Or am I missing something obvious? From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 14 11:00:03 2023 Received: (at 60923) by debbugs.gnu.org; 14 Feb 2023 16:00:03 +0000 Received: from localhost ([127.0.0.1]:56771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRxis-0005i0-OW for submit@debbugs.gnu.org; Tue, 14 Feb 2023 11:00:03 -0500 Received: from mout02.posteo.de ([185.67.36.66]:44071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRxiq-0005gw-Cn for 60923@debbugs.gnu.org; Tue, 14 Feb 2023 11:00:01 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 029FD240569 for <60923@debbugs.gnu.org>; Tue, 14 Feb 2023 16:59:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676390394; bh=hS3t/YH2pONNOjYQT3XcujcpEzEk2BqGY1eQKMbwjoU=; h=From:To:Cc:Subject:Date:From; b=cG7r1MMFBLTN83YkeEyMw7+zmc+BhJHjmv2qPxe9mWG3X+B2j4kPbQLDCXrCSA+BK IGaWMAz30bB68nMb1vmnOKELQ69lFm59PL/kIwDlWR2C6sKxq6k6OooqCYRZJtYygU pcvf/dOrLNxXEMlmJBmrCWvCHIs/NyixtobCeq5LOFrhKNiONRcYNIWE1mWE5LO/jM +kuFYaZ3ex5cvZiCM/6gDC9aREswihBkPMF3/CKxWvgn/qMbx2P1bOe1+gIUOiEDrL hF9XohjwXQIh6jydvutx8UNZkChFYRCXsUvi6/FVMZeW206lXd4QJrllm5HJv304hs FGtqGcMBP3x3g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PGQrm4DS8z9rxG; Tue, 14 Feb 2023 16:59:49 +0100 (CET) From: Philip Kaludercic To: Mohammed Sadiq Subject: Re: bug#60923: 29.0.60; package-vc-install: Allow specifying directories In-Reply-To: <159754a18c3ef265ad752a3dcb7e2275@sadiqpk.org> (Mohammed Sadiq's message of "Tue, 14 Feb 2023 20:58:14 +0530") References: <53e3ed2fa97c11f2d3fb68afee57379d@sadiqpk.org> <87o7pxe3pu.fsf@posteo.net> <159754a18c3ef265ad752a3dcb7e2275@sadiqpk.org> Date: Tue, 14 Feb 2023 15:59:49 +0000 Message-ID: <87ttzo44qy.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60923 Cc: 60923@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Mohammed Sadiq writes: > On 2023-02-14 01:29, Philip Kaludercic wrote: > >> What does "ignore" mean in this context? > > Ignore as in, the file is never kept in the installation directory. I am afraid that would be contrary to the point of package-vc. The intention is to provide the facilities to manage a package (activate, load, update, etc.) directory from source. But perhaps I am misunderstanding you. What would be the point of removing the files from the installation directory? >> package.el already supports ignoring the contents of a .elpaignore >> file, >> but all that does is remove a few files from the byte-compilation >> process. > > I tried installing pareedit, and it doesn't seem to work. I tried: > emacs --batch --eval='(package-vc-install > "https://github.com/emacsmirror/paredit.git")' (Is there a reason you specified a URL instead of the package?) > The project contains .elpaignore, which specifies the file test.el, > but the file test.el is still compiled to test.elc. It seems like this is a bug in `byte-recompile-directory' or rather in the way it is invoked from package-compile. I will have to look into this at some point, if it is even regarded as a bug -- there was a discussion that it is OK to attempt compiling every file in a project, even if the actual Lisp files are only located in a subdirectory. Most of the time the issues in test files are just due to negligence, and could also be fixed upstream. > Also, since > it is installed, I'm able to access functions like > `paredit-test-failed'. Just like that or after loading the file? > Or am I missing something obvious? Nothing obvious enough for me to see. -- Philip Kaludercic From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 23 08:17:26 2023 Received: (at 60923) by debbugs.gnu.org; 23 Feb 2023 13:17:26 +0000 Received: from localhost ([127.0.0.1]:33372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVBTS-0004ko-Ek for submit@debbugs.gnu.org; Thu, 23 Feb 2023 08:17:26 -0500 Received: from mout02.posteo.de ([185.67.36.66]:37049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVBTO-0004kV-Uk for 60923@debbugs.gnu.org; Thu, 23 Feb 2023 08:17:24 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B516C240684 for <60923@debbugs.gnu.org>; Thu, 23 Feb 2023 14:17:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1677158236; bh=gMybEgTVSB1NniqP4sffUQJe22YlWZL5P8rOHvy4CL4=; h=From:To:Cc:Subject:Date:From; b=Fsgng5FSd8jm+hAv0GTLuxjIdhYINEMdQDN+OiCfmORqVXIcs7VW7mtryZwxpt0mK 85oxIJEoQzUqNjplI6vNqLfv+Fo4qmYKKDcQ6tYtm+zQYkFHi75q9jpq5FwFX41y6Z kVLnxOo13a3LfQ+32hLVZ90IqwiMXcGRiL6yt9DDHeJGD5gSNf8HsTbuZKW2b1S2QO H5Mj5/ompd0LIYniZhXOpW5UMONQD8reH2GPzDV+HYcnm/0/FVwLLINzeC/jCnoRnV xr38qD/0OeUV3eN8Z9D9BxxBzWtF1abtupQWtSa3s/BHEps08WwMq7WMlw9+iiKSSV utMtssqbmd3AQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PMtpz3SgMz6tpT; Thu, 23 Feb 2023 14:17:15 +0100 (CET) From: Philip Kaludercic To: Mohammed Sadiq Subject: Re: bug#60923: 29.0.60; package-vc-install: Allow specifying directories In-Reply-To: <87ttzo44qy.fsf@posteo.net> (Philip Kaludercic's message of "Tue, 14 Feb 2023 15:59:49 +0000") References: <53e3ed2fa97c11f2d3fb68afee57379d@sadiqpk.org> <87o7pxe3pu.fsf@posteo.net> <159754a18c3ef265ad752a3dcb7e2275@sadiqpk.org> <87ttzo44qy.fsf@posteo.net> Date: Thu, 23 Feb 2023 13:17:33 +0000 Message-ID: <87pma04j2q.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60923 Cc: 60923@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) ping? Philip Kaludercic writes: > Mohammed Sadiq writes: > >> On 2023-02-14 01:29, Philip Kaludercic wrote: >> >>> What does "ignore" mean in this context? >> >> Ignore as in, the file is never kept in the installation directory. > > I am afraid that would be contrary to the point of package-vc. The > intention is to provide the facilities to manage a package (activate, > load, update, etc.) directory from source. > > But perhaps I am misunderstanding you. What would be the point of > removing the files from the installation directory? > >>> package.el already supports ignoring the contents of a .elpaignore >>> file, >>> but all that does is remove a few files from the byte-compilation >>> process. >> >> I tried installing pareedit, and it doesn't seem to work. I tried: >> emacs --batch --eval='(package-vc-install >> "https://github.com/emacsmirror/paredit.git")' > > (Is there a reason you specified a URL instead of the package?) > >> The project contains .elpaignore, which specifies the file test.el, >> but the file test.el is still compiled to test.elc. > > It seems like this is a bug in `byte-recompile-directory' or rather in > the way it is invoked from package-compile. I will have to look into > this at some point, if it is even regarded as a bug -- there was a > discussion that it is OK to attempt compiling every file in a project, > even if the actual Lisp files are only located in a subdirectory. Most > of the time the issues in test files are just due to negligence, and > could also be fixed upstream. > >> Also, since >> it is installed, I'm able to access functions like >> `paredit-test-failed'. > > Just like that or after loading the file? > >> Or am I missing something obvious? > > Nothing obvious enough for me to see. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 01 00:03:46 2023 Received: (at 60923) by debbugs.gnu.org; 1 Mar 2023 05:03:46 +0000 Received: from localhost ([127.0.0.1]:52411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXEd0-0002YR-Ah for submit@debbugs.gnu.org; Wed, 01 Mar 2023 00:03:46 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:46793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXEcx-0002Y7-Mf for 60923@debbugs.gnu.org; Wed, 01 Mar 2023 00:03:44 -0500 Received: (Authenticated sender: sadiq@sadiqpk.org) by mail.gandi.net (Postfix) with ESMTPA id DDF141BF204; Wed, 1 Mar 2023 05:03:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sadiqpk.org; s=gm1; t=1677647016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZrBQRjNrU/Z9uEjkNBctAWOrfrm5LRWYD54jR8gL1AI=; b=gnllFxdv9LgJk5gupqE4GbWHqrthgW0l+0y8/eeRCBjAlG0kNAwpjacKC8FFWXVVIR1i5/ LMfnvf7/A7bHGuubKb+u1ZsTL6LClfIt72AZXzsOryhnyBRhOinPgKFIvP4s43OuowbEKI JtWpzZx0QqHhlzl13TqkoxnpppsCwtZmVgQ+v63bNYstwQFxfmtveus/P/qShsEYFffySg iKdD6a4U8WGZAQZOeUXw4dW/nhokwBQ84F2lZoNa60zU5xQszWUgw9PeUE1FY+rc5nr9HY D2N/aBEmTAFETgFpCXEX8YQN4oczix0ucIGQ607uHoh/JYAj//ca8UUf/jP7uw== MIME-Version: 1.0 Date: Wed, 01 Mar 2023 10:33:35 +0530 From: Mohammed Sadiq To: Philip Kaludercic Subject: Re: bug#60923: 29.0.60; package-vc-install: Allow specifying directories In-Reply-To: <87ttzo44qy.fsf@posteo.net> References: <53e3ed2fa97c11f2d3fb68afee57379d@sadiqpk.org> <87o7pxe3pu.fsf@posteo.net> <159754a18c3ef265ad752a3dcb7e2275@sadiqpk.org> <87ttzo44qy.fsf@posteo.net> Message-ID: <12986612ae63cadcf192f5080146504c@sadiqpk.org> X-Sender: sadiq@sadiqpk.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 60923 Cc: 60923@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2023-02-14 21:29, Philip Kaludercic wrote: > > But perhaps I am misunderstanding you. What would be the point of > removing the files from the installation directory? My need was to avoid letting the code in test files never available in Emacs (as defuns and such are not namespace separated, functions written in tests may confuse with other functions) But given that the entire source including the vc history is kept as such, I don't think removing the file is for this purpose is worth. > >>> package.el already supports ignoring the contents of a .elpaignore >>> file, >>> but all that does is remove a few files from the byte-compilation >>> process. >> >> I tried installing pareedit, and it doesn't seem to work. I tried: >> emacs --batch --eval='(package-vc-install >> "https://github.com/emacsmirror/paredit.git")' > > (Is there a reason you specified a URL instead of the package?) I just chose the URL of a popular project that has a .elpaignore file. > >> Also, since >> it is installed, I'm able to access functions like >> `paredit-test-failed'. > > Just like that or after loading the file? After loading the file. `paredit-test-failed` is no big problem. But some projects may define functions like `load-test-file` etc, which may not be obvious where the function is defined unless the documentation or its code is inspected. But anyway, as suggested, I don't think it's worth to have a way to remove specified files as the entire vc history is cloned and kept locally. So please close the issue. Sorry for the delayed response. I was away last month. cheers, Mohammed Sadiq From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 01 09:03:16 2023 Received: (at 60923-done) by debbugs.gnu.org; 1 Mar 2023 14:03:16 +0000 Received: from localhost ([127.0.0.1]:53049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXN36-0002eI-I3 for submit@debbugs.gnu.org; Wed, 01 Mar 2023 09:03:16 -0500 Received: from mout02.posteo.de ([185.67.36.66]:39929) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXN33-0002e0-UP for 60923-done@debbugs.gnu.org; Wed, 01 Mar 2023 09:03:15 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0E35E2407F9 for <60923-done@debbugs.gnu.org>; Wed, 1 Mar 2023 15:03:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1677679388; bh=18m9zvHdoCzRCWCW01exB6VKlsMrs5uy+nYPSWxVp9A=; h=From:To:Cc:Subject:Date:From; b=RiweAzvbP99kDtHLDz52eNEMMYROGGtu6mr3+RxFXKxLYGVJ+xcyz+xxC4+ovQyRb lQUDyQ348aS9hbxeJh/OkUyfvpf73x7B1kUQxcqhPwlov5Q79K1uBD+CfnxszlstX0 /n/EwXfOX9vIP0c5X1tI3DxaS+J8YO4uCaaIbE4E2DfBYc4JX7FQAUpqNGyLLiBTJ9 UJxw8PC/yG2h9d4NjCY7FYiWhsh9wJ5+4OwP3Wvg/tU2tkQ30AdId67BM0lPSg2QD8 ftGOPdcqpQZ/ZFp2z9kJySoEudiqq0p5Tdamail1555bo9Q4UP6z+AG3b8bOND8Z4s YK8BL4oEZSpvQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PRbY62dkpz9rxD; Wed, 1 Mar 2023 15:03:03 +0100 (CET) From: Philip Kaludercic To: Mohammed Sadiq Subject: Re: bug#60923: 29.0.60; package-vc-install: Allow specifying directories In-Reply-To: <12986612ae63cadcf192f5080146504c@sadiqpk.org> (Mohammed Sadiq's message of "Wed, 01 Mar 2023 10:33:35 +0530") References: <53e3ed2fa97c11f2d3fb68afee57379d@sadiqpk.org> <87o7pxe3pu.fsf@posteo.net> <159754a18c3ef265ad752a3dcb7e2275@sadiqpk.org> <87ttzo44qy.fsf@posteo.net> <12986612ae63cadcf192f5080146504c@sadiqpk.org> Date: Wed, 01 Mar 2023 14:03:02 +0000 Message-ID: <87ilfkk1rd.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60923-done Cc: 60923-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Mohammed Sadiq writes: > On 2023-02-14 21:29, Philip Kaludercic wrote: >> But perhaps I am misunderstanding you. What would be the point of >> removing the files from the installation directory? > > My need was to avoid letting the code in test files never available > in Emacs (as defuns and such are not namespace separated, functions > written in tests may confuse with other functions) > > But given that the entire source including the vc history is kept > as such, I don't think removing the file is for this purpose is > worth. OK, I'll go ahead and mark the report as done then? >>>> package.el already supports ignoring the contents of a .elpaignore >>>> file, >>>> but all that does is remove a few files from the byte-compilation >>>> process. >>> I tried installing pareedit, and it doesn't seem to work. I tried: >>> emacs --batch --eval='(package-vc-install >>> "https://github.com/emacsmirror/paredit.git")' >> (Is there a reason you specified a URL instead of the package?) > > I just chose the URL of a popular project that has a .elpaignore file. The reason I was asking is that you could have also invoked `package-vc-install' using just a symbol, and it would have used the default specification that the package archive (in this case NonGNU ELPA) also uses to build the package: (package-vc-install 'paredit) >>> Also, since >>> it is installed, I'm able to access functions like >>> `paredit-test-failed'. >> Just like that or after loading the file? > > After loading the file. `paredit-test-failed` is no big problem. > But some projects may define functions like `load-test-file` etc, > which may not be obvious where the function is defined unless the > documentation or its code is inspected. > > But anyway, as suggested, I don't think it's worth to have a way to > remove specified files as the entire vc history is cloned and kept > locally. So please close the issue. Package-vc is just an alternative backend for package, the loading is still taken care of by package.el. And if the package doesn't autoload these definitions, then they shouldn't appear. One could contact the maintainer and suggest them to be more hygienic in regard to tests or other miscellaneous files, but considering that hacking on packages is one of the main use-cases of package-vc, it shouldn't be prevented. > Sorry for the delayed response. I was away last month. No problem, I hope I could help :). > cheers, > Mohammed Sadiq -- Philip Kaludercic From unknown Tue Aug 12 07:34:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 30 Mar 2023 11:24:05 +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