emacs/lisp/vc
João Távora 48b064a2aa Fix 'vc-dir-resynch-file' again (bug#80967)
This unbreak project-vc-dir for dirs under non-truename
hierarchies.

The following commit presumably makes 'M-x vc-dir' usable again
for versioned directories inside non-truename hierarchies,

   commit e05fab5775
   Author: Stephen Berman <stephen.berman@gmx.net>
   Date:   Sat May 2 15:11:37 2026 +0200

       Fix 'vc-dir-resynch-file' (bug#80803)

       * lisp/vc/vc-dir.el (vc-dir-resynch-file): Apply 'file-truename'
       instead of 'expand-file-name' to FNAME argument to prevent
       spurious display of symlinked files in *vc-dir* buffer.

However the similar command 'M-x project-vc-dir' was broken and made
unusable in similar circumstances.

This relatively simple fix addresses both situations touching only the
problematic 'vc-resynch-file' and one of its callees,
'vc-dir-recompute-file-state', which now discerns clearly between the
short/familiar name to present in the list and the "fname" to use to
call into the backend to gather the VC state.  Since this function is
also called from another context, where the requirements are less clear,
keeping current smenatics in that situation seemed prudent, so the new
behaviour is activate with a new optional parameter.

* lisp/vc/vc-dir.el (vc-dir-resynch-file): Call
vc-dir-recompute-file-state with truename=t.
(vc-dir-recompute-file-state): Accept optional truename param.
2026-05-07 22:15:42 +01:00
..
add-log.el Mark add-log-always-start-new-record as safe 2026-02-17 13:37:04 +01:00
compare-w.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cvs-status.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
diff-mode.el diff-kill-creations-deletions: Look for /dev/null on all platforms 2026-04-27 10:25:48 +01:00
diff.el Autoload 'diff-no-select' 2026-02-13 19:53:12 +01:00
ediff-diff.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-help.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-hook.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-init.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-merg.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-mult.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-ptch.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-util.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-vers.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-wind.el Fix control window setup in 'ediff-setup-windows-plain-compare' (Bug#80809) 2026-04-20 10:33:55 +02:00
ediff.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
emerge.el Fix emerge.el for remote files 2025-04-20 18:16:14 +02:00
log-edit.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
log-view.el vc-log-show-limit: Change default to 500, and the button to 4X 2026-02-14 02:52:52 +02:00
pcvs-defs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pcvs-info.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pcvs-parse.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pcvs-util.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pcvs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
smerge-mode.el Merge remote-tracking branch 'origin/scratch/error-API' 2026-03-15 17:17:21 -04:00
vc-annotate.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-bzr.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-cvs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-dir.el Fix 'vc-dir-resynch-file' again (bug#80967) 2026-05-07 22:15:42 +01:00
vc-dispatcher.el vc-finish-logentry: Skip displaying async command buffer sometimes 2026-05-05 11:00:52 +01:00
vc-filewise.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-git.el Rename outstanding changes commands to "unintegrated changes" 2026-04-27 13:35:31 +01:00
vc-hg.el Rename outstanding changes commands to "unintegrated changes" 2026-04-27 13:35:31 +01:00
vc-hooks.el New VC commands for remote unintegrated changes 2026-04-29 14:54:40 +01:00
vc-rcs.el Fix renaming files and directories under RCS 2026-04-26 14:20:56 +03:00
vc-sccs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-src.el Fix vc-tests for SRC 2026-04-27 15:41:27 +03:00
vc-svn.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc.el vc-switch-working-tree: Don't find non-VC projects 2026-05-05 12:17:53 +01:00