Skip to content

Commit fe7e48b

Browse files
syohexbbatsov
authored andcommitted
Load helm-core.el instead of helm.el
- helm-core no longer bundles helm.el - Replace deprecated functions
1 parent e8d565f commit fe7e48b

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

helm-cider-cheatsheet.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
(require 'cider)
3030
(require 'cider-cheatsheet)
3131
(require 'cl-lib)
32-
(require 'helm)
32+
(require 'helm-core)
3333
(require 'helm-multi-match)
3434
(require 'helm-cider-util)
3535

helm-cider-repl.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
(require 'cider-repl)
2727
(require 'cl-lib)
2828
(require 'subr-x)
29-
(require 'helm)
29+
(require 'helm-core)
3030

3131

3232
;;;; Customize
@@ -119,14 +119,14 @@ Useful when the candidate longer than `helm-cider-repl-history-max-lines' lines.
119119
(let ((inhibit-read-only t))
120120
(erase-buffer)
121121
(insert candidate))))
122-
(if (and (helm-attr 'previewp)
123-
(string= candidate (helm-attr 'current-candidate)))
122+
(if (and (helm-get-attr 'previewp)
123+
(string= candidate (helm-get-attr 'current-candidate)))
124124
(progn
125125
(kill-buffer buf)
126-
(helm-attrset 'previewp nil))
126+
(helm-set-attr 'previewp nil))
127127
(preview candidate)
128-
(helm-attrset 'previewp t)))
129-
(helm-attrset 'current-candidate candidate)))
128+
(helm-set-attr 'previewp t)))
129+
(helm-set-attr 'current-candidate candidate)))
130130

131131
(defun helm-cider-repl--history-source ()
132132
"Source for Helm CIDER REPL history."

helm-cider-spec.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ SPEC-NAME is a spec keyword string."
113113

114114
(defun helm-cider-spec--persistent-action (candidate)
115115
"Persistent action for Helm CIDER apropos."
116-
(if (and (helm-attr 'spec-lookup-p)
117-
(string= candidate (helm-attr 'current-candidate)))
116+
(if (and (helm-get-attr 'spec-lookup-p)
117+
(string= candidate (helm-get-attr 'current-candidate)))
118118
(progn
119119
(kill-buffer cider-browse-spec-buffer)
120-
(helm-attrset 'spec-lookup-p nil))
120+
(helm-set-attr 'spec-lookup-p nil))
121121
(cider-browse-spec--browse candidate)
122-
(helm-attrset 'spec-lookup-p t))
123-
(helm-attrset 'current-candidate candidate))
122+
(helm-set-attr 'spec-lookup-p t))
123+
(helm-set-attr 'current-candidate candidate))
124124

125125
(defun helm-cider-spec--source (ns spec-names &optional follow)
126126
"Helm source for specs in namespace NS.

helm-cider-util.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ TYPE values include \"function\", \"macro\", etc."
102102
"Persistent action calling `cider-doc-lookup' on CANDIDATE."
103103
(cider-ensure-connected)
104104
(cider-ensure-op-supported "info")
105-
(if (and (helm-attr 'doc-lookup-p)
106-
(string= candidate (helm-attr 'current-candidate)))
105+
(if (and (helm-get-attr 'doc-lookup-p)
106+
(string= candidate (helm-get-attr 'current-candidate)))
107107
(progn
108108
(kill-buffer cider-doc-buffer)
109-
(helm-attrset 'doc-lookup-p nil))
109+
(helm-set-attr 'doc-lookup-p nil))
110110
(cider-doc-lookup candidate)
111-
(helm-attrset 'doc-lookup-p t))
112-
(helm-attrset 'current-candidate candidate))
111+
(helm-set-attr 'doc-lookup-p t))
112+
(helm-set-attr 'current-candidate candidate))
113113

114114
(defmacro wrap-helm-cider-action (f &optional ops)
115115
"Wrap Helm CIDER actions.

helm-cider.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Copyright (C) 2016-2022 Tianxiang Xiong
44

55
;; Author: Tianxiang Xiong <[email protected]>
6-
;; Package-Requires: ((emacs "26") (cider "1.0") (helm-core "2.8"))
6+
;; Package-Requires: ((emacs "26") (cider "1.0") (helm-core "3.7.0"))
77
;; Keywords: cider, clojure, helm, languages
88
;; URL: https://github.com/clojure-emacs/helm-cider
99
;; Version: 0.5.0
@@ -32,7 +32,7 @@
3232

3333
(require 'cider)
3434
(require 'cl-lib)
35-
(require 'helm)
35+
(require 'helm-core)
3636
(require 'helm-cider-cheatsheet)
3737
(require 'helm-cider-repl)
3838
(require 'helm-cider-spec)

0 commit comments

Comments
 (0)