From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Philip K." Newsgroups: gmane.emacs.bugs Subject: bug#41890: 28.0.50; [PATCH]: Add bindings for project.el Date: Mon, 13 Jul 2020 08:56:41 +0200 Message-ID: <875zarnciz.fsf@warpmail.net> References: <87blljbarq.fsf@thornhill.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1484"; mail-complaints-to="usenet@ciao.gmane.io" Cc: contovob@tcd.ie, 41890@debbugs.gnu.org, dgutov@yandex.ru, spwhitton@spwhitton.name To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 13 08:57:21 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 1jusOu-0000FR-4n for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Jul 2020 08:57:20 +0200 Original-Received: from localhost ([::1]:50780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jusOt-0004Fm-4s for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Jul 2020 02:57:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jusOc-0004Eq-Mm for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2020 02:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jusOc-0003T4-EX for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2020 02:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jusOc-0001s8-Be for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2020 02:57: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: Mon, 13 Jul 2020 06:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41890-submit@debbugs.gnu.org id=B41890.15946234157178 (code B ref 41890); Mon, 13 Jul 2020 06:57:02 +0000 Original-Received: (at 41890) by debbugs.gnu.org; 13 Jul 2020 06:56:55 +0000 Original-Received: from localhost ([127.0.0.1]:47460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jusOU-0001ri-So for submit@debbugs.gnu.org; Mon, 13 Jul 2020 02:56:55 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:56247) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jusOQ-0001rM-DE for 41890@debbugs.gnu.org; Mon, 13 Jul 2020 02:56:53 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 4A6A65C017D; Mon, 13 Jul 2020 02:56:44 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 13 Jul 2020 02:56:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=warpmail.net; h= from:to:cc:subject:in-reply-to:message-id:date:mime-version :content-type; s=fm3; bh=fGKiy9J0V71HAtPjbrdtkr97Xlas22DMCAqPNcZ 4RZ8=; b=AGXxh07PDCdCu1lkdPT7yNmAJckaI0xxhKSwe036FVofPH97khjGehK s/MdnffRW5Q+ZEAjlHwqLKNEiGcphoGCVymX4+WFX8U0bMymw+HEQFUIjIsVY1v+ QhJd9gVnb1kRH2dRuqW1wdNdiIF6C4eJxwStf3ZF660vGgF7jC9/U6EMVxeldbH3 pXb8rWvpqsW0V9j6XufT9tXgC1O8m0e3rduBKioCVgMbV3jR/oePAeSH3HL/pTqc dU3UY+tGFYRuFzb+DiYyGTB5f9pEqfgvd7SBe5wWwoUbvVZhpM9AlHQ5u7Up7qiQ RgC2sg0XaUJ/AmSg8VAer8sRIF4mEJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm3; bh=fGKiy9J0V71HAtPjb rdtkr97Xlas22DMCAqPNcZ4RZ8=; b=hl28Awst1M3wyjKzbIFWxUMjBl8kvbzTh TePYMDDHU4w5KzyCbZ0zBNTjkvZG2o373ak1hr3PXQ7eircsJ8fI4EbYFPBS3wM7 XQluMBD6Ue5+psUH+Groa1y8ZKFFSYs0y9N3IcKV1V5ctvfjWXNxGSPcutz2q1sc +MLaOMcdE1Tt8sjCnvLVn8CmjgTEZFRnrqKi9Ag8hEkyXmo4Md/3yZ8xWfdO8Sy4 RsI4+4kPrmUfpq8BuirQnDP2i5pY6ZB9LxlJHlz3BBeDPla2yZo2tXV9mbg4c1sE kqiXq/nsj3TCUqHzHE8wZuTd9iY8HXMIUy68t/l2fjt0D/3UP+jpg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrvdejgdduudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjkfffgggtsehttdertddttddtnecuhfhrohhmpedfrfhhihhlihhp ucfmrddfuceophhhihhlihhpseifrghrphhmrghilhdrnhgvtheqnecuggftrfgrthhtvg hrnhepleffvefhgfelieegheetkedtveehleeliedutdduhedtieejhffhtdegkeejkeet necukfhppeekjedrudeghedrudegrddujeegnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepphhhihhlihhpseifrghrphhmrghilhdrnhgvth X-ME-Proxy: Original-Received: from localhost (p57910eae.dip0.t-ipconnect.de [87.145.14.174]) by mail.messagingengine.com (Postfix) with ESMTPA id 5FBDF328005A; Mon, 13 Jul 2020 02:56:43 -0400 (EDT) In-Reply-To: <87v9isqm6i.fsf@mail.linkov.net> (message from Juri Linkov on Mon, 13 Jul 2020 03:23:33 +0300) 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:182965 Archived-At: Juri Linkov writes: > project-switch-project could set a new global variable > project-default-directory and project commands could use it. Is there something wrong with the second approach? I'd have to try it out myself, but getting a global variable could introduce a double-state situation where when I switch to a project using C-x p p, open another on and then manually switch back to the first one (C-x b), that the global variable project-switch-project would still indicate that the second project is "open". As I said, I haven't tried anything out, and maybe the issue doesn't exist or is circumventable (eg. by having every function reset the global value after using it), but is that really worth it just to use a transient map? Or did I miss something? -- Philip K.