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 | 8170fdab0cf35cf12d1dc091b6232ac4d22fe1a5 (patch) | |
tree | 89dbd8bce912052d93ba4855a3c9307727960a75 /elisp/geiser-base.el | |
parent | 2b0ff9f520839d7389ddb9e2354c709a1ce401d4 (diff) | |
download | geiser-guile-8170fdab0cf35cf12d1dc091b6232ac4d22fe1a5.tar.gz geiser-guile-8170fdab0cf35cf12d1dc091b6232ac4d22fe1a5.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 |