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

Call file-readable-p only on non-remote files #2822

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

dcolascione
Copy link
Contributor

Calling file-readable-p before reading a message file is fine when the file is local, but when it's a remote file, doing so incurs an extra network round trip. It's not really necessary to do so either: if the file is missing, we'll fail in the insert-file-contents below anyway, so we're missing out only on a nicer warning message.

Calling file-readable-p before reading a message file is fine
when the file is local, but when it's a remote file, doing so incurs
an extra network round trip.  It's not really necessary to do so
either: if the file is missing, we'll fail in the insert-file-contents
below anyway, so we're missing out only on a nicer warning message.
@djcb djcb merged commit 1757744 into djcb:master Feb 23, 2025
2 checks passed
@djcb
Copy link
Owner

djcb commented Feb 23, 2025

Merged, thanks.

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.

2 participants