-
Notifications
You must be signed in to change notification settings - Fork 19
/
ChangeLog
15979 lines (11830 loc) · 597 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2008-12-09 Helmut Eller <[email protected]>
Reset the stream column to 0 after eval requests.
* swank.lisp (interactive-eval, eval-region): Use FRESH-LINE
to reset the stream column.
* slime.el (test repl-test): Adjust test accordingly.
2008-12-09 Helmut Eller <[email protected]>
Be a bit more careful when computing the toplevel restart.
* swank.lisp (throw-to-toplevel): Test *sldb-quit-restart* for
nilness.
* sldb-quit (sldb-quit): Show the returned value in brackets.
2008-12-09 Helmut Eller <[email protected]>
Make the modeline a bit shorter.
* slime.el (slime-compute-modeline-string): Remove PKG: and CON:
to save space.
(slime-compute-modeline-connection-state): Don't include zeros.
2008-12-09 David Reitter <[email protected]>
* slime.el (slime-repl-mode): Use `run-mode-hooks' rather than
just `run-hooks'. That way, after-change-major-mode-hook is
called automatically.
2008-12-07 Nikodemus Siivola <[email protected]>
* slime.el (slime-qualify-cl-symbol-name): Clean up the package
name using `slime-pretty-package-name', so that packages named with
strings are not left with the extra doublequotes.
2008-12-05 Tobias C. Rittweiler <[email protected]>
* slime.el (slime-macroexpansion-minor-mode-map): Bind keybindings
of `undo' to `slime-macroexpansion-undo'.
(slime-show-macroexpansion): Renamed to
`slime-initialize-macroexpansion-buffer'
(slime-initialize-macroexpansion-buffer): Make sure that the user
can't undo past the initial insertion.
(slime-macroexpand-undo): New function. Tries to undo-only.
2008-12-05 Tobias C. Rittweiler <[email protected]>
* slime.el (slime-trace-query): SPEC argument can be a symbol.
2008-12-02 Tobias C. Rittweiler <[email protected]>
* slime.el (slime-compute-modeline-connection-state): Fix
computation of debugged requests.
2008-11-30 Gábor Melis <[email protected]>
* slime.el (slime-compute-modeline-connection-state): Print the
number of debugged requests if non-zero.
(slime-connection-state-as-string): Removed unused branches.
(slime-compute-connection-state): Removed :debugged branch making
most likely return :connected instead.
2008-12-02 Tobias C. Rittweiler <[email protected]>
Modeline wouldn't display {debugged..} after `slime-interrupt'.
* slime.el (slime-debugged-connection-p): Can't rely on
`sldb-debugged-continuations' to be non-null in every SLDB buffer.
2008-11-23 Helmut Eller <[email protected]>
`q' in temp buffers should only delete the window if it was newly
created for the buffer.
* slime.el (slime-display-popup-buffer): New function. Recognize
if the window didn't exist before. Save the created window and
the selected window in buffer local variables.
(slime-make-popup-buffer): Renamed from slime-popup-buffer.
(slime-popup-buffer-quit): Delete the created window (if needed)
and restore the old selected window. Don't touch other windows.
(slime-edit-value-callback): Calling lisp-mode deletes all local
variables. We need to that inside with-popup-buffer.
2008-11-22 Helmut Eller <[email protected]>
* slime.el (slime-update-all-modelines): Only walk through
widnow-list not buffer-list.
(slime-restart-or-init-modeline-update-timer): Inrease the timer
interval to 0.5 seconds.
2008-11-22 Gábor Melis <[email protected]>
Reincarnate "eval..." (almost)
* slime.el (slime-compute-modeline-connection-state): Return the
number of outstanding requests if connected.
(slime-update-all-modelines): Renamed from slime-update-modelines,
loops through all slime buffers.
(slime-restart-or-init-modeline-update-timer): New function.
(slime-dispatch-event): Arrange for modelines to be updated on
:EMACS-REX and :RETURN.
2008-11-22 Helmut Eller <[email protected]>
* swank.lisp (invoke-default-debugger): New condition type.
(swank-debugger-hook): Handle invoke-default-debugger conditions.
(sldb-break-with-default-debugger): Signal invoke-default-debugger
to transfer control to the default debugger.
New argument DONT-UNWIND to invoke the native debugger without
unwinding the stack.
* slime.el (sldb-break-with-default-debugger): By default,
unwind the stack before invoke the native debugger.
With prefix argument, run the native debugger in the
dynamic environment of SLDB.
2008-11-02 Helmut Eller <[email protected]>
* slime.el ([test] package-updating): Allegro returns "||" as
prompt for the keyword package. I guess that's acceptable.
2008-11-02 Helmut Eller <[email protected]>
* slime.el (slime-popup-buffer-quit): Always delete windows and
bury the buffer.
2008-11-02 Helmut Eller <[email protected]>
* swank-backend.lisp (slime-interrupt-queued): New condition.
* swank.lisp (invoke-or-queue-interrupt): Raise it here.
* swank-cmucl.lisp (wait-for-input): Make fd readable in condition
handler so that we can call serve-events without timeout.
2008-11-02 Helmut Eller <[email protected]>
* slime.el ([test] find-definition.2, [test] compile-defun):
Expect to fail for CCL.
2008-10-31 Helmut Eller <[email protected]>
* slime.el (slime-repl-history-pattern): Simplify as suggested by
Knut Olav Bøhmer and Michael Weber.
2008-10-31 Helmut Eller <[email protected]>
* slime.el (slime-eval-with-transcript)
(slime-eval-with-transcript-cont): Restore the current buffer,
before calling cont.
2008-10-31 Helmut Eller <[email protected]>
* swank-lispworks.lisp (describe-function): Don't use
string-upcase on lambda-list-argruments, because not all elements
must be symbols.
2008-10-31 Helmut Eller <[email protected]>
* swank.lisp (debug-in-emacs): Bind *sldb-quit-restart* here. If
necessary, use the current abort retstart.
2008-10-30 Helmut Eller <[email protected]>
* swank-sbcl.lisp (wait-for-input): Return streams which are at
EOF.
2008-10-30 Helmut Eller <[email protected]>
* slime.el (slime-popup-buffer-quit): Call bury-buffer with
explicit argument for compatibility with XEmacs.
2008-10-30 Ivan Shvedunov <[email protected]>
* slime.el (slime-repl-history-pattern): Use the part of input
between its start and (point) as history search pattern.
Previously we used the entire input.
2008-10-26 Helmut Eller <[email protected]>
* test.sh: Return the number of failed tests as exit code.
* slime.el: Fix change from 2008-10-20.
Use (eval-when (compile)...) instead of (eval-when-compile ...),
because the latter is more like (eval-when (compile eval) ...).
2008-10-23 Helmut Eller <[email protected]>
* slime.el (slime-redirect-inferior-output): New command.
2008-10-21 Helmut Eller <[email protected]>
* swank-allegro.lisp (frame-restartable-p): Handle errors signaled
by debugger:frame-retryable-p. This looks like an Allegro
bug, though. Reported by Luke Hope.
2008-10-20 Helmut Eller <[email protected]>
* slime.el: Require some packages, e.g. apropos, at compile time
to suppress some "undefined function" warnings.
2008-10-19 Helmut Eller <[email protected]>
* swank.lisp (frame-locals-and-catch-tags): New function.
Fetch locals and catch tags with a single RPC.
* slime.el (sldb-frame-details): Use it.
* swank-backend.lisp (frame-catch-tags): Provide a default
implementation. Delete the dummy defs in various backends.
2008-10-19 Mark Evenson <[email protected]>
* swank-abcl.lisp (handle-compiler-warning): Report source
location position when we can.
Use NAMESTRING for *compile-filename*.
2008-10-19 Helmut Eller <[email protected]>
* swank-clisp.lisp (filename-to-pathname, parse-cygwin-filename):
Accept Windows and Unix filenames when :CYGWIN is in *features*.
2008-10-17 Helmut Eller <[email protected]>
* swank-sbcl.lisp (swank-compile-file): Fix typo.
2008-10-17 Helmut Eller <[email protected]>
* swank-backend.lisp (compute-sane-restarts): Deleted. Use plain
compute restarts instead.
2008-10-17 Helmut Eller <[email protected]>
* swank.lisp (call-with-retry-restart): Implement this a little
less confusing.
2008-10-17 Helmut Eller <[email protected]>
* swank-backend.lisp (frame-restartable-p): New function.
(swank-frame): Deleted. Update implemenetations accordingly.
(print-frame): Renamed back from print-swank-frame.
* swank.lisp (backtrace): Don't clutter the backtrace with
'(:restartable :unknown). For practical purposes :unknown is the
same as nil.
* slime.el (sldb-compute-frame-face): Only accept nil or t for
the :restartable prop.
2008-10-16 Helmut Eller <[email protected]>
* swank-backend.lisp (swank-compile-file): Return the same
values as COMPILE-FILE. Update backends accordingly.
* swank-lispworks.lisp (with-swank-compilation-unit): Return the
values of BODY.
(compile-from-temp-file)
* swank-allegro.lisp (compile-from-temp-file)
* swank-clisp.lisp (swank-compile-string)
* swank-abcl.lisp (swank-compile-string): Return T on success.
* swank.lisp (collect-notes): Check return type of
FUNCTION.
2008-10-16 Helmut Eller <[email protected]>
* swank-openmcl.lisp (frame-catch-tags): Disabled as it prevents
FRAME-LOCALS from working in lx8632.
2008-10-10 Nikodemus Siivola <[email protected]>
* slime.el (slime-inspector-toggle-verbose): New function.
(slime-inspector-mode-map): Bind v to slime-inspector-toggle-verbose.
(slime-cheat-sheet-table): Add slime-inspector-toggle-verbose.
* swank.lisp (*inspector-verbose*): New variable.
([defstruct] istate): New slot called verbose.
(istate>elisp): If the current istate is verbose, use untruncated result of
TO-STRING as the title.
(inspect-nth-part): Use the verbosity of the current istate.
* doc/slime.texi: Document slime-inspector-toggle-verbose.
2008-10-07 Nikodemus Siivola <[email protected]>
* swank.lisp (*backtrace-printer-bindings*): export.
2008-10-05 Helmut Eller <[email protected]>
* swank-cmucl.lisp (list-callers): Do a full GC before calling
map-allocated-objects. That's needed because map-allocated-objects
seems to cons even if it's inlined.
(emacs-inspect [code-component]): Try to detect
byte-code-components.
(inspect-alien-record, mv-function-end-breakpoint-values): Avoid
compiler warnigns.
2008-10-04 Tobias C. Rittweiler <[email protected]>
* swank-sbcl.lisp: Add support for WHO-SPECIALIZES. This requires
a patch for SBCL's SB-INTROSPECT contrib which I sent upstream a
few minutes ago.
2008-10-04 Helmut Eller <[email protected]>
Some cleanups for compilation commands.
* slime.el ([defstruct] slime-compilation-result): Rename result
slot as successp.
(slime-make-compilation-finished-continuation): Deleted.
slime-eval-async preserves the current buffer and preserving the
window-configuration was always a questionable feature.
(slime-compilation-finished): Simplified.
(slime-show-note-counts): Also show the success/failure flag.
(slime-recompile-locations): Take a continuation as argument
rather than messing around with compilation-finished-hooks.
(slime-aggregate-compilation-results): New function.
(slime-xref-recompilation-cont): Renamed from
slime-make-xref-recompilation-cont.
(slime-compiler-results): Deleted.
(slime-goto-first-note-after-compilation): Replaced with hook
function slime-goto-first-note.
(slime-compilation-just-finished): Deleted.
(slime-to-lisp-filename-function): Use convert-standard-filename.
* swank.lisp ([defstruct] compilation-result): Renamed from
swank-compilation-result.
(measure-time-interval): Return seconds as float.
(collect-notes): Renamed from swank-compiler. Return a single
compilation-result.
(compile-multiple-strings-for-emacs): Return a list of
compilation-results instead of a single result with merged notes.
* swank-backend.lisp (filename-to-pathname): Renamed from
parse-emacs-filename. Updated callers.
(pathname-to-filename): New function. Use it where appropriate.
* swank-scl.lisp (pathname-to-filename): Implement it in the
backend to get rid of the #+scl in swank.lisp.
* swank-cmucl.lisp (swank-compile-file, swank-compile-string):
Return t on success.
2008-10-04 Alain Picard <[email protected]>
UTF-8 support for Lispworks.
* swank-lispworks.lisp (accept-connection): Use flexi-streams
for utf-8.
(make-flexi-stream): New function.
(*temp-file-format*): New variable
(compile-from-temp-file): Use it.
2008-09-28 Tobias C. Rittweiler <[email protected]>
* slime.el (slime-list-compiler-notes): Revert change from
2008-08-15 which introduced automatic shrinkage of the
compiler-notes buffer. This turned out to be more annoying than
worthwhile. On the cases where it's desired, the user can just use
`C-x -' himself to shrink the notes buffer.
2008-09-28 Helmut Eller <[email protected]>
Stop handling events in worker threads after sldb-quit.
* swank.lisp (with-top-level-restart): New macro.
(handle-requests, spawn-worker-thread): Use it.
(process-requests): Drop the just-one argument.
(handle-or-process-requests): Deleted. Call handle-requests
directly.
2008-09-27 Tobias C. Rittweiler <[email protected]>
Improve ECL's arglist support somewhat.
* swank-ecl.lisp (grovel-docstring-for-arglist): New function.
(arglist): Use it. Now also try to find an arglist for special
operators, and macros.
2008-09-26 Tobias C. Rittweiler <[email protected]>
* slime.el (slime-cycle-connections): Do not make the new
connection buffer-local if we're currently in a REPL buffer.
2008-09-24 Knut Olav Bøhmer <[email protected]>
* slime.el (slime-cycle-connections): New command.
2008-09-24 Helmut Eller <[email protected]>
* slime.el (slime-prefix-map): New keymap.
(slime-define-key): Use it. Also drop unused :inferior arg.
(slime-inspector-mode-map): Bind C-c to slime-prefix-map.
(slime-define-both-key-bindings): New function. Factor of
slime-init-keymaps.
(slime-init-keymaps): Use it.
(slime-control-modified-char): Deleted.
2008-09-23 Douglas Crosher <[email protected]>
* swank-scl.lisp: update for Scieneer CL 1.3.8.
* swank.lisp (ed-in-emacs): customize for the SCL.
* swank.lisp (signal-interrupt): fix typo.
2008-09-22 Nikodemus Siivola <[email protected]>
* swank.lisp (guess-package): Return NIL if string designator is
NIL: makes files without IN-PACKAGE forms more *BREAK-ON-SIGNALS*
friendly.
2008-09-22 Helmut Eller <[email protected]>
* swank-sbcl.lisp (wait-for-input): Implement this in backend,
since read-char-no-hang doesn't work in fd-handlers.
(install-sigint-handler): Go through invoke-interruption and
with-interrupts to support nested interrupts.
* slime.el (slime-lisp-implementations): Mention :env keyword
in docstring.
2008-09-21 Helmut Eller <[email protected]>
* slime.el (slime-repl-input-end-mark): Deleted. It was always at
the end of buffer. Use point-max instead.
(slime-repl-eol): Removed. The usual end-of-line does the same.
2008-09-21 Helmut Eller <[email protected]>
* slime.el (slime-eol-conversion-fixup): Return 0 (not nil) for
anyting other than CRLF conventions.
2008-09-21 Helmut Eller <[email protected]>
* swank-openmcl.lisp: Try to remove the first few internal frames
from backtraces.
(guess-stack-top): New function.
(call-with-debugging-environment): Use it
(frame-arguments): Return a list instead of a string. Don't quote
symbols.
(source-locations): Recognize (:internal FOO) functions.
2008-09-21 Helmut Eller <[email protected]>
* swank.lisp (*backtrace-pprint-dispatch-table*):
Honor *print-escape*.
2008-09-20 Ariel Badichi <[email protected]>
* slime.el (slime-with-output-end-mark):
slime-repl-show-maximum-output no longer accepts any arguments.
2008-09-20 Helmut Eller <[email protected]>
* test.sh: Parse the -S option as advertized.
* slime.el (slime-randomize-test-order): Add the * to the
docstring.
([def-slime-test] break2): Also CCL is expected to fail here.
2008-09-20 Helmut Eller <[email protected]>
Fix some of the bugs that I introduced with the last commits.
* swank-openmcl.lisp (call-with-debugging-environment): Fix typo.
(call-with-debugger-hook): Bind *break-in-sldb*.
(backtrace-context): Return nil, not tcr!
(map-backtrace): Remove the stack< test. Only test for nil.
(lisp-implementation-type-name): Return "ccl".
(emacs-inspect (t)): Fix typo.
(kill-thread): Use join-process. Otherwise we get strange
"process-reset" errors when disconnecting.
(thread-alive-p): Implemented with ccl::process-exhausted-p.
(source-locations): Use labels for helper functions.
(function-source-location): Now implemented on top of
source-locations.
2008-09-20 Helmut Eller <[email protected]>
Fix frame-source-location-for-emacs for CCL.
* swank-openmcl.lisp (source-locations): New function.
(create-source-location): New function.
(frame-source-location-for-emacs): Use it.
2008-09-20 Helmut Eller <[email protected]>
Fix inspecting of arrays.
* swank-openmcl.lisp (emacs-inspect :around (t)): call-next-method
may return a lazy list. Detect that case and only append to
ordinary lists.
(emacs-inspect (t)): Don't mark labels as inspectable. Just print
them.
2008-09-20 Helmut Eller <[email protected]>
Fix BREAK and backtraces after interrupts.
* swank-openmcl.lisp (*sldb-stack-top-hint*): New variable.
(call-with-debugging-environment, break-in-sldb)
(interrupt-thread): Use it.
(*process-to-stack-top*, record-stack-top)
(grab-stack-top): Deleted. Use *sldb-stack-top-hint* instead.
(backtrace-context): Deleted. Use %current-tcr directly.
2008-09-20 Helmut Eller <[email protected]>
* swank-openmcl.lisp (call-with-debugging-environment): Don't set
*debugger-hook* to nil.
2008-09-19 Helmut Eller <[email protected]>
* slime.el ([def-slime-test] break): Split it up in two versions
to make the debugger-hook issue more explicit.
* swank-allegro.lisp (frob-allegro-field-def): There seems to be a
new type :func handle it like :lisp.
2008-09-19 Helmut Eller <[email protected]>
* slime.el (slime-save-marker): New marcro. Use it in combination
with insert-before-markers.
(slime-check-buffer-contents): Use {} resp. [] to describe the
position of output resp. input markers.
(slime-repl-emit-result): Update window-point.
(slime-randomize-test-order): New variable.
(slime-shuffle-list): New function.
(slime-run-tests): Use it.
(slime-batch-test): Accept test-name and randomize arguments.
* test.sh (usage): Accept -n and -S options.
2008-09-18 Tobias C. Rittweiler <[email protected]>
* swank-ecl.lisp: Forgot to update ECL's backend when introducing
swank-frames in commit on 2008-09-12.
2008-09-18 Helmut Eller <[email protected]>
Some cleanups for the REPL code.
* slime.el (slime-show-last-output)
(slime-show-last-output-function)
(slime-show-last-output-region)
(slime-maybe-display-output-buffer)
(slime-repl-last-input-start-mark): Delete unused code.
(slime-repl-emit-result, slime-repl-insert-prompt)
(slime-repl-show-abort, slime-repl-insert-result)
(slime-insert-transcript-delimiter)
(slime-eval-with-transcript-cont): Consistently use save-excursion
and insert-before-markers. We always want to preserve the cursor
position in the input region (for type-ahead).
(slime-eval-with-transcript): Change order of arguments to
make the common case easier to use.
(slime-batch-test): Use a timer.
(slime-check-buffer-contents): New function to test contents and
current position. Use it in various places.
(sldb-recenter-region, def-slime-test interactive-eval)
(def-slime-test interactive-eval-output): Act slightly differently
when the test suite is executed in batch mode (without terminal).
* swank.lisp (handle-requests): Flush output.
(interactive-eval, interactive-eval): Don't use fresh-line, as
that makes it harder to test the REPL code.
* test.sh (usage): Add a -T switch to run slime in the current
directory without copying (and compiling) everything to a
temporary directory.
2008-09-18 Helmut Eller <[email protected]>
* slime.el (slime-eval-with-transcript): Accept some more arguments
so that we can also use it for compile-file.
(slime-eval-with-transcript-cont): New. Insert prompt.
(slime-compile-file): Use slime-eval-with-transcript.
(slime-repl-show-maximum-output): Update window point.
(slime-repl-insert-prompt): Don't use insert-before-markers.
(slime-repl-emit): No longer use slime-with-output-end-mark.
2008-09-17 Tobias C. Rittweiler <[email protected]>
* swank-sbcl.lisp (make-definition-source-location): Fix typo
introduced with crlf-related commit on 2008-09-16.
2008-09-17 Helmut Eller <[email protected]>
* slime.el (slime-repl-popup-on-output): New variable.
(slime-repl-emit): Honor slime-repl-popup-on-output.
(slime-eval-with-transcript): Use slime-repl-popup-on-output.
Also remove the function argument, as it was only used once
and that was slime-message.
2008-09-17 Helmut Eller <[email protected]>
(*pre-reply-hook*): Add 'force-user-output.
2008-09-17 Helmut Eller <[email protected]>
* swank.lisp (send-user-output): Lifted from make-output-function.
Make this a top-level function for easier redefinition.
2008-09-17 Helmut Eller <[email protected]>
* slime.el (slime-test-find-top-level-restart): New function.
[def-slime-test] (interrupt-at-toplevel, interrupt-in-debugger):
Use it.
2008-09-16 Helmut Eller <[email protected]>
* slime.el (slime-connection): Optionally select a new default
connection.
(slime-auto-select-connection): New variable.
(slime-auto-select-connection): New function.
2008-09-16 Helmut Eller <[email protected]>
Adjust positions in files with CRLF style end-on-line markers.
* slime.el (slime-eol-conversion-fixup): New function.
(slime-goto-location-position): Use it. Also add a new position
type :offset, so that we don't adjust offsets in strings that were
sent over the wire (which uses LF eol-convention).
* swank-abcl.lisp
* swank-allegro.lisp
* swank-clisp.lisp
* swank-cmucl.lisp
* swank-corman.lisp
* swank-ecl.lisp
* swank-lispworks.lisp
* swank-openmcl.lisp
* swank-sbcl.lisp
* swank-scl.lisp: Create :offset style positions where needed.
* swank-lispworks.lisp (skip-comments): New function.
(dspec-stream-position): Use it.
2008-09-16 Tobias C. Rittweiler <[email protected]>
* slime.el (slime-end-of-list): `backward-down-list' was used
there which is defined by paredit.el.
Use `(down-list -1)' instead.
2008-09-15 Helmut Eller <[email protected]>
* swank-lispworks.lisp (describe-symbol-for-emacs): Revert last
change.
2008-09-15 Helmut Eller <[email protected]>
* swank.lisp (sldb-loop): Send a :sldb-return event to ourselfes
to inform the debug session at the lower level.
(wait-for-event): Drop the report-interrupt argument. No longer
needed.
(event-match-p): Add an OR pattern operator. Used to wait for
different events simultaneously.
(read-packet): Use peek-char to detect EOF. read-sequence wouldn't
work.
* slime.el (slime-test-interrupt-in-debugger): Call sldb-quit and
sldb-continue in the right buffer.
* swank-backend.lisp (wait-for-input):
* swank-cmucl.lisp (wait-for-input):
* swank-clisp.lisp (wait-for-input): Use the idiom
"(when (check-slime-interrupts) (return :interrupt))".
2008-09-15 Helmut Eller <[email protected]>
Interrupt related hacking.
* swank-backend.lisp (*pending-slime-interrupts*): Should be
thread-local. Leave global value unbound.
* swank.lisp (with-interrupts-enabled%): New helper macro.
(with-slime-interrupts, without-slime-interrupts): Use it.
(call-with-connection): Bind *pending-slime-interrupts* here.
(wait-for-event): Add a report-interrupt argument. Currently used
by the debugger to detect when a nested debugger session, which
was triggered by an interrupt in wait-for-event, returns. Doesn't
work well, though.
* slime.el (slime-test-interrupt-in-debugger): New test.
2008-09-14 Helmut Eller <[email protected]>
Introduce a WAIT-FOR-INPUT backend function.
CMUCL's blocking input functions READ-CHAR etc.
are hard to use with interrupts. In the backend
we have a more realistic chance to get interrupts working.
* swank-backend.lisp (wait-for-input): New function.
* swank-cmucl.lisp, swank-clisp.lisp (wait-for-input): Implement
it.
* swank.lisp (wait-for-event/event-loop): Use WAIT-FOR-INPUT and
rescan the event-queue if WAIT-FOR-INPUT was interrupted.
(reader-event): Deleted. Merged into wait-for-event/event-loop
resp. dispatch-loop.
(decode-message): Drop the timeout argument.
(*events-enqueued*): A counter to quickly detect new events after
a wait.
(call-with-connection): If the argument is already the current
connection, don't rebind anything.
(without-slime-interrupts, with-slime-interrupts): Don't rebind
*pending-slime-interrupts*. Just to be save.
* slime.el (sldb-maybe-kill-buffer): New function, to handle
the case when the debugger was interrupted in WAIT-FOR-INPUT and
we want to return to the previous debug level.
2008-09-12 Helmut Eller <[email protected]>
For Lispworks, parse the $LWHOME/lwdoc file.
* swank-lispworks.lisp (lwdoc, lookup-lwdoc, parse-lwdoc-record):
New functions.
(describe-symbol-for-emacs): Use it.
2008-09-12 Tobias C. Rittweiler <[email protected]>
In an SLDB buffer, `C-c C-c' will now recompile the source behind
a frame. In particular, `C-u C-c C-c' will recompile the frame
with high debug settings.
* slime.el (sldb-recompile-frame-source): New function.
(sldb-mode-map): Bind `C-c C-c' to it.
* slime.el (sldb-overlays, sldb-delete-overlays, slime-xref-cleanup):
Removed. Sldb-overlays weren't created anymore since 2008-08-17.
2008-09-12 Tobias C. Rittweiler <[email protected]>
New faces: `sldb-restartable-frame-line-face',
`sldb-non-restartable-frame-line-face'.
The former is the face for frames that are surely restartable, the
latter for frames that are surely not restartable. If
restartability of a frame cannot be reliably determined, the face
`sldb-frame-line-face' is used.
At the moment, determination of frame restartability is supported
by the SBCL backend only.
* slime.el (sldb-frame.string): New.
(sldb-frame.number): New.
(sldb-frame.plist): New.
(sldb-prune-initial-frames): Use them.
(sldb-insert-frames): Ditto.
(sldb-compute-frame-face): New.
(sldb-insert-frame): Use `sldb-compute-frame-face' to insert
frames with one of the faces described above.
* swank.lisp (defslimefun backtrace): Changed return value; each
frame is now accompanied with a PLIST which at the moment can
contain :RESTARTABLE NIL/T/:UNKNOWN depending on whether the frame
is restartable, or not.
* swank-backend.lisp (defstruct swank-frame): New structure.
(compute-backtrace): Is now supposed to return a list of SWANK-FRAMEs.
(print-frame): Renamed to PRINT-SWANK-FRAME.
* swank-sbcl.lisp, swank-cmucl.lisp, swank-lispworks.lisp,
* swank-allegro.lisp, swank-scl.lisp, swank-openmcl.lisp,
* swank-abcl.lisp, swank-clisp.lisp: Adapted to swank-backend changes.
2008-09-11 Helmut Eller <[email protected]>
* doc/slime-refcard.tex: Fix typos.
2008-09-11 Gary King <[email protected]>
* swank-allegro.lisp (fspec-definition-locations): add declare
ignores to prevent warnings
(emacs-inspect): remove first definition on function since it
was being overwritten by the next one. Wrap the method on t with
a excl:without-redefinition-warnings to prevent warning.
2008-09-11 Helmut Eller <[email protected]>
* swank-cmucl.lisp (slime-output-stream): Remove last-flush-time
slot.
(sos/flush): Renamed from sos/misc-force-output. Don't try to be
clever: no timestamps and no line buffering.
(sos/write-char, sos/write-string): Renamed from sos/out
resp. sos/sout. Call output-fn outside without-interrupts.
(sos/reset-buffer): New function.
2008-09-11 Tobias C. Rittweiler <[email protected]>
* slime.el (slime-compilation-unit): Renamed to
`slime-compilation-result'.
(slime-last-compilation-unit): Renamed to
`slime-last-compilation-result'.
(slime-compiler-notes, slime-compiler-results): Adapted accordingly.
(slime-compilation-finished): Ditto.
2008-09-11 Tobias C. Rittweiler <[email protected]>
* slime.el (slime-popup-buffer-restore-snapshot): Make sure that
the buffer-local variable containing the popup buffer's snapshot
is set to nil in the right buffer.
2008-09-11 Tobias C. Rittweiler <[email protected]>
Reimplement recompilation support. The previous implementation
involving specials was subtly broken with the :fd-handler
communcation-style, because of serve-event's polite interplay with
specials. (Cf. my slime-devel post "Per event bindings" on 2008-08-17.)
* swank.lisp (with-swank-compilation-unit): Removed.
(record-note-for-condition): Removed.
(defstruct swank-compilation-unit): Renamed to
`swank-compilation-result'.
(swank-compilation-unit-for-emacs): Renamed to
`swank-compilation-result-for-emacs'.
(swank-compiler): Takes additional argument, the
swank-compilation-result where caught notes should be accumulated
into.
(defslimefun compile-file-for-emacs): Adapted accordingly.
(defslimefun compile-string-for-emacs): Ditto.
(defslimefun compile-multiple-strings-for-emacs): New RPC call.
* slime.el (slime-make-compile-expression-for-swank): Removed.
(slime-compile-string): Don't use above function anymore. Adapted.
(slime-recompile-locations): Rewritten to use new RPC call above.
2008-09-10 Tobias C. Rittweiler <[email protected]>
* swank-backend.lisp (*gray-stream-symbols*): Comment out
STREAM-FILE-POSITION.
2008-09-10 Tobias C. Rittweiler <[email protected]>
* swank.lisp (eval-for-emacs): Remove WITH-RETRY-RESTART again for
simplicity reasons.
(interactive-eval): Add WITH-RETRY-RESTART.
(eval-and-grab-output): Ditto.
(interactive-eval-region): Ditto.
(re-evaluate-defvar): Ditto.
(pprint-eval): Ditto.
(repl-eval): Ditto.
(eval-string-in-frame): Ditto.
(pprint-eval-string-in-frame): Ditto.
(init-inspector): Ditto.
(inspect-in-frame): Ditto.
2008-09-09 Tobias C. Rittweiler <[email protected]>
A RETRY restart is provided for all Slime evaluation requests.
The rationale is that restarting from a frame is mostly only
possible for functions compiled with high debug settings; most
functions aren't, however.
[Alternatively, we could make EVAL-FOR-EMACS be compiled with a
high debug level, so it'll become restartable. That would be
non-obvious to the user, though, and would only work on those
implementations that implement SWANK-BACKEND:RESTART-FRAME.]
* swank.lisp (call-with-retry-restart): New function.
(with-retry-restart): New macro.
(eval-for-emacs): Use WITH-RETRY-RESTART.
2008-09-09 Tobias C. Rittweiler <[email protected]>
A package "Foo.Bar.1.0" was truncated to "0>" as REPL
prompt. It'll now be displayed as "Bar.1.0>".
* swank.lisp (auto-abbreviated-package-name): Adapted accordingly.
2008-08-31 Helmut Eller <[email protected]>
* swank-backend.lisp (*gray-stream-symbols*): Remove
stream-file-position because it's called stream-position in CCL.
(make-fn-streams): Deleted.
Update callers accordingly.
2008-08-30 Helmut Eller <[email protected]>
* swank-sbcl.lisp (receive-if): Add #+/-linux to avoid yet more
WITH-TIMEOUT related problems.
* swank-gray.lisp (slime-input-stream): Remove the output stream
slot. Most of the time we can just call force-output.
* slime.el [test](inspector): New test.
* swank.lisp (prepare-part): Also wrap action elements
in a list. Reported by Ariel Badichi and Madhu.
2008-08-30 Helmut Eller <[email protected]>
* slime.el (slime-pop-to-buffer): Drop the norecord argument,
since we can't support it easily in Emacs 21.
Reported by Christophe Rhodes.
2008-08-30 Michael Weber <[email protected]>
* swank-gray.lisp (make-input-stream): fixed typos
2008-08-30 Michael Weber <[email protected]>
* swank-backend.lisp (*gray-stream-symbols*): added symbols
stream-peek-char, stream-read-line, stream-file-position
2008-08-30 Mark Evenson <[email protected]>
* swank-abcl.lisp (make-output-stream, make-input-stream): provide
the (trivial) definitions for MAKE-OUTPUT-STREAM and
MAKE-INPUT-STREAM for ABCL.
2008-08-27 Helmut Eller <[email protected]>
* slime.el (sldb-setup): Insert "No backtrace" if the backtrace is
empty.
2008-08-27 Anton Vodonosov <[email protected]>
* swank-ecl.lisp: Add :load-toplevel and :execute to EVAL-WHENs to
fix loading.
2008-08-27 Helmut Eller <[email protected]>
* swank-cmucl.lisp (remove-sigio-handlers): Fix thinko.
* swank.lisp (decode-message): Don't ignore EOF.
(swank-debugger-hook): Remove the default-debugger restart.
2008-08-25 Tobias C. Rittweiler <[email protected]>
* slime.el (slime-compute-modeline-package): Used `when-let' before its definition.
(slime-compute-modeline-string): Display "PKG:" before "CON:".
2008-08-22 Helmut Eller <[email protected]>
Some focus handling in multiframe setups.
* slime.el (slime-pop-to-buffer): New function.
(slime-switch-to-output-buffer): Use it.
2008-08-22 Helmut Eller <[email protected]>
Use lazy lists in the inspector.
* swank.lisp (lcons): New data type.
(lcons*, lcons-car, lcons-cdr, llist-range): New functions.
(emacs-inspect array): Use lazy lists.
(istate>elisp): The istate.content is now be a lazy list.
(iline): New utility.
(prepare-range, prepare-part): Replaces inspector-content.
2008-08-22 Helmut Eller <[email protected]>
Implement streams with a length limit.
Use them to truncate printer output in backtraces.
* swank-backend.lisp (make-output-stream, make-input-stream):
Split make-fn-streams up into two functions.
* swank.lisp (call/truncated-output-to-string): New function.
(backtrace, istate>elisp, to-line): Use it.
(frame-locals-for-emacs): Use to-line.
2008-08-22 Helmut Eller <[email protected]>
In backtraces, escape newlines in strings as \n.
* swank.lisp (*backtrace-pprint-dispatch-table*): New.
(*backtrace-printer-bindings*): Use it.
2008-08-22 Stas Boukarev <[email protected]>
* metering.lisp: Add deftypes for time-type and cons-type, which
are not defined in newer versions of CCL.
2008-08-22 Stelian Ionescu <[email protected]>
* swank-ecl.lisp: Add a few EVAL-WHENs to fix compilation.
2008-08-22 Helmut Eller <[email protected]>
Collect most of the inspector state in a structure.
Truncate the printer output more aggressively.
* swank.lisp (inspector-state): New structure.
(*istate*): New variable holds the current state.
(inspect-object, inspector-content, inspector-nth-part)
(inspector-range, inspector-call-nth-action, describe-inspectee):
Use it.