Skip to content

Support remote files.#245

Open
gildea wants to merge 2 commits intogareth-rees:masterfrom
gildea:master
Open

Support remote files.#245
gildea wants to merge 2 commits intogareth-rees:masterfrom
gildea:master

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