Clozure / ccl

Clozure Common Lisp
http://ccl.clozure.com
Apache License 2.0
855 stars 103 forks source link

Defined package-local-nicknames are not shown in Emacs code-completion #323

Closed mdbergmann closed 4 years ago

mdbergmann commented 4 years ago

See attached screenshots.

Not sure if this is as designed or if this is related to CCL. However, nicknames are shown OK as completion in SBCL. And I'm assuming that that should be the case also for CCL.

In the images as example 'trivia' where a local nickname was setup as 'tr'.

ccl-plnn-2 sbcl-plnn-2 sbcl-plnn-1 ccl-plnn-1
xrme commented 4 years ago

I'd assume that's an issue with whatever Emacs interface you are using.

mdbergmann commented 4 years ago

I'm using Sly. So the backend for Sly in Slynk and that gets its data from the Lisp implementation. It would be surprising if Sly/Slynk behaves different depending on which Lisp impl is uses. But, I'll check on that.

phoe commented 4 years ago

It would be surprising if Sly/Slynk behaves different depending on which Lisp impl is uses.

Obviously it does so! Slynk is a portability library and works differently on different Lisp implementations.

See https://github.com/joaotavora/sly/search?q=package-local-nicknames&unscoped_q=package-local-nicknames - only SBCL, ECL, and ABCL have PLN implementations for them. Sly (and probably also Slime) needs to define one for CCL.

@xrme Closeable - not a CCL issue.

xrme commented 4 years ago

I'll close this as not being a CCL bug. If Slynk wants new features in CCL, let's talk about those in other issues.

mdbergmann commented 4 years ago

OK, thanks for the clarification. That seems to be straight forward to add in Slynk.

phoe commented 4 years ago

Yep.

#+#.(slynk-backend:with-symbol 'package-local-nicknames 'ccl)
(defimplementation package-local-nicknames (package)
  (ccl:package-local-nicknames package))