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#67310: [PATCH] Include the project--list as history when prompting for a project Date: Sun, 10 Dec 2023 22:32:27 +0200 Message-ID: <780dbb13-c0ca-9082-936b-3c2ab34084dc@gutov.dev> References: <421e3ea8-d150-566e-f645-cbf1ccbcba61@gutov.dev> <81b6ed58-3fdc-3b5a-41a9-84d66475d5f1@gutov.dev> <5c3eb6a1-38da-8af4-419a-e0567b163e3a@gutov.dev> <8634wr6s1t.fsf@mail.linkov.net> <861qbujehq.fsf@mail.linkov.net> 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="3256"; 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: 67310@debbugs.gnu.org, Spencer Baugh , eliz@gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 10 21:33:06 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 1rCQU2-0000XS-Vk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Dec 2023 21:33:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCQTp-0007AA-Cy; Sun, 10 Dec 2023 15:32:49 -0500 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 1rCQTo-00079v-EM for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2023 15:32:48 -0500 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 1rCQTo-0005Ur-6L for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2023 15:32:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rCQU2-0004MC-6Z for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2023 15:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Dec 2023 20:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67310 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 67310-submit@debbugs.gnu.org id=B67310.170224037916737 (code B ref 67310); Sun, 10 Dec 2023 20:33:02 +0000 Original-Received: (at 67310) by debbugs.gnu.org; 10 Dec 2023 20:32:59 +0000 Original-Received: from localhost ([127.0.0.1]:51813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCQTy-0004Ls-JZ for submit@debbugs.gnu.org; Sun, 10 Dec 2023 15:32:58 -0500 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:38329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCQTt-0004La-1b for 67310@debbugs.gnu.org; Sun, 10 Dec 2023 15:32:56 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 80AA93200A27; Sun, 10 Dec 2023 15:32:32 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 10 Dec 2023 15:32:32 -0500 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=fm3; t= 1702240352; x=1702326752; bh=bIMVON/r/TNqypXSBFi73ReOGe2g4+u56U+ UGbdQNcs=; b=xkj7zLXq7XwZD1aSBb0G8T8jpTFRHMtj2oEAsOKhfl6UF+QALV5 FgoDlMQ2LIv0r/5h4v6tLaKo/rwL9diU4DY7LgV82ydEfTSAO+HF0auVonK43Ftj XF/0rIOhkWAxPqapG4sSURmoL9nI44fRsWSEF9sX72GnI2+OC+Z+EiMGpLXPXyC9 ZMrg3sRPvRX/d8NtK0bknQCcWnkWjAHzyVbwUEFhkCgHPJOfgfoD1pMEDjtvi2eq OFlT7Qu/f+o67eWdiLmjZfMhwfc+0EkL0sjleEc1/3oGHR5EHe3GBLGT0ZCu0owo XuxsYE6ktpquyhyVWNB5oP3RyfyXtSADlQA== 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=fm1; t= 1702240352; x=1702326752; bh=bIMVON/r/TNqypXSBFi73ReOGe2g4+u56U+ UGbdQNcs=; b=i5lXQjcTZHRMgoa50ZhoeRQCeaUhLB1rTnaoVbTcZovT1OmnJl4 XxzvAuaw5q2ywq0HupqMk/n+F1fGKoIgCnLW0Tnu4U3t2kzNBAFaFpbxjb6E5LyL zJAFCao68OXYfwba9ABlUOs/WAZQ66YrF7xOLpwo8W4B2FjCPx0YMUThEy9H0oS8 IvZBW/60+xZHqFA9DFJxlSKC/G4RmN67xTfHWlpAl6LPi8afEM/J82rv0swd/zlI FP2sJv9SfjHm5hoRA36LuYJlKgFcbctx8GxQ5vYG5ySDCNM63bjFsP9ikdbQknIW aenQHudiwayrlO5W+wefWvh1TPIuehlpG2A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeltddgudegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeev ledvveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 10 Dec 2023 15:32:30 -0500 (EST) Content-Language: en-US In-Reply-To: <861qbujehq.fsf@mail.linkov.net> 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:275942 Archived-At: On 10/12/2023 19:43, Juri Linkov wrote: >>> This change broke the order of 'C-x p p M-n M-n ...', >> Could you remind me which behavior in 'M-n M-n' the aforementioned change >> relates to? Is this supposed to be like input history as well, or the >> contents of the completions table in a certain order? > It's inappropriate to overwrite the history with the recently visited projects. > Only user input should be added to history variables because it's actually > the history of user input. Therefore, the remaining way to access a list > of recently visited projects is the future history with 'M-n M-n'. But... we do overwrite it now, manually constructing the value of input history from project--list every time. So it seems like both "past history" and "future history" show the same information now. If so, it might make sense to keep only one. >> I just tried find-file, and the future history is empty there, so I suppose >> this is something we added particularly for project-find-file. > Unlike with project--list, we don't keep a list of recently visited files. > Once we conducted an experiment to add all visited files to the input file history, > even when a file was visited without reading a file name in the minibuffer, > e.g. by typing RET in Dired. But no one liked this behavior. I don't remember that experiment, but the description sounds like recentf. Which must have its audience (and I use it through Ido's "virtual buffers"). Thought the way of accessing that history (only through iteration) might have felt limiting in that experiment.