Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support remote files. #245

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Support remote files. #245

wants to merge 2 commits into from

Conversation

gildea
Copy link

@gildea gildea commented Nov 7, 2021

When calling the "p4" program, use process functions that can have
handlers for remote file names, and pass those functions the local
version of the file name on the remote host where "p4" will run.

The one difficult function to replace is 'call-process-region', which
has no handled variant 'process-file-region'. For this we copy a
process-file-region implementation from the 'xref' package.

When calling the "p4" program, use process functions that can have
handlers for remote file names, and pass those functions the local
version of the file name on the remote host where "p4" will run.

The one difficult function to replace is 'call-process-region', which
has no handled variant 'process-file-region'.  For this we copy a
process-file-region implementation from the 'xref' package.
The caller of p4--process-file-region was passing the usual "delete"
parameter, but the function wasn't accepting it.  The mis-match caused
"Wrong type argument: stringp, nil" for some p4 commands, such as
the C-c C-c (p4-form-commit) at the end of a "M-x p4-change" session.

Bug introduced in previous commit, introducing p4--process-file-region
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant