From slime.el:
(defmacro slime-defun-if-undefined (name &rest rest) (unless (fboundp name) `(defun ,name ,@rest)))
Anyone see a problem with that definition? It assumes that slime hasn't been loaded before compiling slime.el. It bit me. I tend to just do a cvs up and byte-recompile-directory when upgrading slime with whatever emacs I have running.
Shouldn't it be
(defmacro slime-defun-if-undefined (name &rest rest) `(unless (fboundp ',name) (defun ,name ,@rest)))
so that the fboundp test stays in the expanded version...
On Feb 9, 2007, at 10:33 AM, Lennart Staflin wrote:
From slime.el:
(defmacro slime-defun-if-undefined (name &rest rest) (unless (fboundp name) `(defun ,name ,@rest)))
Anyone see a problem with that definition? It assumes that slime hasn't been loaded before compiling slime.el. It bit me. I tend to just do a cvs up and byte-recompile-directory when upgrading slime with whatever emacs I have running.
-- //Lennart Staflin _______________________________________________ slime-devel site list slime-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/slime-devel
-- Gary Warren King, metabang.com Cell: (413) 885 9127 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM