From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Zhu Zihao Newsgroups: gmane.emacs.bugs Subject: bug#41572: 28.0.50; [PATCH] Support plain project marked with file .emacs-project Date: Thu, 28 May 2020 19:27:48 +0800 Message-ID: References: <877dwweca3.fsf@warpmail.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000012062a05a6b39f0f" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="74936"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41572@debbugs.gnu.org To: "Philip K." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 28 17:15:15 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 1jeKFV-000JKS-Mv for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 May 2020 17:15:13 +0200 Original-Received: from localhost ([::1]:55166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeKFU-0006ON-K2 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 May 2020 11:15:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeKFL-0006LC-0k for bug-gnu-emacs@gnu.org; Thu, 28 May 2020 11:15:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeKFK-0008S9-Nk for bug-gnu-emacs@gnu.org; Thu, 28 May 2020 11:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jeKFK-0003bw-Jd for bug-gnu-emacs@gnu.org; Thu, 28 May 2020 11:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Zhu Zihao Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 May 2020 15:15:02 +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.159067888113827 (code B ref 41572); Thu, 28 May 2020 15:15:02 +0000 Original-Received: (at 41572) by debbugs.gnu.org; 28 May 2020 15:14:41 +0000 Original-Received: from localhost ([127.0.0.1]:52786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeKEz-0003ap-8P for submit@debbugs.gnu.org; Thu, 28 May 2020 11:14:41 -0400 Original-Received: from mail-wr1-f50.google.com ([209.85.221.50]:37678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeGhk-0001zH-9B for 41572@debbugs.gnu.org; Thu, 28 May 2020 07:28:08 -0400 Original-Received: by mail-wr1-f50.google.com with SMTP id x13so12830126wrv.4 for <41572@debbugs.gnu.org>; Thu, 28 May 2020 04:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j/Lusj2BzewKWiBpnMS0+fQe+QqIp9Ij9aVcwnV0iVA=; b=QlLI55pBrUyIM3ugV8lu5ha6eG/MsnXp5SOkgyL1vVgm/7Qw236taYkYE50iij08t0 JwFCF+t/+yuRbY+A9Vri5+6/Bt4VttNqOtLrm1bKz2S2hmWeH0fmGqL4YPVDuOMrOysn 2iTjt7RyOrrggQDnVlJu+1GkBwRYtu0HttCHxfI/28pEnSW8zZ2OrT8aO6sav8O9J6Oj hUjtJbjjYnexIedPJB4JYI9tGwDE5leESJ0B5+yl+h3bbxqd6SB5nuW6I3FuwkyCfzAv DERipuLpRZ3XwrzdgvnkrRKJLmunggj7wwaZaKk/er5xx70SU6yJHHzI3h3Vi0hHO6h4 zH+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=j/Lusj2BzewKWiBpnMS0+fQe+QqIp9Ij9aVcwnV0iVA=; b=qOqxwiVbq7DhkXu9StOcnjmaqam9jP4rSJQO1OEHWq/Ukjtkt7RXCz0VvT/2Qe7RUz 39XejLURsl/XbH7D9X0IC3WCeAT4AQbG0yHUZ+WcbCfOw39FEQeNxjsGhf+boKFy0JQf ysQfMpxhjjR4aM+AWyaVOlebN1JXHu5UFVNeQIXw5cNP3BnshTF5cY0rZ7mbRdsRUIkL ubNG1bFa9IKSysHwvdV/CftBLKHzD9eqdrKeMsRNhetgJS97FVuYokErhbkahvZjZj5y rfoHVWbtNnKIZHAm7oqN2YgSodJt2HuBaVHzYusDPLxU+Mwb9wxVFqWheAUraXGvuNAv oYng== X-Gm-Message-State: AOAM531HEx/Ekao8hm8NhA0jzjlrSkjxNACEqk9sHvl9ATkYQbYczswU GwmLHTEwsCyynNumMHsR64dy4ojfiz2M+QE4/hQ= X-Google-Smtp-Source: ABdhPJxSJpQOgWbmMSoKJvPHs4uQkc0p1F0+/eCF56rA/nMMi0kh3UcuOHnxWzyVz5bnraPqMW8VHTwKVyhmrpmczS0= X-Received: by 2002:a5d:4d89:: with SMTP id b9mr3378671wru.210.1590665281667; Thu, 28 May 2020 04:28:01 -0700 (PDT) In-Reply-To: <877dwweca3.fsf@warpmail.net> X-Mailman-Approved-At: Thu, 28 May 2020 11:14:39 -0400 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:181142 Archived-At: --00000000000012062a05a6b39f0f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable IMO, it's not practical to use directory local variable 1. directory local variable goes ".dir-local.el". But we can't mark every directory contain this file as project. We have to do extra search if we use directory local variable. 2. If we have variable "project-directory-plain-project-p", It's a problem for us to determine the root On 2020/5/28 =E4=B8=8B=E5=8D=883:42, Philip K. wrote: Zhu Zihao writes: To mark a directoy as project, put an empty magic file .emacs-project under= the directory, and project.el should be responsible for it. Is there any more standard name than ".emacs-project"? Or could a directory local-variable be used? I like the idea, but wouldn't want to have so many ".emacs-project" files lying around in toy projects. --00000000000012062a05a6b39f0f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=20 =20 =20

IMO, it's not practical to use directory local variable

1. directory local variable goes ".dir-local.el". But we c= an't mark every directory contain this file as project. We have to do extra search if we use directory local variable.

2. If we have variable "project-directory-plain-project-p"= , It's a problem for us to determine the root


On 2020/5/28 =E4=B8=8B=E5=8D=883:42, Philip K. wrote:
Zhu Zihao <cjpeople2013@gmail.com> writes:

To mark a directoy as project, put an empty magic file .emacs-=
project under the
directory, and project.el should be responsible for it.
Is there any more standard name than ".emacs-project"?=
 Or could a
directory local-variable be used? I like the idea, but wouldn't want to
have so many ".emacs-project" files lying around in toy projects.

--00000000000012062a05a6b39f0f--