here's the problem: i name my package following the "javaish" dotted dns name convention, and i tend to use it a lot, so i have packages with names like: it.bese.spider.simei and it.bese.arnesi.web.web-walk. Anyway, the point is that I have packages with long names, yet all these packages have foirly short nicknames and i'd rather have the repl show me not the full package name but the shortest nickname for the current package.
My first attempt was to just change slime-lisp-package to make a call to (slime-eval `(swank:shortest-package-nickname ,slime-lisp-package)) but this keeps giving me errors about the marker not pointing anywhere. So if i wanted to provide a slime option which shomed package names as their shortest nick name and not their real name, where should i go about pokeing my fingers? or what don't i understand about how slime-eval interacts with the relp buffer?
Marco Baringer mb@bese.it writes:
So if i wanted to provide a slime option which shomed package names as their shortest nick name and not their real name, where should i go about pokeing my fingers? or what don't i understand about how slime-eval interacts with the relp buffer?
This would be a good feature. Lisp detects REPL package changes and informs Emacs about them at the end of swank:eval-region -- you can safely send a nickname where it currently uses PACKAGE-NAME.
CL-USER> (in-package :it.bese.fiveam) #<Package "IT.BESE.FIVEAM"> 5AM> (in-package :ccl) #<Package "CCL"> CCL>
Marco Baringer mb@bese.it writes:
CL-USER> (in-package :it.bese.fiveam) #<Package "IT.BESE.FIVEAM"> 5AM> (in-package :ccl) #<Package "CCL"> CCL>
Hacked slightly and committed -- thanks!
This will kinda break the `slime-lisp-preferred-package-nicknames' alist -- but unless someone is actually using it I'll just delete it (using shortest nicknames solves the problem better). If person knows a reason why this variable should not be removed, speak now, or forever hold your peace!
Luke Gorrie luke@bluetail.com writes:
This will kinda break the `slime-lisp-preferred-package-nicknames' alist -- but unless someone is actually using it I'll just delete it (using shortest nicknames solves the problem better). If person knows a reason why this variable should not be removed, speak now, or forever hold your peace!
Deleted now.