From 2ddf2d2b920a00e4dfcdb37f54c96f3c918e0e14 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Wed, 6 Oct 2010 00:53:07 +0200 Subject: Use cl only at compile time --- elisp/geiser-base.el | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'elisp/geiser-base.el') 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 -- cgit v1.2.3