all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#72611: [Patch] Store canonical paths to project roots
@ 2024-08-13 19:56 Brad Howes via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-08-24  8:29 ` Eli Zaretskii
  2024-08-26  1:20 ` Dmitry Gutov
  0 siblings, 2 replies; 5+ messages in thread
From: Brad Howes via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-13 19:56 UTC (permalink / raw)
  To: 72611

[-- Attachment #1: Type: text/plain, Size: 1635 bytes --]

Tags: patch

Adapt 'project-roots' to always return a canonical path
in order to eliminate aliased values in the saved project
paths file.

In GNU Emacs 29.4 (build 2, aarch64-apple-darwin24.0.0, NS
 appkit-2559.10 Version 15.0 (Build 24A5298h)) of 2024-07-27 built on
 brh-pro-1.home
Windowing system distributor 'Apple', version 10.3.2566
System Description:  macOS 15.0

Configured using:
 'configure --disable-dependency-tracking --disable-silent-rules
 --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp
 --infodir=/opt/homebrew/Cellar/emacs-plus@29/29.4/share/info/emacs
 --prefix=/opt/homebrew/Cellar/emacs-plus@29/29.4 --with-xml2
 --with-gnutls --with-native-compilation --without-compress-install
 --without-dbus --without-imagemagick --with-modules --with-rsvg
 --with-ns --disable-ns-self-contained 'CFLAGS=-Os -w -pipe
 -mmacosx-version-min=15
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -O2
 -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT'
 'CPPFLAGS=-I/opt/homebrew/opt/zlib/include
 -I/opt/homebrew/opt/jpeg/include -I/opt/homebrew/opt/icu4c/include
 -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/readline/include
 -isystem/opt/homebrew/include -F/opt/homebrew/Frameworks
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk'
 'LDFLAGS=-L/opt/homebrew/opt/zlib/lib -L/opt/homebrew/opt/jpeg/lib
 -L/opt/homebrew/opt/icu4c/lib -L/opt/homebrew/opt/sqlite/lib
 -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/lib
 -F/opt/homebrew/Frameworks -Wl,-headerpad_max_install_names
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk
 -L/opt/homebrew/opt/libgccjit/lib''


[-- Attachment #2: 0001-Always-return-canonical-paths.patch --]
[-- Type: application/octet-stream, Size: 881 bytes --]

From 8733c5cd69d57106c0e3038cc55427d3ca888c1d Mon Sep 17 00:00:00 2001
From: Brad Howes <bradhowes@mac.com>
Date: Tue, 13 Aug 2024 21:11:45 +0200
Subject: [PATCH] Always return canonical paths

---
 lisp/progmodes/project.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 3d0f742c51d..af6cf4640d1 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -266,7 +266,7 @@ project-root
 (cl-defmethod project-root (project
                             &context (project--within-roots-fallback
                                       (eql nil)))
-  (car (project-roots project)))
+  (expand-file-name (car (project-roots project))))
 
 (cl-defgeneric project-roots (project)
   "Return the list containing the current project root.
-- 
2.39.4 (Apple Git-150.1)


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-08-26 23:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-13 19:56 bug#72611: [Patch] Store canonical paths to project roots Brad Howes via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-24  8:29 ` Eli Zaretskii
2024-08-26  1:20 ` Dmitry Gutov
2024-08-26 17:33   ` Brad Howes via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-26 23:26     ` Dmitry Gutov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.