From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#63870: 29.0.90; project.el can't dynamically populate the project list Date: Thu, 27 Jul 2023 04:57:15 +0300 Message-ID: <9561ede9-1699-8d9f-28ac-50fbba66b8ac@gutov.dev> References: <83sfabvngh.fsf@gnu.org> <83edlvvky4.fsf@gnu.org> <83bkgzvj7h.fsf@gnu.org> <9a053f1f-2c7b-0b50-3a8e-7949fbbac7d1@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40799"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Eli Zaretskii , 63870@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 27 04:21:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qOqcy-000ALz-VY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Jul 2023 04:21:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOqGS-0006ay-Da; Wed, 26 Jul 2023 21:58:04 -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 1qOqGQ-0006ao-PX for bug-gnu-emacs@gnu.org; Wed, 26 Jul 2023 21:58:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qOqGQ-0000nd-Hl for bug-gnu-emacs@gnu.org; Wed, 26 Jul 2023 21:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qOqGQ-0008AE-ES for bug-gnu-emacs@gnu.org; Wed, 26 Jul 2023 21:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jul 2023 01:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63870 X-GNU-PR-Package: emacs Original-Received: via spool by 63870-submit@debbugs.gnu.org id=B63870.169042304631339 (code B ref 63870); Thu, 27 Jul 2023 01:58:02 +0000 Original-Received: (at 63870) by debbugs.gnu.org; 27 Jul 2023 01:57:26 +0000 Original-Received: from localhost ([127.0.0.1]:40414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOqFq-00089P-8D for submit@debbugs.gnu.org; Wed, 26 Jul 2023 21:57:26 -0400 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:44637) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOqFo-00089C-7Y for 63870@debbugs.gnu.org; Wed, 26 Jul 2023 21:57:24 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 7AE583200313; Wed, 26 Jul 2023 21:57:18 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 26 Jul 2023 21:57:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1690423037; x=1690509437; bh=qIyx6Hp3w7gJr+vaBl/2BB/M8MpLu97sKZc SCDGN5vg=; b=AiB17z+fCka5hisaNZGKlYwnT3YuSfrtwoRE+GiOcNCD6vWcYXH ymK9bodHph+37aTyoKtDr6kfYIVYLh6fWCeuCrbmrrJfcb8AvF9FuT6gkYE8rVO2 o3e123tT6UwwQm9xHHkLNROXrQrar7KpIqPhBVht4LhDOuSU86bLoplhXz43Ei7D SnlHrDzAB92LjIG3kG0fufzJruIhlyIukabURK0kVvvSW2wvTib5As6NYHzV+4Sr e6XKphMJ9qg6ZVo5GVmvBCCqUYCMmMlBnUS+5pfHW7lU8EH8nj+V+/IofHvoEQHQ LEd5/F6dNzS8ItYbS1ooEc2y/6JOjafRghA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1690423037; x=1690509437; bh=qIyx6Hp3w7gJr+vaBl/2BB/M8MpLu97sKZc SCDGN5vg=; b=TLWtgc1qEYnFLKMkTReB/2vlRearPh1JFgDqR/YlC/KBRXiwNOo tXifILgsVkb5sq3P0xNEatM1yglkKGIXJTYPoOb0oRnLQhBpyelOuQYhrgT6PDvg 7pzXkB8kGgQWb22W/esVJ1XwTwe7QzhatCp4DebgLbjpqguP7ZVEYgpS4yGEvKN+ TSyKHVlLhra3R94qKc5Uqs9s1SgsPj4wGJObAqDDBXk6eD97GMg98Tcn5gFkPBB+ WS3hlypfmbcpMl5Y/n2RuN0DkVdeathdlx8fVcxr8GpoKtDEHW8Ku4hHuvD3Qcyp ohiCuk10nAPfsvsDmFlhvxSi+tSH8uh6o8Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrieefgdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeevledv veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 26 Jul 2023 21:57:16 -0400 (EDT) Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266154 Archived-At: On 18/07/2023 19:28, Spencer Baugh wrote: >>> But that's MO; please wait for Dmitry to chime in. >> >> [ Sorry for the late response, I'm still uncertain about this patch. ] >> >> (*) ... and ask whether this functionality makes sense built-in. >> >> I appreciate that it's succinct, documented and doesn't take a lot of >> space. But would we say that it covers a significantly general use >> case? Do we know many other developers who would appreciate it? Do a >> lot of devs at Jane Street use Emacs and this same workflow? Should we >> ask people somewhere (emacs-devel/Reddit/etc) whether they will find >> it useful? > > It's something we'd use a lot, but I have no problem keeping it locally > for now. I agree it has some dangers, maybe I'll come up with a good > way to make it safe for the casual user. Thank you. >> If it's just for one user at this point, then it shouldn't be >> difficult to maintain this code inside the init dir. >> >> Here's also some alternative I could potentially suggest: if you have >> some code which checks out new branches for development, or projects >> to start work on, and it's written in Elisp too, could it just call >> project-remember-project at the end? That would circumvent the need >> for using file watches altogether. > > That works great for stuff written in Elisp too, but alas, there are > command line tools to check out branches for development, etc, and I > want them to update Emacs too. Just something to consider: you could invoke those shell scripts from Emacs Lisp, and then they finish, the Lisp program could do some additional steps, like adding projects to the list. Or removing -- in the reverse case.