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

Preserve value of async-prompt-for-password when async-start is called #182

Conversation

bcc32
Copy link
Contributor

@bcc32 bcc32 commented Dec 16, 2023

This allows callers of async-start to let-bind
async-prompt-for-password (e.g., to nil to prevent any prompting on data that might contain arbitrary sexps). The value in effect while async-start is called is saved in the process's buffer, and is therefore used by async-read-from-client since it makes the process's buffer current.

This allows callers of async-start to let-bind
async-prompt-for-password (e.g., to nil to prevent any prompting on
data that might contain arbitrary sexps).  The value in effect while
async-start is called is saved in the process's buffer, and is
therefore used by async-read-from-client since it makes the process's
buffer current.
thierryvolpiatto added a commit that referenced this pull request Dec 22, 2023
To do this, we use a local lexical var bound to
async-prompt-for-password and pass the value of this var through a
closure used as process filter.
@thierryvolpiatto
Copy link
Collaborator

Thanks, closing now.

@bcc32 bcc32 deleted the allow-let-binding-async-prompt-for-password branch December 22, 2023 18:25
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