[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra 3a2c5b2 300/395: counsel.el: Mark obsolete th
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra 3a2c5b2 300/395: counsel.el: Mark obsolete the functions that can be replaced by complete-symbol |
Date: |
Thu, 25 Feb 2021 08:32:25 -0500 (EST) |
branch: externals/ivy-hydra
commit 3a2c5b2cff2c3dcadca9675749d3e6e46eac57a4
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
counsel.el: Mark obsolete the functions that can be replaced by
complete-symbol
---
counsel.el | 111 +++----------------------------------------------------------
1 file changed, 4 insertions(+), 107 deletions(-)
diff --git a/counsel.el b/counsel.el
index e0e2391..159c802 100644
--- a/counsel.el
+++ b/counsel.el
@@ -337,113 +337,10 @@ Update the minibuffer with the amount of lines collected
every
(delete-process process))))
;;* Completion at point
-;;** `counsel-el'
-;;;###autoload
-(defun counsel-el ()
- "Elisp completion at point."
- (interactive)
- (let* ((bnd (unless (and (looking-at ")")
- (eq (char-before) ?\())
- (bounds-of-thing-at-point 'symbol)))
- (str (if bnd
- (buffer-substring-no-properties
- (car bnd)
- (cdr bnd))
- ""))
- (pred (and (eq (char-before (car bnd)) ?\()
- #'fboundp))
- symbol-names)
- (setq ivy-completion-beg (car bnd))
- (setq ivy-completion-end (cdr bnd))
- (if (string= str "")
- (mapatoms
- (lambda (x)
- (when (and (symbolp x) (funcall pred x))
- (push (symbol-name x) symbol-names))))
- (setq symbol-names (all-completions str obarray pred)))
- (ivy-read "Symbol name: " symbol-names
- :initial-input str
- :action #'ivy-completion-in-region-action
- :caller 'counsel-el)))
-
-(ivy-configure 'counsel-el
- :height 7)
-
-;;** `counsel-cl'
-(declare-function slime-symbol-start-pos "ext:slime")
-(declare-function slime-symbol-end-pos "ext:slime")
-(declare-function slime-contextual-completions "ext:slime-c-p-c")
-
-;;;###autoload
-(defun counsel-cl ()
- "Common Lisp completion at point."
- (interactive)
- (setq ivy-completion-beg (slime-symbol-start-pos))
- (setq ivy-completion-end (slime-symbol-end-pos))
- (ivy-read "Symbol name: "
- (car (slime-contextual-completions
- ivy-completion-beg
- ivy-completion-end))
- :action #'ivy-completion-in-region-action))
-
-;;** `counsel-jedi'
-(declare-function deferred:sync! "ext:deferred")
-(declare-function jedi:complete-request "ext:jedi-core")
-(declare-function jedi:ac-direct-matches "ext:jedi")
-
-;;;###autoload
-(defun counsel-jedi ()
- "Python completion at point."
- (interactive)
- (let ((bnd (bounds-of-thing-at-point 'symbol)))
- (setq ivy-completion-beg (car bnd))
- (setq ivy-completion-end (cdr bnd)))
- (deferred:sync!
- (jedi:complete-request))
- (ivy-read "Symbol name: " (jedi:ac-direct-matches)
- :action #'counsel--py-action))
-
-(defun counsel--py-action (symbol-name)
- "Insert SYMBOL-NAME, erasing the previous one."
- (when (stringp symbol-name)
- (with-ivy-window
- (when ivy-completion-beg
- (delete-region
- ivy-completion-beg
- ivy-completion-end))
- (setq ivy-completion-beg (point))
- (insert symbol-name)
- (setq ivy-completion-end (point)))))
-
-;;** `counsel-clj'
-(declare-function cider-sync-request:complete "ext:cider-client")
-(defun counsel--generic (completion-fn)
- "Complete thing at point with COMPLETION-FN."
- (let* ((bnd (or (bounds-of-thing-at-point 'symbol)
- (cons (point) (point))))
- (str (buffer-substring-no-properties
- (car bnd) (cdr bnd)))
- (candidates (funcall completion-fn str))
- (res (ivy-read (format "pattern (%s): " str)
- candidates
- :caller 'counsel--generic)))
- (when (stringp res)
- (when bnd
- (delete-region (car bnd) (cdr bnd)))
- (insert res))))
-
-(ivy-configure 'counsel--generic
- :height 7)
-
-;;;###autoload
-(defun counsel-clj ()
- "Clojure completion at point."
- (interactive)
- (counsel--generic
- (lambda (str)
- (mapcar
- #'cl-caddr
- (cider-sync-request:complete str ":same")))))
+(define-obsolete-function-alias 'counsel-el 'complete-symbol "<2020-05-20
Wed>")
+(define-obsolete-function-alias 'counsel-cl 'complete-symbol "<2020-05-20
Wed>")
+(define-obsolete-function-alias 'counsel-jedi 'complete-symbol "<2020-05-20
Wed>")
+(define-obsolete-function-alias 'counsel-clj 'complete-symbol "<2020-05-20
Wed>")
;;** `counsel-company'
(defvar company-candidates)
- [elpa] externals/ivy-hydra 2b26f83 289/395: counsel.el (counsel--sync-sentinel-on-exit): Don't reset index, (continued)
- [elpa] externals/ivy-hydra 2b26f83 289/395: counsel.el (counsel--sync-sentinel-on-exit): Don't reset index, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 6a576cb 293/395: ivy-avy.el: Extract, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra e42e0b3 295/395: ivy-hydra.el (ivy-minibuffer-grow): Move, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 9fddf44 297/395: ivy-faces.el: Extract, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra a33af9b 356/395: Unset yank-undo-function in counsel-yank-pop, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 98c61de 299/395: ivy.el (ivy-set-display-transformer): Mark obsolete, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 177d7e0 325/395: Fix definition of ‘counsel--browse-history’., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra a877961 330/395: ivy.el (ivy-call): Don't modify default-directory, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 39ede5f 324/395: targets/plain.el: Require ivy-avy, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d951004 336/395: doc: Conflate installation description, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 3a2c5b2 300/395: counsel.el: Mark obsolete the functions that can be replaced by complete-symbol,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra 3ecf828 344/395: ivy.el (ivy-switch-buffer): Don't lose the current index, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 01d9f55 343/395: ivy.el: Fix minibuffer highlighter selction, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d4fd99f 316/395: Respect original default choice when deduplicating extra actions, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 62815d9 311/395: Makefile: Compile ivy-avy.el, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7c0796f 333/395: ivy.el (ivy-shrink-after-dispatching): Resize only when in minibuffer, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra a007ba6 334/395: Fix for counsel-grep-like-occur, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra eb53165 313/395: ivy.el (ivy--compute-extra-actions): Dedup on key, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 5d52d4b 352/395: Call isearch-filter-predicate instead of isearch-range-invisible, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7f88b67 345/395: counsel.el (counsel-highlight-with-face): New action for counsel-faces, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d52ee0a 301/395: ivy.el (ivy-completion-in-region): Restrict new behavior to elisp code, Basil L. Contovounesios, 2021/02/25