[slime-devel] patch: make slime-echo-arglist show initargs/initforms for make-instance
Luís Oliveira
luismbo at gmail.com
Thu Jan 26 21:40:33 UTC 2006
Hello,
The attached patch makes slime-echo-arglist detect (make-instance
'quoted-symbol ...) forms and uses the quoted symbol to find the class
and present the initargs and initforms in the mini-buffer. For example:
CL-USER> (defclass foo ()
((a :initarg :initarg-a :initform nil)
(b :initarg :initarg-b)
c))
#<STANDARD-CLASS FOO>
CL-USER> (make-instance<space>
;; minibuffer displays: (make-instance class &rest initargs)
CL-USER> (make-instance 'foo<space>
;; minibuffer displays: (make-instance 'foo &key (initarg-a nil) initarg-b)
The code is a bit ugly, specially on the elisp side. My elisp-fu being
very weak doesn't help. Suggestions on how to improve that are most
welcome!
BTW, the ChangeLog's encoding seems to be latin-1, wouldn't utf-8 be
better?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: initargs.patch
Type: text/x-patch
Size: 4950 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20060126/07b9dc0d/attachment.bin>
-------------- next part --------------
--
Lu?s Oliveira
luismbo (@) gmail (.) com
Equipa Portuguesa do Translation Project
http://www.iro.umontreal.ca/translation/registry.cgi?team=pt
More information about the slime-devel
mailing list