From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Changes to make in elpa-packages file for nongnu elpa Date: Tue, 15 Aug 2023 21:56:11 +0300 Message-ID: <83y1ic8790.fsf@gnu.org> References: <87r0oftgye.fsf@posteo.net> <87350vt1wz.fsf@posteo.net> <871qgen1ln.fsf@posteo.net> <87edke4mou.fsf@posteo.net> <87wmy6kuan.fsf@posteo.net> <87wmy6w070.fsf@posteo.net> <87zg2sjleg.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23756"; mail-complaints-to="usenet@ciao.gmane.io" Cc: thievol@posteo.net, emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 15 20:57:09 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qVzE3-0005sq-A6 for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Aug 2023 20:57:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVzDC-0002G8-Et; Tue, 15 Aug 2023 14:56:14 -0400 Original-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 1qVzD9-0002Fv-QM for emacs-devel@gnu.org; Tue, 15 Aug 2023 14:56:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVzD7-0004Wp-8B; Tue, 15 Aug 2023 14:56:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HW3Fo/WTw+BjuDtMLaAIp6ewVCMOZcpt9ePeELY1uTs=; b=KCu7NKHG5sON mEOI/pGI7ZK2X2KTlWIJh6TstV8j6HNUM6xzL1v+E2ANhswQ7n84ZVrVP7WzaxVoi4WQPOfiibELF J7A0KhwpFnSPWCDqmfryytOEbYqei6/tvDh/CmGGzkDwjDl1VHkHpJuOngStNz/YhCLi74W2PXBTr DMfu/KKkHCLS7/icXkZ6/pwCVpC3V2DBDgnhZmc/78R6o4u5kIuhyzny7EOKeCdQVRsedmj8H88n+ GsfjcEgiMMHpy5+oEDe+ZKENGypoOLvaGql5XxUt/2AvJ8wU3LvxNh2PW/lzoUp5XNfmD7ehpqk0h UZMg0ufA6Yb0uDAIdMpElA==; In-Reply-To: <87zg2sjleg.fsf@posteo.net> (message from Philip Kaludercic on Tue, 15 Aug 2023 16:55:03 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308770 Archived-At: > From: Philip Kaludercic > Cc: emacs-devel@gnu.org > Date: Tue, 15 Aug 2023 16:55:03 +0000 > > +*** New command to start Emacs only with specific packages > +The command 'package-isolate' is equivalent to starting Emacs with the > +-Q flag and loading specific packages (and their dependencies) > +manually. Seems strange to me to have a command to start another Emacs. Why not implement this as a command-line option instead? That would be consistent with the several options we already have, like -q, -Q, -D, which already contrl what happens at startup. > + (let* ((real (package-desc-dir package)) > + (link (expand-file-name (file-name-nondirectory real) elpa))) > + (make-symbolic-link real link t) Using symbolic links makes the program less portable, so it is best to avoid them. > + (apply #'start-process (concat "*" name "*") nil > + (append (list (or (emacs-executable) "emacs") I don't think it's a good idea to invoke just "emacs", it could be a completely different version of Emacs. > +DEFUN ("emacs-executable", Femacs_executable, Semacs_executable, 0, 0, "", > + doc: /* Return a string with the file name of the Emacs executable. > +If this is not known, nil will be returned instead. */) > + (void) I don't understand why you need this primitive. What's wrong with the usual paradigm we use everywhere else: (expand-file-name invocation-name invocation-directory)