From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh Newsgroups: gmane.emacs.bugs Subject: bug#63829: 29.0.90; project-find-file's future history breaks with common-parent-directory Date: Thu, 01 Jun 2023 18:32:29 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18376"; mail-complaints-to="usenet@ciao.gmane.io" To: 63829@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 02 00:33:36 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 1q4qrQ-0004ai-BO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Jun 2023 00:33:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4qr4-0007aH-Ep; Thu, 01 Jun 2023 18:33:14 -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 1q4qqx-0007Ht-3Z for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 18:33:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4qqs-0006DR-W8 for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 18:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q4qqs-00064D-Mi for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 18:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Spencer Baugh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Jun 2023 22:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63829 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168565876423290 (code B ref -1); Thu, 01 Jun 2023 22:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Jun 2023 22:32:44 +0000 Original-Received: from localhost ([127.0.0.1]:38648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4qqa-00063a-5c for submit@debbugs.gnu.org; Thu, 01 Jun 2023 18:32:44 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4qqU-00063M-Sq for submit@debbugs.gnu.org; Thu, 01 Jun 2023 18:32:42 -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 1q4qqP-0006yY-Hs for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 18:32:33 -0400 Original-Received: from mxout5.mail.janestreet.com ([64.215.233.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4qqN-00067S-La for bug-gnu-emacs@gnu.org; Thu, 01 Jun 2023 18:32:33 -0400 Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@janestreet.com; helo=mxout5.mail.janestreet.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:262725 Archived-At: 1. emacs -Q 2. Open a project where project-files only returns files in a certain subdirectory. For example, a git repo /repo where the only file is "dir/file.txt". 3. Open dir/file.txt 4. C-x p f ;; project-find file 5. Observe that the prompt is "Find file in /repo/dir: " which correctly contains the common parent directory between all the paths returned by project-files. 6. M-n ;; next-history-element 7. The minibuffer now contains "dir/file.txt". RET will fail to open the file. Instead, the common parent directory should be stripped from the "future history" element. (As a separate point: I ran into this while adding a feature for switching between projects with similar directory structures. I want to include the relative path in the starting project in the "future history", so that when you have a file in projectA open, you can switch to the same file in projectB with C-x p p f M-n RET. For example, switching between the same file in multiple clones of Emacs. But sadly the future history doesn't work properly right now even in a single project) In GNU Emacs 29.0.90 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.15.12, Xaw scroll bars) of 2023-05-17 built on igm-qws-u22796a Repository revision: 4d08492296c2a6d2910f2b740c2d2508275458fc Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: CentOS Linux 7 (Core) Configured using: 'configure --with-x-toolkit=lucid --with-gif=ifavailable' Configured features: CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix