Skip to content

annotate: skip file-truename for remote files#133

Merged
alphapapa merged 2 commits intoalphapapa:masterfrom
jdtsmith:annotate-no-remote
Feb 23, 2025
Merged

annotate: skip file-truename for remote files#133
alphapapa merged 2 commits intoalphapapa:masterfrom
jdtsmith:annotate-no-remote

Conversation

@jdtsmith
Copy link
Contributor

The test for a "dirty" activity used by the annotation function and
when updating the timestamp within the activity is based on whether
the "set of buffers and files" has changed. We use file-truename to
look for "real" file changes but that can hang on remote files. To
alleviate, we only check the file-truename on non-remote files.

The test for a "dirty" activity used by the annotation function and
when updating the timestamp within the activity is based on whether
the "set of buffers and files" has changed.  We use `file-truename` to
look for "real" file changes but that can hang on remote files.  To
alleviate, we only check the `file-truename` on non-remote files.
@jdtsmith
Copy link
Contributor Author

This is really kind of a tramp issue, but if you save an activity with a remote file included that is accessible only in some locations (or some networks), activities--buffers-and-files-differ (from the new annotations) hangs. TRAMP does this sort of thing all the time. This is used to compute the "dirty flag" (*) on annotations, and as well to update the timestamp only when "buffer and files" change. I think the right fix is the following: if the specified file is remote, simply return it instead of (file-true name file).

@alphapapa
Copy link
Owner

Ah, this sounds like it might be the solution for #130!

@jdtsmith
Copy link
Contributor Author

Oh interesting, hadn't seen that one. Tramp sets some pretty deep hooks...

@alphapapa alphapapa merged commit d735c0f into alphapapa:master Feb 23, 2025
@alphapapa
Copy link
Owner

Thanks for your patience.

@alphapapa alphapapa self-assigned this Feb 24, 2025
@alphapapa alphapapa added the bug Something isn't working label Feb 24, 2025
@alphapapa alphapapa added this to the v0.8 milestone Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants