With latest slime, when doing M-.(slime-edit-definition) on SBCL functions like SB-SYS:SERVE-EVENT I get this error message: slime-goto-location-position: Invalid function: save-restriction-if-possible this is because the macro `save-restriction-if-possible' is defined after `slime-goto-location-position' and, when byte-compiling slime.el, it breaks. I've attached a patch that moves `save-restriction-if-possible' right before `slime-goto-location-position'
Stelian Ionescu sionescu@common-lisp.net writes:
I've attached a patch that moves `save-restriction-if-possible' right before `slime-goto-location-position'
Basically applied, except that I moved it up further. Thanks!
-T.
On a similar note, the following patch fixes an undefined function error in swank-asdf.lisp:
cvs diff: Diffing . cvs diff: Diffing contrib Index: contrib/swank-asdf.lisp =================================================================== RCS file: /project/slime/cvsroot/slime/contrib/swank-asdf.lisp,v retrieving revision 1.1 diff -u -r1.1 swank-asdf.lisp --- contrib/swank-asdf.lisp 4 Sep 2007 10:32:07 -0000 1.1 +++ contrib/swank-asdf.lisp 11 Sep 2007 00:37:44 -0000 @@ -9,13 +9,6 @@
(in-package :swank)
-(defslimefun operate-on-system-for-emacs (system-name operation &rest keywords) - "Compile and load SYSTEM using ASDF. -Record compiler notes signalled as `compiler-condition's." - (swank-compiler - (lambda () - (apply #'operate-on-system system-name operation keywords)))) - (defun operate-on-system (system-name operation-name &rest keyword- args) "Perform OPERATION-NAME on SYSTEM-NAME using ASDF. The KEYWORD-ARGS are passed on to the operation. @@ -27,6 +20,13 @@ (error "Couldn't find ASDF operation ~S" operation-name)) (apply #'asdf:operate operation system-name keyword-args))))
+(defslimefun operate-on-system-for-emacs (system-name operation &rest keywords) + "Compile and load SYSTEM using ASDF. +Record compiler notes signalled as `compiler-condition's." + (swank-compiler + (lambda () + (apply #'operate-on-system system-name operation keywords)))) + (defun asdf-central-registry () asdf:*central-registry*)
cvs diff: Diffing doc
On Sep 9, 2007, at 2:35 AM, Tobias C. Rittweiler wrote:
Stelian Ionescu sionescu@common-lisp.net writes:
I've attached a patch that moves `save-restriction-if-possible' right before `slime-goto-location-position'
Basically applied, except that I moved it up further. Thanks!
-T.
slime-devel site list slime-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/slime-devel
Cyrus Harmon ch-slime@bobobeach.com writes:
On a similar note, the following patch fixes an undefined function error in swank-asdf.lisp:
The issue was that `swank-asdf.lisp' ended up being LOADed, which doesn't treat the file as one compilation unit. I committed a fix for that.
Thanks for the report!
-T.