From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Philip K." Newsgroups: gmane.emacs.bugs Subject: bug#41572: 28.0.50; [PATCH] Support plain project marked with file .emacs-project Date: Thu, 28 May 2020 14:24:04 +0200 Message-ID: <874ks0dz8b.fsf@warpmail.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="85865"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41572@debbugs.gnu.org To: Zihao Zhu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 28 14:25:12 2020 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 1jeHaw-000MB8-Gc for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 May 2020 14:25:11 +0200 Original-Received: from localhost ([::1]:51726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeHav-00043T-2g for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 May 2020 08:25:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeHao-000437-Dd for bug-gnu-emacs@gnu.org; Thu, 28 May 2020 08:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39685) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeHao-0001Wx-4Y for bug-gnu-emacs@gnu.org; Thu, 28 May 2020 08:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jeHao-0007fi-0F for bug-gnu-emacs@gnu.org; Thu, 28 May 2020 08:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Philip K." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 May 2020 12:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41572 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41572-submit@debbugs.gnu.org id=B41572.159066866629436 (code B ref 41572); Thu, 28 May 2020 12:25:01 +0000 Original-Received: (at 41572) by debbugs.gnu.org; 28 May 2020 12:24:26 +0000 Original-Received: from localhost ([127.0.0.1]:51231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeHaD-0007ei-UW for submit@debbugs.gnu.org; Thu, 28 May 2020 08:24:26 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:39897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeHaB-0007eU-7X for 41572@debbugs.gnu.org; Thu, 28 May 2020 08:24:23 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id EC87F5C00E4; Thu, 28 May 2020 08:24:17 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 28 May 2020 08:24:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=warpmail.net; h= from:to:cc:subject:in-reply-to:date:message-id:mime-version :content-type:content-transfer-encoding; s=fm3; bh=3AsbQFLCcGTtu 3MbPJuU+0mKvGjufaHOvyHrdjcvKBo=; b=pv3NAnDAx8YBk6EAQyHm54v/KEn9a ToIVVC59U7Xp59NxP1rrfqkWiIf3qbL6Q9lcJ/Alj8kTq90Iq3nrGq0NvS5C3IAS FFChse7+r1HJ3WUkTLmyDUcWMBR67VThDIrVVZVigSvf8ooyVb3BSSD/1xhpfRlz bdWUyJpsqWrNWxtnj3OXBykYSH3EiXOTyGLf0XK8G9Pvs5Y4Xs9nnPKELHQW6BrY Ux3zQmTj81SgwN8URPHM01bpfQgsBqKf6k42Ah7WpJphWTx7I/7V+zulPcC3HuDD zTGzqfPsLulyjp7FROax2CivZkbq9mPHnoW5gajJqb+grP3SOb0LKVqEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=3AsbQFLCcGTtu3MbPJuU+0mKvGjufaHOvyHrdjcvKBo=; b=bPWB9h80 nBzmRIPd6o2e4ztUYI0QNlOpsMD+KaUnXBHapqEcq/gWfWFWaIwR9ZO3u3KJVN0v FgpZqctDhiYt1j+2sPZLbBnjheMl/pyKLwUNsuJhcqEeVvuPP9HCYpZ9DprP7n3K xBAbSN1E+Yl+iOW1VeYfn55nIStUCfIi86ak579UVlEBeAxaPkAmZnuW29QvNE4A nFnUEaYjd3myF5OqZuxSxj0wFOUP2WmN6o+7IiH7zb3DuW/+ShZjpTie+dMcFO8R QIh8XIZ7OfYMUhDExTkusGeLvbkNx6QeB7kiunonpI6pc7d6Df3Jkp9Mw7zswmdz w9Pj9h0OyjPJIQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddviedgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujgffkfggtgfgsehtqhertd dttdejnecuhfhrohhmpedfrfhhihhlihhpucfmrddfuceophhhihhlihhpseifrghrphhm rghilhdrnhgvtheqnecuggftrfgrthhtvghrnhephfdujeevuddvffetudfghfduvdfgve ffueefvdeljeeuffejheeludeftdduffefnecukfhppeejledrvdduledrvddtiedrvddv feenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehphh hilhhiphesfigrrhhpmhgrihhlrdhnvght X-ME-Proxy: Original-Received: from localhost (p4fdbcedf.dip0.t-ipconnect.de [79.219.206.223]) by mail.messagingengine.com (Postfix) with ESMTPA id 50C813280059; Thu, 28 May 2020 08:24:17 -0400 (EDT) In-Reply-To: (message from Zihao Zhu on Thu, 28 May 2020 19:20:41 +0800) 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" Xref: news.gmane.io gmane.emacs.bugs:181137 Archived-At: Zihao Zhu writes: > IMO, it's not practical to use directory local variable > > 1. directory local variable goes ".dir-local.el". But we can't mark=20 > every directory contain this file as project. We have to do extra search= =20 > if we use directory local variable. Not necessarily, if the directory variable would contain a (relative) path to where the project root is. > In your use case. I think we can add variable "project-known-projects",=20 > you can=C2=A0 add your favorite directory to it, you can also persist thi= s=20 > variable using savehist.el I actually think this is better (given there is a command to add a directory to the list of known projects), because you could also build a project switcher on this foundation. And if the variable is a user option (which I think it should be), savehist shouldn't be necessary. --=20 Philip K.