<div dir="auto">That makes sense. There already exist other similar extensions to M-. that allow it to find local functions for instance. See the slime-mdot-fu contrib.</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Luís </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 2 Sep 2022 at 03:43, Anton Vodonosov <<a href="mailto:avodonosov@yandex.ru">avodonosov@yandex.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div>Hello.</div><div> </div><div>People may want to open package.lisp of some library to study the public API,</div><div>and quickly navigate to definition of any symbol from the :export list,</div><div>in order to read the docstring.</div><div> </div><div>I use slime-edit-definition (with the M-. shortcut) for navigation to docstrings.</div><div> </div><div>But that usually does not work from within of (defpackage ) form,</div><div>because slime determines the current package based on the (in-package)</div><div>at the top of the file and usually package files have</div><div> </div><div><div>   (in-package :cl-user)</div><div><br>   (defpackage :some-lib</div><div>      (:export #:some-function</div><div>                    #:another-function</div><div>                     ...))</div><div> </div><div> </div><div>So when cursor stays on #:some-function and M-. is pressed</div><div>slime says "No known definition for: #:some-function (in :cl-user)"</div><div> </div><div>As a workaround I temporarily insert (in-pakcage :some-lib) above the (defpackage ).</div><div> </div><div>But it would be convenient if slime understood that the within the :export</div><div>option of defpackage the symbols belong to the package being defined</div><div>and not to the closest (in-package ).</div><div> </div><div>So that the proposal for consideration of the slime maintainers.</div><div> </div><div>Best regards,</div><div>- Anton</div></div></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Luís Oliveira<br><a href="https://kerno.org/~luis/" target="_blank">https://kerno.org/~luis/</a></div></div>