diff options
Diffstat (limited to 'elisp/geiser-base.el')
-rw-r--r-- | elisp/geiser-base.el | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/elisp/geiser-base.el b/elisp/geiser-base.el index 4793616..41fb6fc 100644 --- a/elisp/geiser-base.el +++ b/elisp/geiser-base.el @@ -14,8 +14,6 @@ ;;; Emacs compatibility: -(require 'cl) - (eval-after-load "ring" '(when (not (fboundp 'ring-member)) (defun ring-member (ring item) @@ -24,15 +22,6 @@ (when (equal item (ring-ref ring ind)) (throw 'found ind))))))) -(when (not (fboundp 'completion-table-dynamic)) - (defun completion-table-dynamic (fun) - (lexical-let ((fun fun)) - (lambda (string pred action) - (with-current-buffer (let ((win (minibuffer-selected-window))) - (if (window-live-p win) (window-buffer win) - (current-buffer))) - (complete-with-action action (funcall fun string) string pred)))))) - (when (not (fboundp 'looking-at-p)) (defsubst looking-at-p (regexp) (let ((inhibit-changing-match-data t)) @@ -76,6 +65,11 @@ (put 'geiser--save-msg 'lisp-indent-function 0) +(defun geiser--del-dups (lst) + (let (result) + (dolist (e lst (nreverse result)) + (unless (member e result) (push e result))))) + (provide 'geiser-base) ;;; geiser-base.el ends here |