summaryrefslogtreecommitdiff
path: root/helm-misc.el
diff options
context:
space:
mode:
authorPierre Neidhardt <mail@ambrevar.xyz>2019-02-15 19:35:02 +0100
committerPierre Neidhardt <mail@ambrevar.xyz>2019-02-15 19:35:02 +0100
commit71fee9918fb62294d4156249d552eec0c6a0c2e9 (patch)
tree07e38602a1a3f59f4621a6ff73bba02a5fad0131 /helm-misc.el
parent945443642e61143fea6aca1396e01ed45d8ff310 (diff)
Move comint-input-ring code from helm-misc.el to helm-comint.el
Diffstat (limited to 'helm-misc.el')
-rw-r--r--helm-misc.el28
1 files changed, 0 insertions, 28 deletions
diff --git a/helm-misc.el b/helm-misc.el
index 9701e4e2..3087ce6a 100644
--- a/helm-misc.el
+++ b/helm-misc.el
@@ -202,23 +202,6 @@ It is added to `extended-command-history'.
(const :tag "Confirm" 'confirm)
(const :tag "Always allow" nil)))
-;;; Shell history
-;;
-;;
-(defun helm-comint-input-ring-action (candidate)
- "Default action for comint history."
- (with-helm-current-buffer
- (delete-region (comint-line-beginning-position) (point-max))
- (insert candidate)))
-
-(defvar helm-source-comint-input-ring
- (helm-build-sync-source "Comint history"
- :candidates (lambda ()
- (with-helm-current-buffer
- (ring-elements comint-input-ring)))
- :action 'helm-comint-input-ring-action)
- "Source that provide helm completion against `comint-input-ring'.")
-
;;; Helm ratpoison UI
;;
@@ -339,17 +322,6 @@ Default action change TZ environment variable locally to emacs."
(delete-minibuffer-contents)
(insert elm)))
-;;;###autoload
-(defun helm-comint-input-ring ()
- "Preconfigured `helm' that provide completion of `comint' history."
- (interactive)
- (when (derived-mode-p 'comint-mode)
- (helm :sources 'helm-source-comint-input-ring
- :input (buffer-substring-no-properties (comint-line-beginning-position)
- (point-at-eol))
- :buffer "*helm comint history*")))
-
-
(provide 'helm-misc)
;; Local Variables: