(I just tracked the reason for a problem i have been seeing... hopefully this is the right place to provide bug reports and patches.)
I started using SLIME at the 1.0 alpha stage and just updated to 1.0 beta tonight and still have a problem with shortcuts disappearing. The session will start out with all the shortcut commands but after some actions i will only have a short list of shortcut commands.
I can consistently cause the problem by starting up SLIME, bringing up the shortcut help (via ,help) and then trying to do it again (i actually lose the help short cut so it fails! ,? will show two or three shortcuts now).
The problem seems to be coming from the use of SORT* in SLIME-LIST-REPL-SHORT-CUTS. SORT* is a destructive function so the SLIME-REPL-SHORTCUT-TABLE is being trashed. Changing the code to call COPY-SEQUENCE on SLIME-REPL-SHORTCUT-TABLE before calling SORT* seems to do the trick.
Thanks for SLIME, it is really slick!
-Mark Simpson
Person or Persons Unknown damned@theworld.com writes:
(I just tracked the reason for a problem i have been seeing... hopefully this is the right place to provide bug reports and patches.)
Yes, this list is the right place.
The problem seems to be coming from the use of SORT* in SLIME-LIST-REPL-SHORT-CUTS. SORT* is a destructive function so the SLIME-REPL-SHORTCUT-TABLE is being trashed. Changing the code to call COPY-SEQUENCE on SLIME-REPL-SHORTCUT-TABLE before calling SORT* seems to do the trick.
Well spotted! Should be fixed in CVS.
Thanks for the report.
Helmut.