diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-11-29 13:59:23 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-11-29 13:59:23 +0000 |
commit | 3282af3e0667213874709334bbae66dfa8e3ee1f (patch) | |
tree | 561cd58a56f59e9e2f8815f77eef732dcf2213c8 /nrepl-client.el | |
parent | eac31e6ba9dd46e35c1e60a07daa862f5c24b616 (diff) |
[Fix #1439] Wrong arguments in calls to sync-request
Diffstat (limited to 'nrepl-client.el')
-rw-r--r-- | nrepl-client.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nrepl-client.el b/nrepl-client.el index b90c0216..3b62868e 100644 --- a/nrepl-client.el +++ b/nrepl-client.el @@ -897,7 +897,8 @@ REQUEST is a pair list of the form (\"op\" \"operation\" \"par1-name\" \"par1\" ... ). See the code of `nrepl-request:clone', `nrepl-request:stdin', etc. Return the ID of the sent message." - (with-current-buffer connection + (with-current-buffer (if (bufferp connection) connection + (current-buffer)) (unless (or (plist-get request "session") (not nrepl-session)) (setq request (append request (list "session" nrepl-session)))) |