Skip to content

Commit

Permalink
kill off iswitchb support, sorry folks, it's dead
Browse files Browse the repository at this point in the history
  • Loading branch information
jrockway committed Mar 12, 2018
1 parent e95dc9f commit 068218d
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions eproject-extras.el
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

;;; History:

;; 2018-03-12: Kill off iswitchb support.
;; 2012-05-16: `eproject-compile' moved to contrib/eproject-compile.el.

;;; Code:

(require 'eproject)
(require 'cl)
(require 'iswitchb)
(require 'ibuffer)
(require 'ibuf-ext)

Expand Down Expand Up @@ -65,16 +65,7 @@ to select from, open file when selected."

(defun eproject--icompleting-read (prompt choices)
"Use iswitchb to do a completing read."
(let ((iswitchb-make-buflist-hook
(lambda ()
(setq iswitchb-temp-buflist choices))))
(unwind-protect
(progn
(when (not iswitchb-mode)
(add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup))
(iswitchb-read-buffer prompt nil t))
(when (not iswitchb-mode)
(remove-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)))))
(warn "iswitchb is dead, use eproject--ido-completing-read"))

(defun eproject--ido-completing-read (prompt choices)
"Use ido to do a completing read."
Expand All @@ -87,8 +78,6 @@ Used by `eproject-find-file'."
:group 'eproject
:type '(radio (function-item :doc "Use emacs' standard completing-read function."
eproject--completing-read)
(function-item :doc "Use iswitchb's completing-read function."
eproject--icompleting-read)
(function-item :doc "Use ido's completing-read function."
eproject--ido-completing-read)
(function)))
Expand Down

0 comments on commit 068218d

Please sign in to comment.