Skip to content

Commit

Permalink
implement re-evaluate-defvar (for M-C-x on defvar form)
Browse files Browse the repository at this point in the history
  • Loading branch information
3b committed Jun 4, 2011
1 parent 9903c56 commit e53d760
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions contrib/slime-parenscript/swank-proxy-ps.lisp
Expand Up @@ -110,11 +110,8 @@
(funcall continuation t result)))))
:async)))))

(define-proxy-fun swank:listener-eval :ps (string)
(declare (optimize (debug 3)))
(clear-user-input)
(with-buffer-syntax ()
(with-retry-restart (:msg "Retry (proxied) SLIME REPL evaluation request.")
(defun eval-common (string continuation)
(with-retry-restart (:msg "Retry (proxied) SLIME REPL evaluation request.")
(proxy-track-package
(lambda ()
(let* ((eof (cons nil nil))
Expand All @@ -140,7 +137,19 @@
(funcall *send-repl-results-function* nil)
(funcall continuation eval-ok? result))))))

:async))))))))
:async)))))))

(define-proxy-fun swank:listener-eval :ps (string)
(declare (optimize (debug 3)))
(clear-user-input)
(with-buffer-syntax ()
(eval-common string continuation)))

(define-proxy-fun swank:re-evaluate-defvar :ps (string)
(declare (optimize (debug 3)))
(clear-user-input)
(with-buffer-syntax ()
(eval-common string continuation)))

(define-proxy-fun swank:find-definitions-for-emacs :ps (name)
(declare (optimize (debug 3)))
Expand Down

0 comments on commit e53d760

Please sign in to comment.