diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-10-06 00:53:07 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-10-06 00:53:07 +0200 |
commit | 2ddf2d2b920a00e4dfcdb37f54c96f3c918e0e14 (patch) | |
tree | e4adf72fdfdd87c62341588e40179cba7ad9a21b /elisp/geiser-base.el | |
parent | cdc33372c0e98f7159831cce44d12d5400798307 (diff) | |
download | geiser-2ddf2d2b920a00e4dfcdb37f54c96f3c918e0e14.tar.gz geiser-2ddf2d2b920a00e4dfcdb37f54c96f3c918e0e14.tar.bz2 |
Use cl only at compile time
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 |