Re: Do the new M-. changes work with CLISP?

Eduardo Muñoz <[email protected]>
Newsgroups gmane.lisp.ilisp.devel
Organization :noitazinagrO
Message-ID <[email protected]>
* "Clementson, Bill" <[email protected]>
| I've modified the fsf key bindings and have been testing 
| ILISP functionality using those new bindings. During this
| testing, I tried out the new M-. changes that are in CVS.
| Under CLISP, they don't appear to work. The old M-. support
| that is in the ILISP 5.12 release did work under CLISP.

I hacked the thing and came with the following patch. Try it
and tell me what do you think.


-------------------------------------------------------------------
Index: ilisp-src.el
===================================================================
RCS file: /cvsroot/ilisp/ILISP/ilisp-src.el,v
retrieving revision 1.8
diff -u -r1.8 ilisp-src.el
--- ilisp-src.el	2 Apr 2003 01:56:20 -0000	1.8
+++ ilisp-src.el	9 May 2003 11:57:36 -0000
@@ -1156,7 +1156,13 @@
 			  "any")
 			;; [specifying "any" uses the cache.  -- rgr, 4-Sep-02.]
 			;; (car possible-types)
-			"any"))))
+                      (if (ilisp-value 'ilisp-find-source-command t)
+                          ;; inferior lisp will tell us
+                          "any"
+                        (let ((types (ilisp-value 'ilisp-source-types t)))
+                          (ilisp-completing-read
+                           (format "Type [%s]: " (caar types))
+                           types (caar types))))))))
 	  ;; Non-interactive cases (reusing the last definition name).
 	  ((zerop numeric-arg)
 	    (list nil 'visit))

-- 
Eduardo Muñoz          | (prog () 10 (print "Hello world!")
http://213.97.131.125/ |          20 (go 10))



-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.