diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2018-06-24 22:52:23 +0300 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2018-06-24 22:52:23 +0300 |
commit | 13c76efcfc94f3c97183962f91146a851bd7a9d3 (patch) | |
tree | a8c5de71220b388c0e4b40974401f0f70aec971b /cider-apropos.el | |
parent | 1fa530a18fd2d8554900860b19161f9e65aa420c (diff) |
[Fix #2347] Remove direct manipulations of cider-ancillary-buffers
CIDER's popups had a way to track those automatically for a while,
it's time to leverage this consistently.
Diffstat (limited to 'cider-apropos.el')
-rw-r--r-- | cider-apropos.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cider-apropos.el b/cider-apropos.el index 7d577767..97be9aa6 100644 --- a/cider-apropos.el +++ b/cider-apropos.el @@ -39,7 +39,6 @@ (require 'button) (defconst cider-apropos-buffer "*cider-apropos*") -(add-to-list 'cider-ancillary-buffers cider-apropos-buffer) (defcustom cider-apropos-actions '(("display-doc" . cider-doc-lookup) ("find-def" . cider--find-var) @@ -116,9 +115,8 @@ and be case-sensitive (based on CASE-SENSITIVE-P)." (defun cider-show-apropos (summary results query docs-p) "Show SUMMARY and RESULTS for QUERY in a pop-up buffer, formatted for DOCS-P." - (with-current-buffer (cider-popup-buffer cider-apropos-buffer t) + (with-current-buffer (cider-popup-buffer cider-apropos-buffer 'select 'apropos-mode 'ancillary) (let ((inhibit-read-only t)) - (apropos-mode) (if (boundp 'header-line-format) (setq-local header-line-format summary) (insert summary "\n\n")) |