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

Fixes #1578 in windows process-buffer can be nil #1590

Merged
merged 1 commit into from
Feb 28, 2016

Conversation

jonpither
Copy link
Contributor

Adding a simple when condition, so that the spurious error in windows goes away.

@Malabarba
Copy link
Member

LGTM

(when (functionp nrepl-post-client-callback)
(funcall nrepl-post-client-callback client-buffer)))))))
;; In Windows this can be false:
(when (buffer-live-p (process-buffer process))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can extract (process-buffer) in a let binding (it's used again on the next line).

@bbatsov
Copy link
Member

bbatsov commented Feb 26, 2016

Please, change the commit message to "[Fix #1578] Add a guard for missing process-buffer"

@jonpither
Copy link
Contributor Author

Changes made.

bbatsov added a commit that referenced this pull request Feb 28, 2016
[Fix #1578] Add a guard for missing process-buffer
@bbatsov bbatsov merged commit d8aed58 into clojure-emacs:master Feb 28, 2016
@bbatsov
Copy link
Member

bbatsov commented Feb 28, 2016

👍 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.

3 participants