branch: elpa/cider
commit 5decd336f9e2cf585dbf7b9fde203c7b7f6a0df9
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Stop cider-log using the obsolete cider-auto-select-error-buffer
That option was consolidated into `cider-auto-select-buffer' and made
obsolete, but `cider-log.el' kept referencing it - which broke the
byte-compile (a file may only use its own obsolete variables warning-free).
Consult `cider-auto-select-buffer' directly, preserving behaviour.
---
lisp/cider-log.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/cider-log.el b/lisp/cider-log.el
index 139f3612e9..93dfaf415a 100644
--- a/lisp/cider-log.el
+++ b/lisp/cider-log.el
@@ -645,7 +645,7 @@ The KEYS are used to lookup the values and are joined by
SEPARATOR."
"Format the log EVENT of FRAMEWORK and APPENDER."
(when-let* ((event (cider-sync-request:log-format-event framework appender
event)))
(cider-popup-buffer cider-log-event-buffer
- (cider-auto-select-buffer-p 'error
cider-auto-select-error-buffer)
+ (cider-auto-select-buffer-p 'error 'default)
'clojure-mode 'ancillary)
(with-current-buffer cider-log-event-buffer
(let ((inhibit-read-only t))
@@ -680,7 +680,7 @@ The KEYS are used to lookup the values and are joined by
SEPARATOR."
(when-let* ((framework cider-log-framework)
(appender cider-log-appender)
(event (cider-log-event-at-point)))
- (let ((cider-auto-select-error-buffer nil))
+ (let ((cider-auto-select-buffer nil))
(save-window-excursion
(when (get-buffer-window cider-inspector-buffer)
(cider-log-event--inspect framework appender event))