/[slime]/slime/swank-sbcl.lisp
ViewVC logotype

Log of /slime/swank-sbcl.lisp

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Tag:

Revision 1.331 - (view) (annotate) - [select for diffs]
Sun Nov 17 07:59:04 2013 UTC (4 months, 4 weeks ago) by heller
Branch: MAIN
CVS Tags: HEAD
Changes since 1.330: +10 -11 lines
Diff to previous 1.330 , to selected 1.39
* swank-sbcl.lisp (swank-compile-string): Load the fasl file even
if there were warnings. Just like the other backends do.

Revision 1.330 - (view) (annotate) - [select for diffs]
Fri Nov 1 14:42:09 2013 UTC (5 months, 2 weeks ago) by heller
Branch: MAIN
Changes since 1.329: +25 -25 lines
Diff to previous 1.329 , to selected 1.39
* swank-sbcl.lisp (swank-compile-string): Fix last commit.  Honor
*trap-load-time-warnings* but without calling LOAD inside
WITH-COMPILATION-UNIT.

Revision 1.329 - (view) (annotate) - [select for diffs]
Thu Oct 31 07:55:49 2013 UTC (5 months, 2 weeks ago) by heller
Branch: MAIN
Changes since 1.328: +13 -13 lines
Diff to previous 1.328 , to selected 1.39
* swank-sbcl.lisp (swank-compile-string): Don't call LOAD inside
WITH-COMPILATION-UNIT.

Revision 1.328 - (view) (annotate) - [select for diffs]
Sat Feb 2 10:11:16 2013 UTC (14 months, 1 week ago) by sboukarev
Branch: MAIN
Changes since 1.327: +3 -0 lines
Diff to previous 1.327 , to selected 1.39
* swank-backend.lisp (type-specifier-p): New.
Implement it for ACL, ECL, CCL, Clisp, SBCL, LW.

* contrib/swank-util.lisp (symbol-classification-string): Use
type-specifier-p.

Revision 1.327 - (view) (annotate) - [select for diffs]
Wed Jan 9 14:29:28 2013 UTC (15 months ago) by heller
Branch: MAIN
Changes since 1.326: +10 -0 lines
Diff to previous 1.326 , to selected 1.39
* swank-sbcl.lisp (frame-package): New.

Revision 1.326 - (view) (annotate) - [select for diffs]
Wed Jan 9 14:29:11 2013 UTC (15 months ago) by heller
Branch: MAIN
Changes since 1.325: +10 -1 lines
Diff to previous 1.325 , to selected 1.39
* swank-sbcl.lisp (frame-debug-vars): Only include :valid locals.
(*keep-non-valid-locals*): New.

Revision 1.325 - (view) (annotate) - [select for diffs]
Mon Dec 3 03:43:16 2012 UTC (16 months, 1 week ago) by sboukarev
Branch: MAIN
Changes since 1.324: +0 -5 lines
Diff to previous 1.324 , to selected 1.39
* swank-backend.lisp (deinit-log-output): Move from swank-sbcl,
use it on CCL in ccl:*save-exit-functions* as well.

Revision 1.324 - (view) (annotate) - [select for diffs]
Sat Aug 4 23:48:19 2012 UTC (20 months, 1 week ago) by sboukarev
Branch: MAIN
Changes since 1.323: +17 -18 lines
Diff to previous 1.323 , to selected 1.39
* clean up: (signal (make-condition ...)) => (signal ...)

Revision 1.323 - (view) (annotate) - [select for diffs]
Sat Aug 4 23:32:37 2012 UTC (20 months, 1 week ago) by sboukarev
Branch: MAIN
Changes since 1.322: +12 -9 lines
Diff to previous 1.322 , to selected 1.39
* swank-sbcl.lisp (call-with-debugging-environment): Use
sb-debug::resolve-stack-top-hint instead of just
sb-debug:*stack-top-hint*, because now it can contain things other
than just frames.

Revision 1.322 - (view) (annotate) - [select for diffs]
Sat May 12 06:34:47 2012 UTC (23 months ago) by heller
Branch: MAIN
Changes since 1.321: +6 -8 lines
Diff to previous 1.321 , to selected 1.39
* swank-sbcl.lisp (stream-force-output): Undo last few changes.

Revision 1.321 - (view) (annotate) - [select for diffs]
Fri May 11 18:08:45 2012 UTC (23 months ago) by heller
Branch: MAIN
Changes since 1.320: +1 -1 lines
Diff to previous 1.320 , to selected 1.39
* swank-sbcl.lisp (stream-force-output): Use with-world-lock
i.e. with-recursive-lock instead of with-mutex.
* slime.el (sbcl-world-lock): New test.

Revision 1.320 - (view) (annotate) - [select for diffs]
Fri May 11 06:52:18 2012 UTC (23 months ago) by heller
Branch: MAIN
Changes since 1.319: +5 -11 lines
Diff to previous 1.319 , to selected 1.39
* swank-sbcl.lisp (stream-force-output): Don't use with-deadline.
Grab the world-lock instead.
(condition-timed-wait): Use the :timeout argument.

Revision 1.319 - (view) (annotate) - [select for diffs]
Fri May 11 06:52:05 2012 UTC (23 months ago) by heller
Branch: MAIN
Changes since 1.318: +0 -7 lines
Diff to previous 1.318 , to selected 1.39
* swank-backend.lisp (call-with-io-timeout): Not used. Deleted.
* swank-sbcl.lisp (call-with-io-timeout): Deleted.

Revision 1.318 - (view) (annotate) - [select for diffs]
Sun May 6 21:19:48 2012 UTC (23 months, 1 week ago) by heller
Branch: MAIN
Changes since 1.317: +6 -3 lines
Diff to previous 1.317 , to selected 1.39
* swank-sbcl.lisp (condition-timed-wait): Undo previous change.
The :timeout arg doesn't seem ready for production use.

Revision 1.317 - (view) (annotate) - [select for diffs]
Sun May 6 16:16:24 2012 UTC (23 months, 1 week ago) by heller
Branch: MAIN
Changes since 1.316: +18 -13 lines
Diff to previous 1.316 , to selected 1.39
* swank-sbcl.lisp (condition-timed-wait): Use the :timeout
argument of sb-thread:condition-wait if supported.

Revision 1.316 - (view) (annotate) - [select for diffs]
Sun May 6 16:16:13 2012 UTC (23 months, 1 week ago) by heller
Branch: MAIN
Changes since 1.315: +28 -15 lines
Diff to previous 1.315 , to selected 1.39
* swank-sbcl.lisp (with-definition-source): Forgot to commit this
one.

Revision 1.315 - (view) (annotate) - [select for diffs]
Fri May 4 11:16:40 2012 UTC (23 months, 1 week ago) by nsiivola
Branch: MAIN
Changes since 1.314: +1 -2 lines
Diff to previous 1.314 , to selected 1.39
sbcl: remove MERGE-TAIL-CALLS proclamation

Revision 1.314 - (view) (annotate) - [select for diffs]
Thu May 3 15:59:06 2012 UTC (23 months, 2 weeks ago) by sboukarev
Branch: MAIN
Changes since 1.313: +17 -17 lines
Diff to previous 1.313 , to selected 1.39
Remove debugging code.

Revision 1.313 - (view) (annotate) - [select for diffs]
Thu May 3 15:58:39 2012 UTC (23 months, 2 weeks ago) by sboukarev
Branch: MAIN
Changes since 1.312: +19 -23 lines
Diff to previous 1.312 , to selected 1.39
Simplify :buffer-and-file handling.

Revision 1.312 - (view) (annotate) - [select for diffs]
Thu May 3 15:49:17 2012 UTC (23 months, 2 weeks ago) by sboukarev
Branch: MAIN
Changes since 1.311: +22 -5 lines
Diff to previous 1.311 , to selected 1.39
* slime.el (slime-goto-source-location): Allow for
:buffer-and-file locations, prefer buffer if the buffer exists.

* swank-sbcl.lisp (definition-source-for-emacs): Send
:buffer-and-file when both are available.
(quit-lisp): Use sb-ext:exit when it's present.

Revision 1.311 - (view) (annotate) - [select for diffs]
Thu May 3 14:28:17 2012 UTC (23 months, 2 weeks ago) by sboukarev
Branch: MAIN
Changes since 1.310: +8 -4 lines
Diff to previous 1.310 , to selected 1.39
* swank-sbcl.lisp (quit-lisp): Use sb-ext:exit when it's present.

Revision 1.310 - (view) (annotate) - [select for diffs]
Thu May 3 14:12:23 2012 UTC (23 months, 2 weeks ago) by sboukarev
Branch: MAIN
Changes since 1.309: +52 -37 lines
Diff to previous 1.309 , to selected 1.39
* swank-sbcl.lisp (definition-source-for-emacs): Prefer :file over
:buffer, because the buffer can be killed in the mean time and the
silly "No buffer named x.lisp" would be displayed.

Revision 1.309 - (view) (annotate) - [select for diffs]
Fri Apr 27 14:57:59 2012 UTC (23 months, 2 weeks ago) by nsiivola
Branch: MAIN
Changes since 1.308: +2 -2 lines
Diff to previous 1.308 , to selected 1.39
sbcl: fix lisp-source-location

Revision 1.308 - (view) (annotate) - [select for diffs]
Fri Apr 20 12:45:28 2012 UTC (23 months, 3 weeks ago) by nsiivola
Branch: MAIN
Changes since 1.307: +22 -3 lines
Diff to previous 1.307 , to selected 1.39
sbcl: workaround for auto-flush thread deadlocks, take II

  Occasionally auto-flush thread could deadlock with a thread doing
  compilation:

    T1: grabs world-lock
    T2: decides to flush, grabs stream lock
    T1: needs to do output (compiler note, etc), waits on the stream lock
    T2: needs the world-lock for a while (PCL dispatch machinery setup, etc)

    *boink*

  This is an SBCL issue, no mistake about it -- but sorting out the world-lock
  handling is going to take a while, and sticking a deadline around the
  FINISH-OUTPUT call avoids the issue.

  In this iteration the change is limited to swank-sbcl.lisp, making it
  hopefully non-intrusive enough to stay in.

Revision 1.307 - (view) (annotate) - [select for diffs]
Fri Apr 20 12:43:04 2012 UTC (23 months, 3 weeks ago) by nsiivola
Branch: MAIN
Changes since 1.306: +15 -10 lines
Diff to previous 1.306 , to selected 1.39
sbcl: SWANK-VALUE to make it nicer to refer to values of SWANK symbols

Revision 1.306 - (view) (annotate) - [select for diffs]
Sat Apr 7 10:23:39 2012 UTC (2 years ago) by heller
Branch: MAIN
Changes since 1.305: +57 -38 lines
Diff to previous 1.305 , to selected 1.39
Even more long line breaking.

Revision 1.305 - (view) (annotate) - [select for diffs]
Fri Mar 30 14:54:46 2012 UTC (2 years ago) by nsiivola
Branch: MAIN
Changes since 1.304: +4 -2 lines
Diff to previous 1.304 , to selected 1.39
sbcl: fix bug introduced two commits ago

  SWANK package not there yet when swank-sbcl.lisp is loaded.

Revision 1.304 - (view) (annotate) - [select for diffs]
Fri Mar 30 09:45:00 2012 UTC (2 years ago) by nsiivola
Branch: MAIN
Changes since 1.303: +7 -1 lines
Diff to previous 1.303 , to selected 1.39
sbcl: make STEP friendlier when SBCL gives the source form for the initial form

  ...right now it doesn't but next week it will -- and then the initial
  form shown would be useless.

Revision 1.303 - (view) (annotate) - [select for diffs]
Mon Mar 26 15:10:19 2012 UTC (2 years ago) by heller
Branch: MAIN
Changes since 1.302: +3 -2 lines
Diff to previous 1.302 , to selected 1.39
* swank-sbcl.lisp (swank-compile-string): Use utf8.

Revision 1.302 - (view) (annotate) - [select for diffs]
Tue Mar 6 21:42:10 2012 UTC (2 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.301: +7 -4 lines
Diff to previous 1.301 , to selected 1.39
Fix SBCL backend for Windows.

* swank-sbcl.lisp (fd-stream-input-buffer-empty-p): Restore it.

Revision 1.301 - (view) (annotate) - [select for diffs]
Fri Jan 6 09:02:43 2012 UTC (2 years, 3 months ago) by heller
Branch: MAIN
Changes since 1.300: +20 -0 lines
Diff to previous 1.300 , to selected 1.39
Add a "sentinel thread" to protect access to global lists.

* swank.lisp (start-sentinel, sentinel, send-to-sentinel)
(sentinel-serve, sentinel-stop-server, sentinel-maybe-exit): New.
(make-connection, close-connection, setup-server, stop-server):
Use the sentinel.
(close-connection%): Factored out.
* swank-backend.lisp (register-thread, find-registered): New.
* swank-allegro.lisp: Implement it.
* swank-ccl.lisp:
* swank-lispworks.lisp:
* swank-sbcl.lisp:

Revision 1.300 - (view) (annotate) - [select for diffs]
Wed Dec 21 16:19:52 2011 UTC (2 years, 3 months ago) by sboukarev
Branch: MAIN
Changes since 1.299: +1 -0 lines
Diff to previous 1.299 , to selected 1.39
* swank-sbcl.lisp (input-ready-p): Don't use
sb-impl::fd-stream-fd-type if it's not present.

Revision 1.299 - (view) (annotate) - [select for diffs]
Sat Dec 3 19:47:45 2011 UTC (2 years, 4 months ago) by nsiivola
Branch: MAIN
Changes since 1.298: +1 -1 lines
Diff to previous 1.298 , to selected 1.39
sbcl: fix INPUT-READY-P

  What a moronic bug. *blush*

Revision 1.298 - (view) (annotate) - [select for diffs]
Sat Dec 3 15:31:08 2011 UTC (2 years, 4 months ago) by nsiivola
Branch: MAIN
Changes since 1.297: +17 -73 lines
Diff to previous 1.297 , to selected 1.39
sbcl: another run at WAIT-FOR-INPUT

  This is still disturbingly under-the-hood stuff, but at least we're using
  fewer internal symbols: drop poll() based solution, use SYSREAD-MAY-BLOCK-P
  in INPUT-READ-P instead.

Revision 1.297 - (view) (annotate) - [select for diffs]
Fri Dec 2 20:24:03 2011 UTC (2 years, 4 months ago) by sboukarev
Branch: MAIN
Changes since 1.296: +3 -2 lines
Diff to previous 1.296 , to selected 1.39
* swank-sbcl.lisp (wait-for-input): Define only if
#+os-provides-poll or #+win32.

Revision 1.296 - (view) (annotate) - [select for diffs]
Fri Dec 2 19:52:15 2011 UTC (2 years, 4 months ago) by sboukarev
Branch: MAIN
Changes since 1.295: +10 -10 lines
Diff to previous 1.295 , to selected 1.39
* swank-sbcl.lisp (wait-for-input): Use poll only on #+os-provides-poll.

Revision 1.295 - (view) (annotate) - [select for diffs]
Thu Dec 1 22:34:41 2011 UTC (2 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.294: +70 -15 lines
Diff to previous 1.294 , to selected 1.39
* swank-sbcl.lisp (wait-for-input): Call poll(2).
* swank-backend.lisp (wait-for-streams, wait-for-one-stream):
Deleted. Wouldn't work on binary streams.

Revision 1.294 - (view) (annotate) - [select for diffs]
Sun Nov 27 21:47:15 2011 UTC (2 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.293: +2 -2 lines
Diff to previous 1.293 , to selected 1.39
* swank.lisp (create-server): Add a :backlog argument.
(setup-server): Pass it along.

* swank-backend.lisp (create-socket): Backlog argument.
* swank-abcl.lisp: Implement it.
* swank-allegro.lisp:
* swank-ccl.lisp:
* swank-clisp.lisp:
* swank-cmucl.lisp:
* swank-corman.lisp:
* swank-ecl.lisp:
* swank-lispworks.lisp:
* swank-sbcl.lisp:
* swank-scl.lisp:

Revision 1.293 - (view) (annotate) - [select for diffs]
Sat Nov 19 16:35:58 2011 UTC (2 years, 4 months ago) by nsiivola
Branch: MAIN
Changes since 1.292: +16 -11 lines
Diff to previous 1.292 , to selected 1.39
sbcl: restart-frame can restart anon and lexical functions now

  ...at least when the stars and entry points align.

Revision 1.292 - (view) (annotate) - [select for diffs]
Sun Nov 6 17:06:09 2011 UTC (2 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.291: +3 -5 lines
Diff to previous 1.291 , to selected 1.39
New wire format.

Switch from character streams to binary streams.  Counting
characters was error prone because some Lisps use utf-16
internally and so READ-SEQUENCE can't be used easily.

The new format looks so:

  | byte0 | 3 bytes length |
  |    ... payload ...     |

The playload is an s-exp encoded as UTF-8 string.  byte0 is
currently always 0; other values are reserved for future use.

* swank-rpc.lisp (write-message): Use new format.
(write-header, parse-header, asciify, encoding-error): New.

* swank.lisp (accept-connections): Create a binary stream.
(input-available-p): Can't read-char-no-hang on binary streams.

* slime.el (slime-net-connect): Use binary as coding system.
(slime-net-send, slime-net-read, slime-net-decode-length)
(slime-net-encode-length, slime-net-have-input-p): Use new format.
(slime-unibyte-string, slime-handle-net-read-error): New.
(featurep): Require 'un-define for XEmacs.
([test] break): Longer timeouts.

* swank-sbcl.lisp (input-ready-p): Use sb-sys:wait-until-fd-usable.

Revision 1.291 - (view) (annotate) - [select for diffs]
Sun Nov 6 17:05:41 2011 UTC (2 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.290: +24 -19 lines
Diff to previous 1.290 , to selected 1.39
* swank-abcl.lisp (accept-connection): Make it so.
* swank-clisp.lisp (accept-connection): Make it so.
* swank-cmucl.lisp (accept-connection): Make it so.
* swank-lispworks.lisp (accept-connection): Make it so.
* swank-sbcl.lisp (accept-connection): Make it so.
* swank-scl.lisp (accept-connection): Make it so.

Revision 1.290 - (view) (annotate) - [select for diffs]
Sun Nov 6 17:05:16 2011 UTC (2 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.289: +8 -0 lines
Diff to previous 1.289 , to selected 1.39
* swank-sbcl.lisp (string-to-utf8, string-to-utf8): Implemented.

Revision 1.289 - (view) (annotate) - [select for diffs]
Thu Sep 1 06:29:30 2011 UTC (2 years, 7 months ago) by sboukarev
Branch: MAIN
CVS Tags: FAIRLY-STABLE, SLIME-2-3, byte-stream
Changes since 1.288: +1 -1 lines
Diff to previous 1.288 , to selected 1.39
* swank-sbcl.lisp (preferred-communication-style): check for
 :sb-thread before :win32, so :spawn is preferred for threaded
 Windows builds.

Revision 1.288 - (view) (annotate) - [select for diffs]
Wed Aug 31 13:18:11 2011 UTC (2 years, 7 months ago) by nsiivola
Branch: MAIN
Changes since 1.287: +5 -1 lines
Diff to previous 1.287 , to selected 1.39
sbcl: support for SBCL < 1.0.42.43

  In theory at least -- :SERVE-EVENTS keyword argument to MAKE-SOCKET-STREAM
  was introduced then, but I don't claim to have extensively tested current
  Slime with SBCLs that old.

Revision 1.287 - (view) (annotate) - [select for diffs]
Tue Aug 9 10:35:00 2011 UTC (2 years, 8 months ago) by nsiivola
Branch: MAIN
Changes since 1.286: +4 -1 lines
Diff to previous 1.286 , to selected 1.39
sbcl: oops, can't intern SWANK*COMMUNICATION-STYLE* when loading the backend

  Hackety hack. :/

Revision 1.286 - (view) (annotate) - [select for diffs]
Tue Aug 9 10:27:25 2011 UTC (2 years, 8 months ago) by nsiivola
Branch: MAIN
Changes since 1.285: +2 -1 lines
Diff to previous 1.285 , to selected 1.39
sbcl: use explicit :SERVE-EVENTS T with sockets when necessary

  It won't be the default for much longer.

Revision 1.285 - (view) (annotate) - [select for diffs]
Sun Jul 3 18:15:38 2011 UTC (2 years, 9 months ago) by nsiivola
Branch: MAIN
Changes since 1.284: +49 -7 lines
Diff to previous 1.284 , to selected 1.39
sbcl: teach the SBCL backend about &MORE vars

  Only makes a difference on bleeding-edge SBCL.

Revision 1.284 - (view) (annotate) - [select for diffs]
Thu Jun 16 08:28:45 2011 UTC (2 years, 10 months ago) by nsiivola
Branch: MAIN
Changes since 1.283: +9 -2 lines
Diff to previous 1.283 , to selected 1.39
sbcl: compiling from buffer tmpfile directory can be a symlink

 ...so need to PROBE-FILE to make sure the pathnames match before
 comparison.

Revision 1.283 - (view) (annotate) - [select for diffs]
Tue Jun 14 15:34:18 2011 UTC (2 years, 10 months ago) by nsiivola
Branch: MAIN
Changes since 1.282: +7 -0 lines
Diff to previous 1.282 , to selected 1.39
sbcl: workaround for auto-flush thread deadlocks

 Occasionally auto-flush thread could deadlock with a thread doing
 compilation:

   T1: grabs world-lock
   T2: decides to flush, grabs stream lock
   T1: needs to do output (compiler note, etc), waits on the stream lock
   T2: needs the world-lock for a while (PCL dispatch machinery setup, etc)

   KABOOM.

 This is an SBCL issue, no mistake about it -- but sorting out
 the world-lock handling is going to take a while, and sticking
 a deadline around the FINISH-OUTPUT call avoids the issue.

Revision 1.282 - (view) (annotate) - [select for diffs]
Tue Jun 14 14:00:37 2011 UTC (2 years, 10 months ago) by nsiivola
Branch: MAIN
Changes since 1.281: +13 -8 lines
Diff to previous 1.281 , to selected 1.39
sbcl: get compilation notes for recursive entry to compilation right

  When C-c C-c'ing eg. an (EVAL-WHEN ... (REQUIRE :FOO)) form,
  previously we tried to find the position for the note from
  the tempfile.

Revision 1.281 - (view) (annotate) - [select for diffs]
Thu Jun 9 17:48:47 2011 UTC (2 years, 10 months ago) by nsiivola
Branch: MAIN
Changes since 1.280: +3 -3 lines
Diff to previous 1.280 , to selected 1.39
fix swank-sbcl.lisp execv -- sb-posix:syscall-error broke backwards compatibility

Revision 1.280 - (view) (annotate) - [select for diffs]
Mon May 9 10:48:10 2011 UTC (2 years, 11 months ago) by nsiivola
Branch: MAIN
CVS Tags: SLIME-2-2
Changes since 1.279: +4 -2 lines
Diff to previous 1.279 , to selected 1.39
sbcl: use WITH-COMPILATION-UNIT :SOURCE-NAMESTRING

  Allows recording the right source-file for C-c C-c,
  which in turn allows SBCL's redefinition muffling
  to work right.

  This in turn makes it sensible to turn

    *trap-load-time-warnings*

  on by default.

Revision 1.279 - (view) (annotate) - [select for diffs]
Tue Oct 19 11:59:25 2010 UTC (3 years, 5 months ago) by sboukarev
Branch: MAIN
Changes since 1.278: +2 -1 lines
Diff to previous 1.278 , to selected 1.39
* swank-sbcl.lisp (deinit-log-output): Use the right symbol for
*LOG-OUTPUT*, swank package isn't available at the time
swank-backend is compiled.

Revision 1.278 - (view) (annotate) - [select for diffs]
Thu Oct 7 17:15:07 2010 UTC (3 years, 6 months ago) by nsiivola
Branch: MAIN
Changes since 1.277: +6 -0 lines
Diff to previous 1.277 , to selected 1.39
SBCL: null *log-output* when saving core

	Hanging on to a *log-output* from a previous image is bad on SBCL
	at least: it is initialized to an FD-STREAM, which cannot be
	reused from one image to another.

	Deal with this by using sb-ext:*save-hooks* to clear the
        stream.

Revision 1.277 - (view) (annotate) - [select for diffs]
Wed Sep 1 13:18:55 2010 UTC (3 years, 7 months ago) by sboukarev
Branch: MAIN
Changes since 1.276: +3 -2 lines
Diff to previous 1.276 , to selected 1.39
* swank-sbcl.lisp (background-save-image): add #-win32, because it
uses symbols not present on win32.
Reported by Holly Styles.

Revision 1.276 - (view) (annotate) - [select for diffs]
Tue Aug 31 10:33:15 2010 UTC (3 years, 7 months ago) by nsiivola
Branch: MAIN
Changes since 1.275: +12 -3 lines
Diff to previous 1.275 , to selected 1.39
sbcl: Better VOP descriptions for XREF buffers

Revision 1.275 - (view) (annotate) - [select for diffs]
Wed Aug 25 08:20:09 2010 UTC (3 years, 7 months ago) by sboukarev
Branch: MAIN
Changes since 1.274: +11 -3 lines
Diff to previous 1.274 , to selected 1.39
* swank-sbcl.lisp (exec-image): Use (car sb-ext:*posix-argv*) if
SBCL doesn't have sb-ext:*runtime-pathname*.
Reported by Vinay.

Revision 1.274 - (view) (annotate) - [select for diffs]
Sat Aug 21 06:39:59 2010 UTC (3 years, 7 months ago) by heller
Branch: MAIN
Changes since 1.273: +91 -11 lines
Diff to previous 1.273 , to selected 1.39
Snapshot restore support for SBCL.

* swank-backend.lisp (background-save-image): New.
* swank-sbcl.lisp (command-line-args, dup, sys-execv, exec-image)
(make-fd-stream, background-save-image): New.

Add support to save snapshots in backround.

* swank-snapshot.lisp (background-save-snapshot): New.
(resurrect): Initialize repl streams.
* slime-snapshot.el (slime-snapshot): With prefix-arg perform
saving in background.  Also ask before overwriting existing files.

Revision 1.273 - (view) (annotate) - [select for diffs]
Thu Aug 12 12:09:45 2010 UTC (3 years, 8 months ago) by sboukarev
Branch: MAIN
Changes since 1.272: +3 -4 lines
Diff to previous 1.272 , to selected 1.39
* swank-sbcl.lisp (save-image): Fix save-lisp-and-die invocation.
Based on a patch by Anton Kovalenko.

Revision 1.272 - (view) (annotate) - [select for diffs]
Wed Jul 21 13:40:32 2010 UTC (3 years, 8 months ago) by sboukarev
Branch: MAIN
Changes since 1.271: +1 -2 lines
Diff to previous 1.271 , to selected 1.39
* swank-sbcl.lisp (quit-lisp): Use sb-thread:terminate-thread
instead of sb-ext:quit :recklessly-p t. This way
sb-ext:*exit-hooks* will be run.
Reported by Lorenz Mösenlechner.

Revision 1.271 - (view) (annotate) - [select for diffs]
Thu Apr 22 05:47:35 2010 UTC (3 years, 11 months ago) by sboukarev
Branch: MAIN
Changes since 1.270: +5 -3 lines
Diff to previous 1.270 , to selected 1.39
	* swank-backend.lisp (with-symbol): Test for package before doing
	find-symbol.
	* swank-sbcl.lisp(Multiprocessing): use with-symbol.
	(emacs-inspect t): Remove newlines from text returned by
	sb-impl::inspected-parts, otherwise there will be ".." inserted by
	the printer due to (*print-lines* 1).

Revision 1.270 - (view) (annotate) - [select for diffs]
Tue Apr 20 09:48:19 2010 UTC (3 years, 11 months ago) by trittweiler
Branch: MAIN
Changes since 1.269: +18 -13 lines
Diff to previous 1.269 , to selected 1.39
	* swank-sbcl.lisp (condition-timed-wait): New helper. Use
	WITH-DEADLINE rather than WITH-TIMEOUT because the latter conses a
	new timer, and this function is called _a lot_.
	(receive-if): Use it.

Revision 1.269 - (view) (annotate) - [select for diffs]
Tue Mar 2 14:36:48 2010 UTC (4 years, 1 month ago) by sboukarev
Branch: MAIN
Changes since 1.268: +6 -0 lines
Diff to previous 1.268 , to selected 1.39
* swank-sbcl.lisp (definition-source-for-emacs): Don't error when source
location doesn't contain form position, point emacs to the beginning of a source file
and if it's a function provide a snippet "(defun <name> ".

Revision 1.268 - (view) (annotate) - [select for diffs]
Tue Mar 2 12:38:07 2010 UTC (4 years, 1 month ago) by sboukarev
Branch: MAIN
Changes since 1.267: +34 -24 lines
Diff to previous 1.267 , to selected 1.39
* slime.el (slime-compile-and-load-file): Accept C-u arguments for
compilation policy the same way as slime-compile-defun.

* swank.lisp (compile-file-for-emacs): Take an additional policy argument.
* swank-backend.lisp (swank-compile-file): Ditto.

* swank-sbcl.lisp (compiler-policy, (setf compiler-policy)):
rename from get/set-compiler-policy.
(with-compiler-policy): New macro.
(swank-compile-file): Use with-compiler-policy.
(swank-compile-string): Ditto.

Revision 1.267 - (view) (annotate) - [select for diffs]
Mon Feb 22 21:38:46 2010 UTC (4 years, 1 month ago) by trittweiler
Branch: MAIN
Changes since 1.266: +5 -17 lines
Diff to previous 1.266 , to selected 1.39
	* swank-backend.lisp (converting-errors-to-error-location): Moved
	here from swank-sbcl.lisp so other backends can make use of it, too.

	* swank-sbcl.lisp: The above macro was called slightly
	differently, so update uses accordingly.

Revision 1.266 - (view) (annotate) - [select for diffs]
Tue Jan 5 21:20:38 2010 UTC (4 years, 3 months ago) by trittweiler
Branch: MAIN
Changes since 1.265: +6 -2 lines
Diff to previous 1.265 , to selected 1.39
	* swank-sbcl.lisp (compiler-note-location): Add missing return-from.

Revision 1.265 - (view) (annotate) - [select for diffs]
Sun Jan 3 15:58:29 2010 UTC (4 years, 3 months ago) by sboukarev
Branch: MAIN
Changes since 1.264: +13 -0 lines
Diff to previous 1.264 , to selected 1.39
* contrib/slime-repl.el (sldb-insert-frame-call-to-repl): New function
for inserting a call to a frame into the REPL. Bound to C-y in SLDB.

* swank-backend.lisp (frame-call): New function.
Returns a string representing a call to the entry point of a frame.
* swank-ccl.lisp (frame-call): Implementation of the above.
* swank-sbcl.lisp (frame-call): Ditto.

Revision 1.264 - (view) (annotate) - [select for diffs]
Sun Jan 3 10:05:05 2010 UTC (4 years, 3 months ago) by trittweiler
Branch: MAIN
Changes since 1.263: +13 -16 lines
Diff to previous 1.263 , to selected 1.39
        * slime.el (compile-defun [test]): Also test proper notification
        after reader-error. Additionally: bind font-lock-verbose to nil to
        prevent annoying font-lock messages during the test.

        * swank-sbcl.lisp (signal-compiler-condition): Make sure
        READER-ERROR comes before ERROR in typecase.
        (swank-compile-file): Remove handling FATAL-COMPILER-HANDLER
        because a) this handling prevents sbcl from printing the
        diagnostics to the repl, and b) sbcl itself should handle this and
        translate it into proper return value for compile-file.

Revision 1.263 - (view) (annotate) - [select for diffs]
Sat Dec 19 14:56:06 2009 UTC (4 years, 3 months ago) by sboukarev
Branch: MAIN
Changes since 1.262: +11 -11 lines
Diff to previous 1.262 , to selected 1.39
* contrib/swank-asdf.lisp (asdf:operation-done-p): ASDF included with some
implementations doesn't have AROUND method combination, so guard
against its usage. This will prevent swank:reload-system from working,
but it will let load swank-asdf.
Reported by Mark Evenson.

* swank-backend.lisp (defpackage): export with-symbol and
replace its fully qualified usage everywhere.

Revision 1.262 - (view) (annotate) - [select for diffs]
Wed Dec 16 22:02:20 2009 UTC (4 years, 4 months ago) by trittweiler
Branch: MAIN
Changes since 1.261: +3 -5 lines
Diff to previous 1.261 , to selected 1.39
simplify newly introduced categorize-definition-source;
gosh what was I thinking?

Revision 1.261 - (view) (annotate) - [select for diffs]
Wed Dec 16 21:59:49 2009 UTC (4 years, 4 months ago) by trittweiler
Branch: MAIN
Changes since 1.260: +57 -49 lines
Diff to previous 1.260 , to selected 1.39
	* swank-sbcl.org (categorize-definition-source): New.
	(definition-source-for-emacs): Use it. Slightly
	refactored. Renamed from `make-definition-source-location'.
	(find-definitions, find-source-location)
	(source-location-for-xref-data, function-dspec): Updated
	accordingly.
	(source-file-position): Scratch last argument, not needed anymore.

Revision 1.260 - (view) (annotate) - [select for diffs]
Tue Dec 15 21:56:55 2009 UTC (4 years, 4 months ago) by trittweiler
Branch: MAIN
Changes since 1.259: +11 -13 lines
Diff to previous 1.259 , to selected 1.39
	* swank.lisp (collect-notes): Establish new abort restart ("Abort
	Compilation"); if an error is signaled in EVAL-WHEN, or during
	macroexpansion -- assuming the backend DTRT --, invoking this
	restart will result in the normal compilation failure behaviour,
	including correct reporting of the offending toplevel form.

	* swank-sbcl.lisp (handle-notification-condition): Use
	`real-condition' here.
	(handle-file-compiler-termination): As a result, not needed anymore.
	(call-with-compilation-hooks): Also signal information about
	normal errors.

Revision 1.259 - (view) (annotate) - [select for diffs]
Thu Dec 10 23:07:38 2009 UTC (4 years, 4 months ago) by trittweiler
Branch: MAIN
Changes since 1.258: +8 -6 lines
Diff to previous 1.258 , to selected 1.39
	* swank-sbcl.lisp (call-with-debugger-hook): Oops, removed the
	binding for *DEBUGGER-HOOK*. Fix that.
	(make-invoke-debugger-hook): Do nothing if hook is NIL.

Revision 1.258 - (view) (annotate) - [select for diffs]
Thu Dec 10 22:21:09 2009 UTC (4 years, 4 months ago) by trittweiler
Branch: MAIN
Changes since 1.257: +35 -47 lines
Diff to previous 1.257 , to selected 1.39
	* swank-backend.lisp (*debug-swank-backend*): New variable. If
	true, backends should not catch internal errors (e.g. during
	definition finding), and should not perform backtrace magic.
	(make-error-location): New helper.
	(find-definitions [interface]): Default to error location.

	* swank-sbcl.lisp (converting-errors-to-location): New helper
	macro. Regards new *DEBUG-SWANK-BACKEND*.
	(find-definitions [implementation]): Use it.
	(find-source-location [implementation]): Ditto.
	(functiond-spec): Ditto.
	(frame-source-location [implementation]): Ditto.
	(*debug-definition-finding*): Removed.
	(make-source-location-specification): Removed.
	(safe-function-source-location): Removed.
	(safe-source-location-for-emacs): Removed. Not needed anymore.

	(call-with-debugging-environment): Do not perform stack hinting
	depending on *DEBUG-SWANK-BACKEND*.

Revision 1.257 - (view) (annotate) - [select for diffs]
Thu Dec 10 20:51:33 2009 UTC (4 years, 4 months ago) by trittweiler
Branch: MAIN
Changes since 1.256: +20 -11 lines
Diff to previous 1.256 , to selected 1.39
	* swank-sbcl.lisp (set-break-hook): New.
	(call-with-break-hook): New, too. Both extracted from elsewhere.
	(install-debugger-globally, call-with-debugger-hook): Use them.
	(make-invoke-debugger-hook): Adapted not to call *debugger-hook*
	on its own; it should rather decline because *debugger-hook* is
	tried after *invoke-debugger-hook* anyway. Previously, a
	custom *debugger-hook* (which declines itself) would have been
	executed twice.

Revision 1.256 - (view) (annotate) - [select for diffs]
Wed Dec 2 17:34:37 2009 UTC (4 years, 4 months ago) by sboukarev
Branch: MAIN
Changes since 1.255: +5 -4 lines
Diff to previous 1.255 , to selected 1.39
swan-sbcl.lisp(frame-locals): `frame-debug-vars' can return NIL,
so check before using it as a vector.
Patch by Nathan Bird.

Revision 1.255 - (view) (annotate) - [select for diffs]
Sat Nov 21 21:32:57 2009 UTC (4 years, 4 months ago) by trittweiler
Branch: MAIN
Changes since 1.254: +7 -4 lines
Diff to previous 1.254 , to selected 1.39
	* swank-sbcl.lisp (who-specializes): Implement.
	Requires SBCL 1.0.32.

Revision 1.254 - (view) (annotate) - [select for diffs]
Mon Nov 2 09:20:34 2009 UTC (4 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.253: +0 -5 lines
Diff to previous 1.253 , to selected 1.39
* swank.lisp (without-interrupts): Removed. No longer used.
* swank-backend.lisp (call-without-interrupts): Removed.
Update backends accoringly.

Revision 1.253 - (view) (annotate) - [select for diffs]
Mon Oct 19 23:23:45 2009 UTC (4 years, 5 months ago) by sboukarev
Branch: MAIN
Changes since 1.252: +3 -37 lines
Diff to previous 1.252 , to selected 1.39
* swank-sbcl.lisp (thread-description): Remove it and supporting code,
because it didn't really work.

* swank.lisp (with-thread-description): Remove unused macro.

Revision 1.252 - (view) (annotate) - [select for diffs]
Sat Sep 26 23:24:50 2009 UTC (4 years, 6 months ago) by trittweiler
Branch: MAIN
Changes since 1.251: +13 -22 lines
Diff to previous 1.251 , to selected 1.39
	* swank-sbcl.lisp (call-with-debugger-hook): Correctly deal with
	case of HOOK being NIL.
	(make-definition-source-location): Somewhat simplified.
	(string-path-snippet): Removed, not needed anymore.

Revision 1.251 - (view) (annotate) - [select for diffs]
Thu Sep 24 11:30:46 2009 UTC (4 years, 6 months ago) by sboukarev
Branch: MAIN
Changes since 1.250: +1 -0 lines
Diff to previous 1.250 , to selected 1.39
* doc/slime.texi: Fix a typo.
* swank-sbcl.lisp (swank-compile-string): Ignore unused variable
warningsp.

Revision 1.250 - (view) (annotate) - [select for diffs]
Wed Sep 23 11:20:02 2009 UTC (4 years, 6 months ago) by heller
Branch: MAIN
Changes since 1.249: +5 -3 lines
Diff to previous 1.249 , to selected 1.39
* swank-sbcl.lisp (receive-if): Bind *break-on-signals* to
nil before using with-timeout.

Revision 1.249 - (view) (annotate) - [select for diffs]
Tue Aug 11 09:15:03 2009 UTC (4 years, 8 months ago) by trittweiler
Branch: MAIN
Changes since 1.248: +4 -1 lines
Diff to previous 1.248 , to selected 1.39
	* swank-sbcl.lisp (swank-compile-string): Make sure that it
	returns NIL on compilation failure.

Revision 1.248 - (view) (annotate) - [select for diffs]
Mon Aug 10 19:30:22 2009 UTC (4 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.247: +6 -6 lines
Diff to previous 1.247 , to selected 1.39
Separate context info from compiler message text.

* swank-backend.lisp (compiler-condition): Add a new slot
:source-context.  Remove :short-message.
* swank-cmucl.lisp, swank-sbcl.lisp, swank-scl.lisp,
swank-openmcl.lisp, swank-ccl.lisp: Update callers.
* swank.lisp (make-compiler-note): Use source-context slot.
* slime.el (slime-note.source-context): New.
(slime-insert-compilation-log): Use it.
(slime-note.short-message): Deleted.

Revision 1.247 - (view) (annotate) - [select for diffs]
Tue Aug 4 23:54:55 2009 UTC (4 years, 8 months ago) by sboukarev
Branch: MAIN
Changes since 1.246: +1 -0 lines
Diff to previous 1.246 , to selected 1.39
* swank-sbcl.lisp (signal-compiler-condition): read
sb-kernel:redefinition-warning only if it exists.
Some older SBCLs don't have it (particularly included in the
stable Debian).

Revision 1.246 - (view) (annotate) - [select for diffs]
Sun Aug 2 12:57:23 2009 UTC (4 years, 8 months ago) by trittweiler
Branch: MAIN
Changes since 1.245: +4 -1 lines
Diff to previous 1.245 , to selected 1.39
	* swank-backend.lisp (severity [type]): Allow :redefinition.

	* swank-sbcl.lisp (signal-compiler-condition): Tag redefinitions.

	* slime.el (slime-maybe-show-compilation-log): Do not show
	compilation log if each note describes just a redefinition.
	(slime-insert-compilation-log): Insert notes indented by 2
	spaces. Insert some more newlines so the buffer appears more
	structured.
	(slime-show-note-counts): Add :redefinition to ecase.
	(slime-redefinition-note-p): New.
	(slime-severity-label): Was unused. Adapted to be usable.

Revision 1.245 - (view) (annotate) - [select for diffs]
Sun Jul 26 10:18:17 2009 UTC (4 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.244: +4 -0 lines
Diff to previous 1.244 , to selected 1.39
* swank-sbcl.lisp (tempnam): Muffle efficientcy notes.

Revision 1.244 - (view) (annotate) - [select for diffs]
Sun Jun 28 19:14:44 2009 UTC (4 years, 9 months ago) by heller
Branch: MAIN
Changes since 1.243: +12 -6 lines
Diff to previous 1.243 , to selected 1.39
* swank-sbcl.lisp (add-fd-handler): Avoid recursive invocation
of the handler, e.g. when read-sequence blocks.

Revision 1.243 - (view) (annotate) - [select for diffs]
Sun Jun 21 07:22:56 2009 UTC (4 years, 9 months ago) by heller
Branch: MAIN
Changes since 1.242: +1 -1 lines
Diff to previous 1.242 , to selected 1.39
* swank-backend.lisp (frame-source-location): Renamed from
frame-source-location-for-emacs.  Update callers accordingly.

Revision 1.242 - (view) (annotate) - [select for diffs]
Sun Jun 14 17:07:03 2009 UTC (4 years, 10 months ago) by heller
Branch: MAIN
Changes since 1.241: +80 -29 lines
Diff to previous 1.241 , to selected 1.39
Some workarounds for SBCL on Windows.

* swank-sbcl.lisp (input-available-p): New function.
(wait-for-input): Use it.
([win32] handle-listen, has-buffered-input-p): New.
(temp-file-name, tempnam): Plain tmpnam(3) is next to useless on
Windows use tempnam(3) instead.

Revision 1.241 - (view) (annotate) - [select for diffs]
Sat May 9 19:26:00 2009 UTC (4 years, 11 months ago) by trittweiler
Branch: MAIN
Changes since 1.240: +5 -8 lines
Diff to previous 1.240 , to selected 1.39
	* swank-source-file-cache.lisp (read-snippet-from-string): New.

	* swank-sbcl.lisp (source-hint-snippet): Use it.
	(emacs-buffer-source-location): Use it, too.
	(string-path-snippet): Ditto. Additionally: Make sure the returned
	string is truncated by *SOURCE-SNIPPET-SIZE*.

Revision 1.240 - (view) (annotate) - [select for diffs]
Wed Apr 29 22:29:18 2009 UTC (4 years, 11 months ago) by trittweiler
Branch: MAIN
Changes since 1.239: +0 -3 lines
Diff to previous 1.239 , to selected 1.39
Fix thinko. DOCUMENTATION does not support :CLASS.

Revision 1.239 - (view) (annotate) - [select for diffs]
Wed Apr 29 22:21:31 2009 UTC (4 years, 11 months ago) by trittweiler
Branch: MAIN
Changes since 1.238: +3 -0 lines
Diff to previous 1.238 , to selected 1.39
	* swank-backend.lisp ([default] declaration-arglist): Add
	arglist of DECLARATION declaration.

	* swank-openmcl.lisp ([eql 'optimize] declaration-arglist):
	Implement it for CCL.
	(describe-symbol-for-emacs): Add :CLASS and :TYPE.
	(describe-definition): Add :TYPE.

	* swank-sbcl.lisp (describe-symbol-for-emacs): Add :CLASS.

	Adapted from patch by Stas Boukarev.

Revision 1.238 - (view) (annotate) - [select for diffs]
Fri Apr 3 21:13:00 2009 UTC (5 years ago) by trittweiler
Branch: MAIN
Changes since 1.237: +10 -5 lines
Diff to previous 1.237 , to selected 1.39
	* swank-sbcl.lisp (swank-compile-file): Return T for the FAILURE-P
	return value in case of a FATA-COMPILER-ERROR.

Revision 1.237 - (view) (annotate) - [select for diffs]
Sat Mar 7 19:08:03 2009 UTC (5 years, 1 month ago) by trittweiler
Branch: MAIN
Changes since 1.236: +6 -1 lines
Diff to previous 1.236 , to selected 1.39
	* slime.el (slime-choose-overlay-region): Special case :read-error
	notes regardless of position kind.

	* swank-sbcl.lisp (signal-compiler-condition): Return :READ-ERROR
	as severity for reader-errors.
	(compiler-note-location): Fix off-by-one when compiling from
	buffer.

Revision 1.236 - (view) (annotate) - [select for diffs]
Sat Mar 7 10:14:42 2009 UTC (5 years, 1 month ago) by trittweiler
Branch: MAIN
Changes since 1.235: +24 -11 lines
Diff to previous 1.235 , to selected 1.39
	* swank-sbcl.lisp (compiling-from-buffer-p),
	(compiling-from-file-p)
	(compiling-from-generated-code-p): New helpers; extracted from
	LOCATE-COMPILER-NOTE.
	(locate-compiler-note): Use them.
	(compiler-note-location): Use them, too, to handle reader-errors
	when compiling from file. This completes 2009-02-27.

	Reported by Christian Lynbech.

Revision 1.235 - (view) (annotate) - [select for diffs]
Thu Feb 26 23:41:41 2009 UTC (5 years, 1 month ago) by trittweiler
Branch: MAIN
Changes since 1.234: +16 -8 lines
Diff to previous 1.234 , to selected 1.39
	C-c C-c on (defun foo () ,bar) did not result in a compiler note
	overlay on SBCL.

	* swank-sbcl.lisp (compiler-note-location): Make it take a
	condition; if the condition is a READER-ERROR, the passed
	compiler-error-context is very likely NIL---we have not proceeded
	beyond reading, so we aren't within the compiler yet. In that
	case, we use the stream position of the stream behind the
	READER-ERROR instead.

Revision 1.234 - (view) (annotate) - [select for diffs]
Sat Feb 7 13:19:50 2009 UTC (5 years, 2 months ago) by trittweiler
Branch: MAIN
Changes since 1.233: +16 -4 lines
Diff to previous 1.233 , to selected 1.39
	In Xref, list IR1-conversion functions with :DEF-IR1-TRANSLATOR as
	prefix rather than DEFUN. (Test case: M-. on FUNCTION.)

	* swank-sbcl.lisp (definition-specifier): New function.
	(make-dspec): New function. Splitted from
	MAKE-SOURCE-LOCATION-SPECIFICATION.

Revision 1.233 - (view) (annotate) - [select for diffs]
Tue Jan 27 14:56:14 2009 UTC (5 years, 2 months ago) by trittweiler
Branch: MAIN
Changes since 1.232: +14 -27 lines
Diff to previous 1.232 , to selected 1.39
	* swank-backend.lisp (with-symbol): New function, to be used with #+.

	* swank-sbcl.lisp: Use WITH-SYMBOL and get rid of SBCL-WITH-SYMBOL.

	* swank-openmcl.lisp (macroexpand-all): Implement it.

	Patch by Stas Boukarev.

Revision 1.232 - (view) (annotate) - [select for diffs]
Sat Jan 10 12:25:16 2009 UTC (5 years, 3 months ago) by heller
Branch: MAIN
Changes since 1.231: +6 -3 lines
Diff to previous 1.231 , to selected 1.39
* swank-backend.lisp (swank-compile-file): Take output-file as
additional argument.  Update backends accordingly.

* swank.lisp (*fasl-directory*): New variable.
(fasl-pathname): New function.
(compile-file-for-emacs): Use it.

Revision 1.231 - (view) (annotate) - [select for diffs]
Thu Jan 8 10:33:44 2009 UTC (5 years, 3 months ago) by heller
Branch: MAIN
Changes since 1.230: +8 -8 lines
Diff to previous 1.230 , to selected 1.39
* swank-backend.lisp (swank-compile-string): Pass the
buffer-file-name to Lisp, not only the directory.
Update callers accordingly

Revision 1.230 - (view) (annotate) - [select for diffs]
Mon Jan 5 11:19:09 2009 UTC (5 years, 3 months ago) by trittweiler
Branch: MAIN
Changes since 1.229: +5 -0 lines
Diff to previous 1.229 , to selected 1.39
	* swank-sbcl.lisp (function-arglist):
	SB-INTROSPECT:FUNCTION-ARGLIST is deprecated in bleeding edge sbcl.

Revision 1.229 - (view) (annotate) - [select for diffs]
Fri Jan 2 17:07:00 2009 UTC (5 years, 3 months ago) by trittweiler
Branch: MAIN
Changes since 1.228: +6 -0 lines
Diff to previous 1.228 , to selected 1.39
	Arglists of user-defined types are now displayed by slime-autodoc
	on SBCL.

	  (deftype foo (x y) `(cons ,x ,y))
	  (declare (type (foo |

	* swank-sbcl.lisp ([method] type-specifier-arglist): Make use of
	recently introduced SB-INTROSPECT:DEFTYPE-LAMBDA-LIST.

Revision 1.228 - (view) (annotate) - [select for diffs]
Tue Dec 30 18:57:54 2008 UTC (5 years, 3 months ago) by trittweiler
Branch: MAIN
Changes since 1.227: +17 -11 lines
Diff to previous 1.227 , to selected 1.39
	As of now, `C-u C-c C-c' compiled a function with maximum debug
	settings (SBCL only.)

	Now, `M-- C-c C-c' will compile a function with maximum _speed_
	settings (still SBCL only) --- useful to elicit compiler notes.

	* slime.el (slime-compilation-debug-level): Renamed to
	`slime-compilation-policy'.
	(slime-normalize-optimization-level): Renamed to
	`slime-compute-policy'.

	* swank.lisp (compile-string-for-emacs): Takes a policy now.
	(compile-multiple-strings-for-emacs): Ditto.

	* swank-backend.lisp (swank-compile-string): Change :DEBUG key arg
	to :POLICY.

	* swank-scl.lisp, swank-openmcl.lisp, swank-lispworks.lisp
	* swank-ecl.lisp, swank-corman.lisp, swank-cmucl.lisp,
	* swank-clisp.lisp, swank-allegro.lisp, swank-sbcl.lisp:

	Changed accordingly.

Revision 1.227 - (view) (annotate) - [select for diffs]
Thu Oct 30 09:28:51 2008 UTC (5 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.226: +10 -1 lines
Diff to previous 1.226 , to selected 1.39
* swank-sbcl.lisp (wait-for-input): Return streams which are at
EOF.

Revision 1.226 - (view) (annotate) - [select for diffs]
Fri Oct 17 21:27:24 2008 UTC (5 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.225: +1 -1 lines
Diff to previous 1.225 , to selected 1.39
* swank-sbcl.lisp (swank-compile-file): Fix typo.

Revision 1.225 - (view) (annotate) - [select for diffs]
Fri Oct 17 21:26:53 2008 UTC (5 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.224: +5 -7 lines
Diff to previous 1.224 , to selected 1.39
* 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.

Revision 1.224 - (view) (annotate) - [select for diffs]
Thu Oct 16 21:15:28 2008 UTC (5 years, 6 months ago) by heller
Branch: MAIN
Changes since 1.223: +9 -8 lines
Diff to previous 1.223 , to selected 1.39
* swank-backend.lisp (swank-compile-file): Return the same
values as COMPILE-FILE.  Update backends accordingly.

Revision 1.223 - (view) (annotate) - [select for diffs]
Sat Oct 4 19:13:41 2008 UTC (5 years, 6 months ago) by heller
Branch: MAIN
Changes since 1.222: +1 -1 lines
Diff to previous 1.222 , to selected 1.39
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.

Revision 1.222 - (view) (annotate) - [select for diffs]
Sat Oct 4 18:20:18 2008 UTC (5 years, 6 months ago) by trittweiler
Branch: MAIN
Changes since 1.221: +3 -1 lines
Diff to previous 1.221 , to selected 1.39
* 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.

Revision 1.221 - (view) (annotate) - [select for diffs]
Mon Sep 22 17:49:53 2008 UTC (5 years, 6 months ago) by heller
Branch: MAIN
Changes since 1.220: +33 -1 lines
Diff to previous 1.220 , to selected 1.39
* 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.

Revision 1.220 - (view) (annotate) - [select for diffs]
Wed Sep 17 17:48:08 2008 UTC (5 years, 6 months ago) by trittweiler
Branch: MAIN
Changes since 1.219: +1 -1 lines
Diff to previous 1.219 , to selected 1.39
	* swank-sbcl.lisp (make-definition-source-location): Fix typo
	introduced with crlf-related commit on 2008-09-16.

Revision 1.219 - (view) (annotate) - [select for diffs]
Wed Sep 17 06:19:49 2008 UTC (5 years, 7 months ago) by heller
Branch: MAIN
Changes since 1.218: +11 -13 lines
Diff to previous 1.218 , to selected 1.39
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.

Revision 1.218 - (view) (annotate) - [select for diffs]
Fri Sep 12 12:27:38 2008 UTC (5 years, 7 months ago) by trittweiler
Branch: MAIN
Changes since 1.217: +11 -6 lines
Diff to previous 1.217 , to selected 1.39
	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.

Revision 1.217 - (view) (annotate) - [select for diffs]
Sat Aug 30 15:33:56 2008 UTC (5 years, 7 months ago) by heller
Branch: MAIN
Changes since 1.216: +6 -1 lines
Diff to previous 1.216 , to selected 1.39
* swank-sbcl.lisp (receive-if): Add #+/-linux to avoid yet more
WITH-TIMEOUT related problems.

Revision 1.216 - (view) (annotate) - [select for diffs]
Fri Aug 22 14:28:41 2008 UTC (5 years, 7 months ago) by trittweiler
Branch: MAIN
Changes since 1.215: +9 -3 lines
Diff to previous 1.215 , to selected 1.39
	Compiling a file `let*.lisp' on SBCL via C-c C-k resulted in an
	error, because it parsed the asterisk to a wild pathname. Fix
	that.

	* swank-backend.lisp (definterface parse-emacs-filename): New.
	PARSE-NAMESTRING by default.

	* swank-sbcl.lisp (defimplementation parse-emacs-filename): Use
	SB-EXT:PARSE-NATIVE-NAMESTRING.

	* swank.lisp (compile-file-for-emacs): Use PARSE-EMACS-FILENAME.
	(compile-file-if-needed): Ditto.
	(load-file): Ditto.
	(swank-require): Ditto.

Revision 1.215 - (view) (annotate) - [select for diffs]
Sun Aug 17 08:31:22 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.214: +0 -14 lines
Diff to previous 1.214 , to selected 1.39
* swank-sbcl.lisp (sb-thread::get-foreground): Don't override.
Let SBCL people fix this.

Revision 1.214 - (view) (annotate) - [select for diffs]
Tue Aug 12 17:54:44 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.213: +15 -0 lines
Diff to previous 1.213 , to selected 1.39
Add a dump-image function to the loader.

* swank-loader.lisp (dump-image): New.

* swank-backend.lisp (save-image): New interface.

* swank-cmucl.lisp, swank-clisp.lisp, swank-sbcl.lisp
(save-image): Implemented.

Revision 1.213 - (view) (annotate) - [select for diffs]
Mon Aug 11 17:41:55 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.212: +6 -0 lines
Diff to previous 1.212 , to selected 1.39
Improve interrupt safety for single-threaded lisps.

* slime.el (slime-interrupt): Send a :emacs-interrupt message
together with SIGINT.  SIGINT now means "check for new events"
instead of "invoke the debugger".

* swank-backend.lisp (install-sigint-handler)
(call-with-user-break-handler): New functions.

* swank.lisp (simple-serve-requests,install-fd-handler): Use it.
(read-packet, read-char): New function. Check for interrupts.
(wait-for-event/event-loop): Check for interrupts.

Revision 1.212 - (view) (annotate) - [select for diffs]
Mon Aug 11 07:37:06 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.211: +3 -4 lines
Diff to previous 1.211 , to selected 1.39
* swank.lisp (wait-for-event): Add timeout argument.  This is used
for :fd-handler and :sigio style where we only process events as
long we don't block.
(wait-for-event/event-loop, read-event)
(decode-message, receive-if): Ditto.
(process-events): Renamed from read-from-emacs.
(handle-requests): Renamed from handle-request. Take timeout
argument.  Update callers.
(process-available-input): Deleted.

Revision 1.211 - (view) (annotate) - [select for diffs]
Sat Aug 9 19:57:00 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.210: +13 -0 lines
Diff to previous 1.210 , to selected 1.39
Display the "Use default debugger" restart more prominently.

* swank.lisp (swank-debugger-hook): Bind a user visible restart
to invoke the native debugger.
(*global-debugger*): Make this nil by default.
(sldb-loop): Minor cleanups.
(sldb-break-with-default-debugger): Invoke the native debugger
on top of the slime debugger.

* slime.el (sldb-setup): Always pop to the debugger buffer.
(sldb-activate): Optionally select the window.

* swank-sbcl.lisp (sb-thread::get-foreground): Override this
as the default implementation is unusable for Slime.

* swank-lispworks.lisp (environment-display-notifier): Just
return t.

Revision 1.210 - (view) (annotate) - [select for diffs]
Fri Aug 8 13:43:33 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.209: +0 -31 lines
Diff to previous 1.209 , to selected 1.39
Spawn the auto-flush thread in the front end.
This removes some copy&paste code in various backends.

* swank.lisp (auto-flush-loop): New function.
(open-streams): Use it.
* swank-backend.lisp (make-stream-interactive): Deleted.

Revision 1.209 - (view) (annotate) - [select for diffs]
Wed Aug 6 21:50:37 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.208: +3 -2 lines
Diff to previous 1.208 , to selected 1.39
(receive-if): Fix typo.

Revision 1.208 - (view) (annotate) - [select for diffs]
Wed Aug 6 19:51:39 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.207: +23 -3 lines
Diff to previous 1.207 , to selected 1.39
* swank-sbcl.lisp (short-backtrace): New function.
(thread-description): Use it.

Revision 1.207 - (view) (annotate) - [select for diffs]
Wed Aug 6 19:51:29 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.206: +12 -17 lines
Diff to previous 1.206 , to selected 1.39
Queue interrupts in various places.

* swank-backend.lisp (*pending-slime-interrupts*): New variable.
(check-slime-interrupts): New function.

* swank-lispworks.lisp (receive-if): Use it.

* swank-sbcl.lisp, swank-openmcl.lisp: Ditto.

* swank.lisp (*slime-interrupts-enabled*): New variable.
(with-slime-interrupts, without-slime-interrupts): New macros.
(invoke-or-queue-interrupt): New function.
(interrupt-worker-thread, eval-for-emacs, swank-debugger-hook)
(debug-nth-thread, wait-for-event, read-from-emacs): Use them.

Revision 1.206 - (view) (annotate) - [select for diffs]
Wed Aug 6 09:16:55 2008 UTC (5 years, 8 months ago) by nsiivola
Branch: MAIN
Changes since 1.205: +7 -5 lines
Diff to previous 1.205 , to selected 1.39
No SBCL style-warnings for definitions inside EVAL-WHEN :COMPILE-TOPLEVEL

Revision 1.205 - (view) (annotate) - [select for diffs]
Tue Aug 5 17:38:44 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.204: +14 -25 lines
Diff to previous 1.204 , to selected 1.39
Drop distinction between "recursive" and non-recursive locks.

* swank-backend.lisp (make-recursive-lock)
(call-with-recursive-lock-held): Deleted.  Make the default locks
"recursive" instead.

Revision 1.204 - (view) (annotate) - [select for diffs]
Mon Aug 4 21:38:07 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.203: +2 -4 lines
Diff to previous 1.203 , to selected 1.39
* swank-gray.lisp (slime-output-stream): Undo last change.
Make force-output and finish-output do the same.

Revision 1.203 - (view) (annotate) - [select for diffs]
Mon Aug 4 20:25:38 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.202: +3 -1 lines
Diff to previous 1.202 , to selected 1.39
* swank-gray.lisp (slime-output-stream): Add a slot
"interactive-p" which should be true for streams which are flushed
periodically by the Lisp system.  Update the relevant accordingly.

Revision 1.202 - (view) (annotate) - [select for diffs]
Sun Aug 3 18:23:10 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.201: +12 -0 lines
Diff to previous 1.201 , to selected 1.39
Add some flow-control.

* swank.lisp (make-output-function): Synchronize with Emacs on
every 100th chunk of output.
(wait-for-event,wait-for-event/event-loop,event-match-p): New
functions.  Used to selectively wait for some events and to queue
the other events.
(dispatch-event, read-from-socket-io): Tag non-queueable events
with :call.
(read-from-control-thread, read-from-emacs): Process
:call events only; enqueue the others.

(*log-output*): Don't use synonym-streams here.  Dereference the
symbol until we get at the real stream.
(log-event): Escape non-ascii characters more carefully.

* swank-backend.lisp (receive-if): New function.
Update backends accordingly. (not yet for ABCL and SCL)

* slime.el (slime-dispatch-event): Handle ping event.

Revision 1.201 - (view) (annotate) - [select for diffs]
Tue Jul 29 11:03:25 2008 UTC (5 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.200: +0 -2 lines
Diff to previous 1.200 , to selected 1.39
* swank-sbcl.lisp (add-sigio-handler, add-fd-handler): Be quiet
as a workaround for non-properly initialized *debug-io*.
Patch from Richard M Kreuter.

Revision 1.200 - (view) (annotate) - [select for diffs]
Sat Jul 26 23:05:59 2008 UTC (5 years, 8 months ago) by trittweiler
Branch: MAIN
Changes since 1.199: +11 -7 lines
Diff to previous 1.199 , to selected 1.39
* swank.lisp (swank-compiler): Fix bug when invoking an abort
restart on a failed compilation attempt.

* swank-sbcl.lisp (swank-compile-string): If a compilation attempt
fails, COMPILE-FILE returns NIL which we tried to LOAD. Fix that.

* swank-backend.lisp (swank-compile-string, swank-compile-file):
Document return value.

Revision 1.199 - (view) (annotate) - [select for diffs]
Thu Jul 17 22:19:11 2008 UTC (5 years, 9 months ago) by trittweiler
Branch: MAIN
Changes since 1.198: +2 -2 lines
Diff to previous 1.198 , to selected 1.39
	An explicit numeric value as prefix-arg given to `C-c C-c' will
	now represent the debug level the defun is compiled with;
	`C-u C-c C-c' defaults to maximum debug like before. (Now also
	works for recompilation commands in xref buffers.)

	* slime.el (slime-compilation-debug-level): Renamed from
	`slime-compile-with-maximum-debug'.
	(slime-normalize-optimization-level): New.
	(slime-compile-defun): Adapted accordingly.
	(slime-compile-region): Ditto.
	(slime-recompile-location): Added setting of debug-level.
	(slime-recompile-locations): Ditto.
	(slime-recompile-xref): Now takes debug-level prefix-arg.
	(slime-recompile-all-xrefs): Ditto.

	* swank-sbcl.lisp (defimplementation swank-compile-string):
	Adapted accordingly.

Revision 1.198 - (view) (annotate) - [select for diffs]
Sat Jul 5 11:48:11 2008 UTC (5 years, 9 months ago) by trittweiler
Branch: MAIN
Changes since 1.197: +16 -1 lines
Diff to previous 1.197 , to selected 1.39
	`M-x slime-lisp-threads' will now contain a summary of what's
	currently executed in a thread that was created by Swank.

	* swank-backend.lisp (thread-description, set-thread-description):
	New interface functions to associate strings with threads.
	* swank-sbcl.lisp (thread-description, set-thread-description):
	Implemented.

	* swank.lisp (call-with-thread-description),
	(with-thread-description): New.
	(read-from-emacs): Now temporarily sets the thread-description of
	the current thread to a summary of what's going to be executed by
	the current request.
	(defslimefun list-threads): Changed return value to also contain
	a thread's description.

	* slime.el (slime-list-threads, slime-thread-insert): Adapted to
	new return value of LIST-THREADS.

Revision 1.197 - (view) (annotate) - [select for diffs]
Fri Jul 4 22:04:12 2008 UTC (5 years, 9 months ago) by trittweiler
Branch: MAIN
Changes since 1.196: +12 -2 lines
Diff to previous 1.196 , to selected 1.39
* swank-sbcl.lisp (code-location-source-location),
  (code-location-debug-source-name): Patched for incompatible
  structure change in SBCL 1.0.18.10.

Revision 1.196 - (view) (annotate) - [select for diffs]
Mon May 19 13:12:52 2008 UTC (5 years, 10 months ago) by heller
Branch: MAIN
Changes since 1.195: +16 -4 lines
Diff to previous 1.195 , to selected 1.39
* swank-sbcl.lisp: Don't require asdf.

(swank-compile-string): Add reader-conditionals for
sb-ext::restrict-compiler-policy.

Revision 1.195 - (view) (annotate) - [select for diffs]
Thu Apr 17 14:56:43 2008 UTC (6 years ago) by heller
Branch: MAIN
Changes since 1.194: +7 -2 lines
Diff to previous 1.194 , to selected 1.39
C-c C-c with prefix args now uses the maximal debug level.  (By Zach Beane.)
Only implemented for SBCL.

* slime.el (slime-compile-with-maximum-debug): New variable.
(slime-compile-defun, slime-compile-region): Use it.

* swank.lisp (compile-string-for-emacs): Accept new debug
argument. Update backend accordingly.

Revision 1.194 - (view) (annotate) - [select for diffs]
Wed Mar 26 15:57:37 2008 UTC (6 years ago) by trittweiler
Branch: MAIN
Changes since 1.193: +26 -8 lines
Diff to previous 1.193 , to selected 1.39
	On SBCL,

	  (block outta
	    (let ((*debugger-hook* #'(lambda (c hook)
				       (declare (ignore hook))
				       (return-from outta 42))))
	      (error "FOO")))

	would kist silently skip over the *DEBUGGER-HOOK*, and pop right
	into SLDB to handle the error. Fix that.

	* swank-sbcl (make-invoke-debugger-hook): New function; returns a
	hook for SB-EXT:*INVOKE-DEBUGGER-HOOK* that checks for the
	presence of *DEBUGGER-HOOK*, and calls that if available.
	(install-debugger-globally): Use it.
	(call-with-debugger-hook): Ditto.

	(getpid): Declaim return type explicitly, to make SBCL shut up about
	being unable to optimize %SAP-ALIEN in ENABLE-SIGIO-ON-FD.

	* slime.el (def-slime-test break): Test additionally that BREAK
	turns into SLDB even when *DEBUGGER-HOOK* is locally bound.
	(def-slime-test locally-bound-debugger-hook): New test case; tests
	that a locally-bound *DEBUGGER-HOOK* is adhered, and not skipped.

Revision 1.193 - (view) (annotate) - [select for diffs]
Thu Feb 28 19:44:14 2008 UTC (6 years, 1 month ago) by trittweiler
Branch: MAIN
Changes since 1.192: +26 -0 lines
Diff to previous 1.192 , to selected 1.39
* swank.lisp (find-definition-for-thing): New DEFSLIMEFUN.

* swank-backend (find-source-location): New DEFINTERFACE.

* swank-sbcl (find-source-location): Implement it.

* slime.el (slime-edit-definition-cont): Use `slime-length='.

Revision 1.192 - (view) (annotate) - [select for diffs]
Thu Feb 28 19:37:57 2008 UTC (6 years, 1 month ago) by trittweiler
Branch: MAIN
Changes since 1.191: +8 -6 lines
Diff to previous 1.191 , to selected 1.39
This change has been advertized in the Changelog on 2008-02-21.
But it was in fact never committed.


	Fix regressions in the `find-definition' test case on SBCL:

	M-. on e.g. SWANK::READ-FROM-EMACS would bring the user to

	  (|defun read-from-emacs ...)

	and not

	  |(defun read-from-emacs ...)

	* swank-sbcl.lisp (source-file-position): Don't 1+ the returned
	position; i.e. return a position usable as a CL /file position/
	which start from 0, and not a position usable in Emacs where
	buffer points start from 1. This is important because the return
	value is passed to SWANK-BACKEND::READ-SNIPPET which invokes
	CL:FILE-POSITION on it.
	(make-definition-source-location): Adapted to 1+ the position
	passed to Emacs, to reflect above change.

Revision 1.191 - (view) (annotate) - [select for diffs]
Sat Feb 9 18:47:05 2008 UTC (6 years, 2 months ago) by heller
Branch: MAIN
Changes since 1.190: +14 -21 lines
Diff to previous 1.190 , to selected 1.39
Drop the first return value of emacs-inspect.

* swank.lisp (emacs-inspect): Drop the first return value. It
wasn't used anymore.  Update all methods and callers.

Revision 1.190 - (view) (annotate) - [select for diffs]
Sat Feb 9 18:39:02 2008 UTC (6 years, 2 months ago) by heller
Branch: MAIN
Changes since 1.189: +6 -6 lines
Diff to previous 1.189 , to selected 1.39
Inspector cleanups.

* swank.lisp (emacs-inspect): Renamed from inspect-for-emacs.
Changed all method-defs acordingly.
(common-seperated-spec, inspector-princ): Moved to
swank-fancy-inspector.lisp.
(inspector-content): Renamed from inspector-content-for-emacs.
(value-part): Renamed from value-part-for-emacs.
(action-part): Renamed from action-part-for-emacs.
(inspect-list): Renamed from inspect-for-emacs-list.
(inspect-list-aux): New.
(inspect-cons): Renamed from inspect-for-emacs-simple-cons.
(*inspect-length*): Deleted.
(inspect-list): Ignore max-length stuff.
(inspector-content): Don't allow nil elements.
(emacs-inspect array): Make the label of element type more
consistent with the others.

Revision 1.189 - (view) (annotate) - [select for diffs]
Mon Feb 4 17:41:22 2008 UTC (6 years, 2 months ago) by mbaringer
Branch: MAIN
Changes since 1.188: +0 -6 lines
Diff to previous 1.188 , to selected 1.39
drop sbcl inspector defclass

Revision 1.188 - (view) (annotate) - [select for diffs]
Mon Feb 4 17:35:03 2008 UTC (6 years, 2 months ago) by mbaringer
Branch: MAIN
Changes since 1.187: +6 -12 lines
Diff to previous 1.187 , to selected 1.39
Drop second argument from inspect-for-emacs

Revision 1.187 - (view) (annotate) - [select for diffs]
Thu Jan 17 05:53:44 2008 UTC (6 years, 3 months ago) by nsiivola
Branch: MAIN
Changes since 1.186: +3 -2 lines
Diff to previous 1.186 , to selected 1.39
* swank-sbcl.lisp (sbcl-source-file-p): When a buffer is not
associated with any file, M-. for names defined there ends up
calling SBCL-SOURCE-FILE-P with NIL -- guard against that.

Revision 1.186 - (view) (annotate) - [select for diffs]
Fri Jan 4 03:34:35 2008 UTC (6 years, 3 months ago) by jsnellman
Branch: MAIN
Changes since 1.185: +10 -7 lines
Diff to previous 1.185 , to selected 1.39
	* swank-sbcl.lisp (source-file-source-location): Use the
	debootstrap readtable when appropriate (fixes occasional reader
	errors when using "v" on debugger frames that point to functions
	defined in SBCL). Likewise for the debootstrapping packages.
	(code-location-debug-source-name): Ensure that we always return a
	physical namestring, Emacs won't like a pathname or a logical
	namestring.

Revision 1.185 - (view) (annotate) - [select for diffs]
Tue Sep 11 19:31:03 2007 UTC (6 years, 7 months ago) by trittweiler
Branch: MAIN
Changes since 1.184: +1 -0 lines
Diff to previous 1.184 , to selected 1.39
* swank-loader.lisp: Aways compile-file `contrib/swank-asdf.lisp'
  on SBCL. This fixes "Undefined function" style-warnings when using
  `slime-asdf' in combination with SBCL. Reported by Cyrus Harmon.

* swank-sbcl.lisp: Explicitly require ASDF. (While this is not
  strictly necessary, as it's implicitly loaded on requiring the
  other modules, I think it's better to be explicit about it.)

Revision 1.184 - (view) (annotate) - [select for diffs]
Mon Sep 10 21:33:36 2007 UTC (6 years, 7 months ago) by heller
Branch: MAIN
Changes since 1.183: +5 -0 lines
Diff to previous 1.183 , to selected 1.39
* swank-sbcl.lisp (condition-references): It's still needed.

Revision 1.183 - (view) (annotate) - [select for diffs]
Mon Sep 10 15:39:05 2007 UTC (6 years, 7 months ago) by heller
Branch: MAIN
Changes since 1.182: +18 -8 lines
Diff to previous 1.182 , to selected 1.39
Move SBCL doc references to contrib.

* slime.el (sldb-insert-condition): Merge REFERENCES and EXTRAS.
(sldb-extras-hooks, sldb-dispatch-extras): New hook.

* swank.lisp (debugger-condition-for-emacs): Merge REFERENCES and EXTRAS.

* swank-backend.lisp (condition-references): Removed. Merged with
condition-extras.

* swank-sbcl.lisp (condition-references): Removed.
(condition-extras): Include references.
(externalize-reference): New function.  Don't return plain
symbols.

* swank-allegro.lisp (condition-references): Removed.

* contrib/slime-references.el: New file.

Revision 1.182 - (view) (annotate) - [select for diffs]
Tue Sep 4 09:49:09 2007 UTC (6 years, 7 months ago) by heller
Branch: MAIN
Changes since 1.181: +1 -1 lines
Diff to previous 1.181 , to selected 1.39
Remove request-abort condition.

* swank-backend.lisp (request-abort): Removed
(abort-request): Removed.  Replace all (3) uses with ERROR.
* swank.lisp (eval-for-emacs): No special case for request-abort.
* slime.el (slime-eval-async): Remove optional arg of :abort.

Revision 1.181 - (view) (annotate) - [select for diffs]
Fri Aug 24 06:41:54 2007 UTC (6 years, 7 months ago) by heller
Branch: MAIN
Changes since 1.180: +1 -1 lines
Diff to previous 1.180 , to selected 1.39
* swank-sbcl.lisp (sbcl-inspector): Fix typo.

Revision 1.180 - (view) (annotate) - [select for diffs]
Thu Aug 23 19:03:37 2007 UTC (6 years, 7 months ago) by heller
Branch: MAIN
Changes since 1.179: +7 -8 lines
Diff to previous 1.179 , to selected 1.39
Introduce backend-inspector class.

* swank-backend.lisp (backend-inspector): New class. Introduce a named
  class to give as another way to dispatch to backend methods.

* swank-cmucl.lisp: Use backend-inspector class.
* swank-sbcl.lisp: Use backend-inspector class.
* swank-clisp.lisp: Use backend-inspector class.
* swank-lispworks.lisp: Use backend-inspector class.
* swank-allegro.lisp: Use backend-inspector class.
* swank-openmcl.lisp: Use backend-inspector class.
* swank-abcl.lisp: Use backend-inspector class.
* swank-corman.lisp: Use backend-inspector class.
* swank-scl.lisp: Use backend-inspector class.

Revision 1.179 - (view) (annotate) - [select for diffs]
Thu Aug 23 16:20:11 2007 UTC (6 years, 7 months ago) by trittweiler
Branch: MAIN
Changes since 1.178: +14 -1 lines
Diff to previous 1.178 , to selected 1.39
	Added arglist display for declaration specifiers and type
	specifiers.

	Examples:

	`(declare (type' will display

	   (declare (type type-specifier &rest vars))

	`(declare (type (float' will display

	   [Typespec] (float &optional lower-limit upper-limit)

	`(declare (optimize' will display

	   (declare (optimize &any (safety 1) (space 1) (speed 1) ...))

	&ANY is a new lambda keyword that is introduced for arglist
	description purpose, and is very similiar to &KEY, but isn't based
	upon plists; they're more based upon *FEATURES* lists. (See the
	comment near the ARGLIST defstruct in `swank.lisp'.)

	* slime.el:
	(slime-to-feature-keyword): Renamed to `slime-keywordify'.
	(slime-eval-feature-conditional): Adapted to use `slime-keywordify'.
	(slime-ensure-list): New utility.
	(slime-sexp-at-point): Now takes an argument that specify how many
	sexps at point should be returned.
	(slime-enclosing-operator-names): Renamed to
	`slime-enclosing-form-specs'.
	(slime-enclosing-form-specs): Returns a list of ``raw form specs''
	instead of what was called ``extended operator names'' before, see
	`swank::parse-form-spec' for more information. This is a
	simplified superset. Additionally as tertiary return value return
	a list of points to let the caller see where each form spec is
	located. Adapted callers accordingly. Extended docstring.
	(slime-parse-extended-operator-name): Adapted to changes in
	`slime-enclosing-form-specs'. Now gets more context, and is such
	more powerful. This was needed to allow parsing DECLARE forms.
	(slime-make-extended-operator-parser/look-ahead): Because the
	protocol for arglist display was simplified, it was possible to
	replace the plethora of parsing function just by this one.
	(slime-extended-operator-name-parser-alist): Use it. Also add
	parser for DECLARE forms.
	(slime-parse-extended-operator/declare): Responsible for parsing
	DECLARE forms.
	(%slime-in-mid-of-typespec-p): Helper function for
	`slime-parse-extended-operator/declare'.
	(slime-incomplete-form-at-point): New. Return the ``raw form
	spec'' near point.
	(slime-complete-form): Use `slime-incomplete-form-at-point'.

	* swank.lisp: New Helper functions.
	(length=, ensure-list, recursively-empty-p): New.
	(maybecall, exactly-one-p): New.

	* swank.lisp (arglist-for-echo-area): Adapted to take ``raw form
	specs'' from Slime.
	(parse-form-spec): New. Takes a ``raw form spec'' and returns a
	``form spec'' for further processing in Swank. Docstring documents
	these two terms.
	(split-form-spec): New. Return relevant information from a form	spec.
	(parse-first-valid-form-spec): Replaces `find-valid-operator-name'.
	(find-valid-operator-name): Removed.
	(operator-designator-to-form): Removed. Obsoleted by `parse-form-spec'.

	(defstruct arglist): Add `any-p' and `any-args' slots to contain
	arguments belonging to the &ANY lambda keyword.
	(print-arglist): Adapted to also print &ANY args.
	(print-decoded-arglist-as-template): Likewise.
	(decode-arglist): Adapted to also decode &ANY args.
	(remove-actual-args): Adapted to also remove &ANY args.
	(remove-&key-args): Split out from `remove-actual-args'.
	(remove-&any-args): New. Removes already provided &ANY args.
	(arglist-from-form-spec): New. Added detailed docstring.
	(arglist-dispatch): Dispatching generic function for
	`arglist-from-form-spec' that does all the work. Renamed from
	prior `form-completion'.
	(arglist-dispatch) Added methods for dealing with declaration and
	type-specifiers.
	(complete-form): Adapted to take ``raw form specs'' from Slime.
	(completions-for-keyword): Likewise.
	(format-arglist-for-echo-area): Removed. Not needed anymore.

	* swank-backend.lisp (declaration-arglist): New generic
	function. Returns the arglist for a given declaration
	identifier. (Backends are supposed to specialize it if they can
	provide additional information.)
	(type-specifier-arglist): New generic function. Returns the
	arglist for a given type-specifier operator. (Backends are
	supposed to specialize it if they can provide additional
	information.)
	(*type-specifier-arglists*): New variable. Contains the arglists
	for the type specifiers in Common Lisp.

	* swank-sbcl.lisp: Now depends upon sb-cltl2.
	(declaration-arglist 'optimize): Specialize the `optimize'
	declaration identifier to pass it to
	sb-cltl2:declaration-information.

Revision 1.178 - (view) (annotate) - [select for diffs]
Wed May 23 14:22:06 2007 UTC (6 years, 10 months ago) by mbaringer
Branch: MAIN
CVS Tags: SLIME-2-1
Branch point for: contrib
Changes since 1.177: +26 -15 lines
Diff to previous 1.177 , to selected 1.39
(*auto-flush-interval*): New variable
controlling how often streams are flushed.
(*auto-flush-lock*): New lock guarding access to the shared
variable *auto-flush-streams*.
(make-stream-interactive): Wrapped access to *auto-flush-streams*
in a call-with-recursive-lock-held.
(flush-streams): Wrapped in call-with-recursive-lock-held.

Revision 1.177 - (view) (annotate) - [select for diffs]
Thu Apr 12 19:00:09 2007 UTC (7 years ago) by nsiivola
Branch: MAIN
Changes since 1.176: +3 -1 lines
Diff to previous 1.176 , to selected 1.39
Accept :emacs-direcory in emacs-buffer-source-location plist.

Revision 1.176 - (view) (annotate) - [select for diffs]
Thu Mar 29 17:12:38 2007 UTC (7 years ago) by nsiivola
Branch: MAIN
Changes since 1.175: +7 -6 lines
Diff to previous 1.175 , to selected 1.39
Make M-. work better with hotpatched SBCL sources.

Revision 1.175 - (view) (annotate) - [select for diffs]
Wed Jan 10 23:53:47 2007 UTC (7 years, 3 months ago) by heller
Branch: MAIN
Changes since 1.174: +1 -1 lines
Diff to previous 1.174 , to selected 1.39
(condition-extras): Fix typo.

Revision 1.174 - (view) (annotate) - [select for diffs]
Tue Jan 9 03:36:15 2007 UTC (7 years, 3 months ago) by jsnellman
Branch: MAIN
Changes since 1.173: +50 -20 lines
Diff to previous 1.173 , to selected 1.39
	SBCL 1.0.1.15 supports restart-frame natively, and uses a different
	debug catch tag interface than earlier versions.

	* swank-sbcl (sbcl-with-restart-frame): New function, detects SBCL
	1.0.1.15 or later.
	(return-from-frame): Another version for 1.0.1.15, using
	sb-debug:unwind-to-frame-and-call
	(restart-frame): Another version for 1.0.1.15, using
	sb-debug:unwind-to-frame-and-call

Revision 1.173 - (view) (annotate) - [select for diffs]
Tue Dec 19 10:47:36 2006 UTC (7 years, 3 months ago) by alendvai
Branch: MAIN
Changes since 1.172: +4 -0 lines
Diff to previous 1.172 , to selected 1.39
Added hash-table-weakness and use it in hash-table-inspecting

Revision 1.172 - (view) (annotate) - [select for diffs]
Tue Dec 5 04:46:06 2006 UTC (7 years, 4 months ago) by jsnellman
Branch: MAIN
Changes since 1.171: +69 -20 lines
Diff to previous 1.171 , to selected 1.39
	Xref support for SBCL (requires SBCL 1.0.0.18).

	* swank-sbcl.lisp (who-calls): New function, fetch xref data from
	sb-introspect.
	(who-binds): Ditto.
	(who-sets): Ditto.
	(who-references): Ditto.
	(who-macroexpands): Ditto.
	(defxref): New macro, create the above functions.
	(source-location-for-xref-data): New, map from sb-introspect xref
	format to the Swank xref format.
	(sanitize-xrefs): Map PCL method names to something more readable.
	(string-path-snippet): New function, finds a more accurate source
	snippet for definition source locations which have both an
	:emacs-string and a full source path available. Otherwise the xref
	location would point to the toplevel form rather than the exact
	form for functions compiled with C-c C-c.
	(source-file-position): New function, somewhat like
	source-path-file-position but uses the source-file cache, handles
	missing form-paths more gracefully.
	(make-definition-source-location): use the above two functions
	(sbcl-with-xref-p): new function, detect whether SBCL has xref support
	for backwards compability

Revision 1.171 - (view) (annotate) - [select for diffs]
Sun Nov 19 21:33:03 2006 UTC (7 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.170: +30 -28 lines
Diff to previous 1.170 , to selected 1.39
(find-external-format, guess-external-format): New.
(swank-compile-file): The external-format argument is now a
backend specific value returned by find-external-format.

Update implementations accordingly.

Revision 1.170 - (view) (annotate) - [select for diffs]
Fri Oct 27 06:24:26 2006 UTC (7 years, 5 months ago) by nsiivola
Branch: MAIN
Changes since 1.169: +14 -3 lines
Diff to previous 1.169 , to selected 1.39
Restore support for pre 0.9.17 SBCL

Revision 1.169 - (view) (annotate) - [select for diffs]
Thu Oct 26 12:47:05 2006 UTC (7 years, 5 months ago) by mbaringer
Branch: MAIN
Changes since 1.168: +3 -6 lines
Diff to previous 1.168 , to selected 1.39
(make-weak-value-hash-table): New for sbcl.
(make-weak-key-hash-table): New for sbcl.

Revision 1.168 - (view) (annotate) - [select for diffs]
Thu Oct 19 12:30:51 2006 UTC (7 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.167: +19 -5 lines
Diff to previous 1.167 , to selected 1.39
(list-callers, list-callers): Use SANITIZE-XREFS.

Revision 1.167 - (view) (annotate) - [select for diffs]
Tue Oct 17 10:48:35 2006 UTC (7 years, 6 months ago) by mbaringer
Branch: MAIN
Changes since 1.166: +6 -0 lines
Diff to previous 1.166 , to selected 1.39
(inspect-for-emacs weak-pointer ...): Added method.

Revision 1.166 - (view) (annotate) - [select for diffs]
Sun Sep 24 21:52:55 2006 UTC (7 years, 6 months ago) by jsnellman
Branch: MAIN
Changes since 1.165: +14 -8 lines
Diff to previous 1.165 , to selected 1.39
fix SBCL 0.9.17

Revision 1.165 - (view) (annotate) - [select for diffs]
Wed Sep 20 18:37:01 2006 UTC (7 years, 6 months ago) by mbaringer
Branch: MAIN
Changes since 1.164: +2 -2 lines
Diff to previous 1.164 , to selected 1.39
*** empty log message ***

Revision 1.164 - (view) (annotate) - [select for diffs]
Wed Sep 20 17:52:32 2006 UTC (7 years, 6 months ago) by jsnellman
Branch: MAIN
Changes since 1.163: +6 -6 lines
Diff to previous 1.163 , to selected 1.39
use INVOKE-STEPPER rather than funcalling *STEPPER-HOOK*

Revision 1.163 - (view) (annotate) - [select for diffs]
Tue Sep 19 11:56:38 2006 UTC (7 years, 6 months ago) by jsnellman
Branch: MAIN
Changes since 1.162: +5 -2 lines
Diff to previous 1.162 , to selected 1.39
fix stepper on threaded SBCL

Revision 1.162 - (view) (annotate) - [select for diffs]
Mon Sep 18 21:56:13 2006 UTC (7 years, 6 months ago) by jsnellman
Branch: MAIN
Changes since 1.161: +34 -1 lines
Diff to previous 1.161 , to selected 1.39
sbcl single-stepper

Revision 1.161 - (view) (annotate) - [select for diffs]
Mon Sep 11 08:01:59 2006 UTC (7 years, 7 months ago) by nsiivola
Branch: MAIN
Changes since 1.160: +1 -1 lines
Diff to previous 1.160 , to selected 1.39
REPL history with paredit &al, stepping in the REPL with SBCL.

Revision 1.160 - (view) (annotate) - [select for diffs]
Thu Aug 10 11:53:35 2006 UTC (7 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.159: +25 -23 lines
Diff to previous 1.159 , to selected 1.39
swank-backend.lisp (definterface): Drop that incredibly unportable
CLOS stuff. Use plists and plain functions instead.  Update backends
accordingly.

Revision 1.159 - (view) (annotate) - [select for diffs]
Sat Jul 15 11:03:29 2006 UTC (7 years, 9 months ago) by jsnellman
Branch: MAIN
Changes since 1.158: +2 -5 lines
Diff to previous 1.158 , to selected 1.39
remove linux_no_threads_p, defcondition -> define-condition

Revision 1.158 - (view) (annotate) - [select for diffs]
Sat Jul 1 07:11:31 2006 UTC (7 years, 9 months ago) by jsnellman
Branch: MAIN
Changes since 1.157: +51 -53 lines
Diff to previous 1.157 , to selected 1.39
*** empty log message ***

Revision 1.157 - (view) (annotate) - [select for diffs]
Mon Jun 26 06:28:06 2006 UTC (7 years, 9 months ago) by heller
Branch: MAIN
Changes since 1.156: +0 -171 lines
Diff to previous 1.156 , to selected 1.39
(find-definitions): Remove backward compatibly code.

Revision 1.156 - (view) (annotate) - [select for diffs]
Mon Jun 26 06:24:24 2006 UTC (7 years, 9 months ago) by heller
Branch: MAIN
Changes since 1.155: +33 -16 lines
Diff to previous 1.155 , to selected 1.39
(swank-compile-string): Create temporary file with the string and
compile-file it instead of compiling an anonymous lambda, as before,
in order to better handle eval-when forms.

(tmpnam, temp-file-name): New functions.

Revision 1.155 - (view) (annotate) - [select for diffs]
Wed Apr 19 09:18:53 2006 UTC (7 years, 11 months ago) by crhodes
Branch: MAIN
CVS Tags: SLIME-2-0
Changes since 1.154: +9 -5 lines
Diff to previous 1.154 , to selected 1.39
Use the NIL communication style for sbcl/win32 (and document it, too)

Revision 1.154 - (view) (annotate) - [select for diffs]
Wed Apr 12 08:43:55 2006 UTC (8 years ago) by nsiivola
Branch: MAIN
Changes since 1.153: +7 -0 lines
Diff to previous 1.153 , to selected 1.39
Stream locking patch from Robert Macomber

Revision 1.153 - (view) (annotate) - [select for diffs]
Wed Mar 22 16:40:01 2006 UTC (8 years ago) by dcrosher
Branch: MAIN
CVS Tags: SLIME-1-3
Branch point for: fsm
Changes since 1.152: +2 -1 lines
Diff to previous 1.152 , to selected 1.39
* Improve the robustness of connection establishment.

Revision 1.152 - (view) (annotate) - [select for diffs]
Fri Jan 20 21:31:20 2006 UTC (8 years, 2 months ago) by heller
Branch: MAIN
Changes since 1.151: +8 -2 lines
Diff to previous 1.151 , to selected 1.39
(restart-frame): Provide an implementation even if it doesn't quite do
what it's supposed to do.

Revision 1.151 - (view) (annotate) - [select for diffs]
Mon Dec 5 23:01:50 2005 UTC (8 years, 4 months ago) by jsnellman
Branch: MAIN
Changes since 1.150: +19 -6 lines
Diff to previous 1.150 , to selected 1.39
2005-12-06  Juho Snellman <jsnell@iki.fi>
        * swank-sbcl.lisp (function-source-location,
          safe-function-source-location): Oops, define these functions
          also for the >0.9.6 case. Fixes broken sldb-show-source on
          SBCL 0.9.7.

Revision 1.150 - (view) (annotate) - [select for diffs]
Fri Nov 11 23:43:43 2005 UTC (8 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.149: +6 -4 lines
Diff to previous 1.149 , to selected 1.39
(accept-connection): New argument: buffering.

Revision 1.149 - (view) (annotate) - [select for diffs]
Sun Nov 6 09:09:48 2005 UTC (8 years, 5 months ago) by jsnellman
Branch: MAIN
Changes since 1.148: +103 -0 lines
Diff to previous 1.148 , to selected 1.39
swank-sbcl.lisp (find-definitions, make-source-location-specification
make-definition-source-location, source-hint-snippet):

As of SBCL 0.9.6.25 SB-INTROSPECT has better support for finding
source locations. Use as much of it in swank-sbcl as possible.
(Original version left reader-conditionalized for older SBCLs).

Revision 1.148 - (view) (annotate) - [select for diffs]
Sun Oct 23 08:47:54 2005 UTC (8 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.147: +4 -0 lines
Diff to previous 1.147 , to selected 1.39
* swank-backend.lisp (install-debugger-globally): new interface
function

* swank.lisp (install-debugger): call install-debugger-globally

* swank-sbcl.lisp (install-debugger-globally): set
sb-ext:*invoke-debugger-hook* too

Revision 1.147 - (view) (annotate) - [select for diffs]
Sun Oct 23 07:49:08 2005 UTC (8 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.146: +20 -99 lines
Diff to previous 1.146 , to selected 1.39
(make-stream-interactive, *auto-flush-streams*)[sb-thread]: Spawn a
thread to flush interactive streams in reasonably short intervals.

Revision 1.146 - (view) (annotate) - [select for diffs]
Thu Sep 22 20:20:43 2005 UTC (8 years, 6 months ago) by heller
Branch: MAIN
Changes since 1.145: +3 -14 lines
Diff to previous 1.145 , to selected 1.39
Use *gray-stream-symbols* instead of enumerating them in each backend.

Revision 1.145 - (view) (annotate) - [select for diffs]
Wed Sep 21 20:54:08 2005 UTC (8 years, 6 months ago) by heller
Branch: MAIN
Changes since 1.144: +1 -0 lines
Diff to previous 1.144 , to selected 1.39
Import `stream-finish-output'.

Revision 1.144 - (view) (annotate) - [select for diffs]
Mon Sep 12 22:58:17 2005 UTC (8 years, 7 months ago) by heller
Branch: MAIN
Changes since 1.143: +2 -2 lines
Diff to previous 1.143 , to selected 1.39
Add EUC-JP as coding system.  This patch eliminates the requirement of
Mule-UCS to use Japanese characters.  (Nice for pre-22 Emacs
users.)  Patch from NIIMI Satoshi.

Revision 1.143 - (view) (annotate) - [select for diffs]
Mon Aug 29 11:23:55 2005 UTC (8 years, 7 months ago) by jsnellman
Branch: MAIN
Changes since 1.142: +5 -0 lines
Diff to previous 1.142 , to selected 1.39
swank-sbcl.lisp (make-weak-key-hash-table): Remove the implementation;
SBCL doesn't actually support weak hash-tables.

Revision 1.142 - (view) (annotate) - [select for diffs]
Sun Aug 28 14:48:20 2005 UTC (8 years, 7 months ago) by mkoeppe
Branch: MAIN
Changes since 1.141: +6 -0 lines
Diff to previous 1.141 , to selected 1.39
(make-weak-key-hash-table): Implement it.

Revision 1.141 - (view) (annotate) - [select for diffs]
Wed Aug 24 15:09:33 2005 UTC (8 years, 7 months ago) by crhodes
Branch: MAIN
Changes since 1.140: +2 -1 lines
Diff to previous 1.140 , to selected 1.39
Present qualifiers in method definitions for sbcl

Revision 1.140 - (view) (annotate) - [select for diffs]
Sat Aug 20 19:36:15 2005 UTC (8 years, 7 months ago) by crhodes
Branch: MAIN
Changes since 1.139: +1 -0 lines
Diff to previous 1.139 , to selected 1.39
(noted by Brian Mastenbrook) non-Linux non-linkage-table sbcls try to
get the address of linux_no_threads_p at fasl-load time, and complain
vigorously if it's not available.  Guard with #+linux.

Revision 1.139 - (view) (annotate) - [select for diffs]
Thu Aug 4 00:03:41 2005 UTC (8 years, 8 months ago) by heller
Branch: MAIN
Changes since 1.138: +20 -174 lines
Diff to previous 1.138 , to selected 1.39
Remove SBCL 0.9.1 support.
(swank-compile-string): Funcall the compiled function outside
with-compilation-hooks to prevent runtime warnings from popping up a
*compiler-notes* buffer.  From Juho Snellman.

(swank-compile-string): Restore honoring of *trap-load-time-warnings*.
From Zach Beane.

Revision 1.138 - (view) (annotate) - [select for diffs]
Tue Jul 26 14:59:45 2005 UTC (8 years, 8 months ago) by mbaringer
Branch: MAIN
Changes since 1.137: +8 -3 lines
Diff to previous 1.137 , to selected 1.39
*** empty log message ***

Revision 1.137 - (view) (annotate) - [select for diffs]
Tue Jul 5 20:30:59 2005 UTC (8 years, 9 months ago) by heller
Branch: MAIN
Changes since 1.136: +22 -15 lines
Diff to previous 1.136 , to selected 1.39
(swank-compile-file): New optional argument `external-format'.

Revision 1.136 - (view) (annotate) - [select for diffs]
Fri Jul 1 13:52:55 2005 UTC (8 years, 9 months ago) by crhodes
Branch: MAIN
Changes since 1.135: +128 -3 lines
Diff to previous 1.135 , to selected 1.39
Patch from Gabor for new thread api support (older SBCLs may or may
not work at all, but definitely don't work with threads)

Revision 1.135 - (view) (annotate) - [select for diffs]
Tue Jun 28 08:40:07 2005 UTC (8 years, 9 months ago) by crhodes
Branch: MAIN
Changes since 1.134: +10 -8 lines
Diff to previous 1.134 , to selected 1.39
Support sbcl 0.9.2

Revision 1.134 - (view) (annotate) - [select for diffs]
Sat Jun 11 16:22:23 2005 UTC (8 years, 10 months ago) by nsiivola
Branch: MAIN
Changes since 1.133: +193 -138 lines
Diff to previous 1.133 , to selected 1.39
Changes for supporting recent SBCLs.

Revision 1.133 - (view) (annotate) - [select for diffs]
Wed Jun 1 12:22:45 2005 UTC (8 years, 10 months ago) by heller
Branch: MAIN
Changes since 1.132: +16 -9 lines
Diff to previous 1.132 , to selected 1.39
Distinguish macro and special operators from functions.

Revision 1.132 - (view) (annotate) - [select for diffs]
Wed Apr 20 12:43:49 2005 UTC (8 years, 11 months ago) by lgorrie
Branch: MAIN
CVS Tags: SLIME-1-2-1
Changes since 1.131: +1 -4 lines
Diff to previous 1.131 , to selected 1.39
Fixed preferred-communication-style (last fix was broken).

Revision 1.131 - (view) (annotate) - [select for diffs]
Wed Apr 20 10:23:29 2005 UTC (8 years, 11 months ago) by lgorrie
Branch: MAIN
Changes since 1.130: +6 -0 lines
Diff to previous 1.130 , to selected 1.39
(communication-style): Use `linux_no_threads_p' alien variable to
decide whether to use :SPAWN. From dan_b for compatibility with new
SBCLs.

Revision 1.130 - (view) (annotate) - [select for diffs]
Tue Apr 19 20:17:55 2005 UTC (8 years, 11 months ago) by heller
Branch: MAIN
CVS Tags: SLIME-1-2
Changes since 1.129: +1 -4 lines
Diff to previous 1.129 , to selected 1.39
(preferred-communication-style): Don't test for sb-futex, it has lost
its meaning 0.8.21.

Revision 1.129 - (view) (annotate) - [select for diffs]
Sat Apr 9 07:07:00 2005 UTC (9 years ago) by heller
Branch: MAIN
Changes since 1.128: +31 -11 lines
Diff to previous 1.128 , to selected 1.39
Add a few comments.

Revision 1.128 - (view) (annotate) - [select for diffs]
Mon Mar 21 17:40:40 2005 UTC (9 years ago) by heller
Branch: MAIN
Changes since 1.127: +17 -15 lines
Diff to previous 1.127 , to selected 1.39
(source-file-source-location): Read the snippet at the right position.

Revision 1.127 - (view) (annotate) - [select for diffs]
Mon Mar 21 11:03:11 2005 UTC (9 years ago) by heller
Branch: MAIN
Changes since 1.126: +10 -4 lines
Diff to previous 1.126 , to selected 1.39
(locate-compiler-note): Handle errors in macros better.

Revision 1.126 - (view) (annotate) - [select for diffs]
Mon Mar 21 00:57:27 2005 UTC (9 years ago) by heller
Branch: MAIN
Changes since 1.125: +147 -114 lines
Diff to previous 1.125 , to selected 1.39
(quit-lisp): If we are running multithreaded, terminate all other
threads too.  (still broken in 0.8.20.27; used to work in ~0.8.20.2.)

(with-debootstrapping, call-with-debootstrapping): Remove ugly
backward compatibility code.
(sbcl-source-file-p, guess-readtable-for-filename): New utilities.

(function-source-location): Handle work off to helper functions.
(find-function-source-location): New function.  Use the
shebang-readtable for SBCL source files.
(function-source-position, function-source-filename)
(function-source-write-date, function-toplevel-form-number)
(function-hint-snippet, function-has-start-location-p)
(function-start-location): New helpers.

(safe-source-location-for-emacs): Don't catch errors if
*debug-definition-finding* is true.

(inspect-for-emacs): Minor beautifications.

Revision 1.125 - (view) (annotate) - [select for diffs]
Mon Mar 21 00:38:43 2005 UTC (9 years ago) by lgorrie
Branch: MAIN
Changes since 1.124: +2 -1 lines
Diff to previous 1.124 , to selected 1.39
(function-source-location): For definitions compiled in Emacs buffers,
include the :emacs-string as a :snippet hint for search-based M-.
lookup.

Revision 1.124 - (view) (annotate) - [select for diffs]
Fri Mar 18 22:23:36 2005 UTC (9 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.123: +279 -208 lines
Diff to previous 1.123 , to selected 1.39
(swank-compile-string): Re-implemented.  This time with temp-files and
proper source-location tracking.
(install-debug-source-patch, debug-source-for-info-advice): Patch
SBCL's debug-source-for-info so that we can dump our own bits of debug
info.
(temp-file-name, call/temp-file): New utilities.

(function-source-location, code-location-source-path): Rewritten to
handle C-c C-c functions.  Also use the source-path to locate the
position.

(locate-compiler-note): Renamed from resolve-note-location.

(file-source-location, lisp-source-location)
(temp-file-source-location, source-file-source-location)
(string-source-position, code-location-debug-source-info)
(code-location-debug-source-name, code-location-debug-source-created,)
(code-location-debug-fun-fun, code-location-from-emacs-buffer-p)
(function-from-emacs-buffer-p, function-debug-source-info)
(info-from-emacs-buffer-p, code-location-has-debug-block-info-p)
(stream-source-position): Lots of new helper functions.

(with-debootstrapping): Moved upwards so that it can be used for
source location searching.

(source-location-for-emacs): Deleted

Revision 1.123 - (view) (annotate) - [select for diffs]
Sun Mar 13 02:57:45 2005 UTC (9 years, 1 month ago) by lgorrie
Branch: MAIN
Changes since 1.122: +1 -1 lines
Diff to previous 1.122 , to selected 1.39
Updated for revisted sb-introspect patch:
s/DEFINITION-SOURCE-CREATED/DEFINITION-SOURCE-WRITE-DATE/

Revision 1.122 - (view) (annotate) - [select for diffs]
Sat Mar 12 01:50:15 2005 UTC (9 years, 1 month ago) by lgorrie
Branch: MAIN
Changes since 1.121: +69 -46 lines
Diff to previous 1.121 , to selected 1.39
Use swank-source-file-cache to find snippets of definitions. M-. is
now much more robust to modifications in the source file.

NOTE: To be effective requires a patch to sb-introspect that I have
posted to sbcl-devel.

Revision 1.121 - (view) (annotate) - [select for diffs]
Thu Mar 3 00:11:58 2005 UTC (9 years, 1 month ago) by lgorrie
Branch: MAIN
Changes since 1.120: +45 -4 lines
Diff to previous 1.120 , to selected 1.39
Fixed for latest SBCL HEAD revision and temporarily
backwards-compatible with the current release.

Revision 1.120 - (view) (annotate) - [select for diffs]
Wed Mar 2 23:50:29 2005 UTC (9 years, 1 month ago) by lgorrie
Branch: MAIN
Changes since 1.119: +3 -3 lines
Diff to previous 1.119 , to selected 1.39
Fixed for (and requires) 0.8.20.

Revision 1.119 - (view) (annotate) - [select for diffs]
Mon Feb 28 23:32:06 2005 UTC (9 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.118: +12 -12 lines
Diff to previous 1.118 , to selected 1.39
(toggle-trace): Update tracing code for new interface.

Revision 1.118 - (view) (annotate) - [select for diffs]
Thu Feb 24 18:10:02 2005 UTC (9 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.117: +6 -7 lines
Diff to previous 1.117 , to selected 1.39
(call-with-debugger-hook): Bind sb-ext:*invoke-debugger-hook* instead
of setting it in emacs-connected.
(emacs-connected): Deleted.

Revision 1.117 - (view) (annotate) - [select for diffs]
Fri Feb 18 16:04:13 2005 UTC (9 years, 1 month ago) by mbaringer
Branch: MAIN
Changes since 1.116: +39 -0 lines
Diff to previous 1.116 , to selected 1.39
(toggle-trace-generic-function-methods,
toggle-trace-function, toggle-trace-method,
toggle-trace-fdefinition-wherein): Implement.
(toggle-trace, process-fspec): New functions.

Revision 1.116 - (view) (annotate) - [select for diffs]
Mon Jan 10 19:33:29 2005 UTC (9 years, 3 months ago) by heller
Branch: MAIN
Changes since 1.115: +6 -7 lines
Diff to previous 1.115 , to selected 1.39
(profile-package): Add implementation for SBCL.

Revision 1.115 - (view) (annotate) - [select for diffs]
Mon Nov 29 17:35:03 2004 UTC (9 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.114: +2 -1 lines
Diff to previous 1.114 , to selected 1.39
(accept-connection): The :external-format argument defaults now to
:iso-latin-1-unix.

Revision 1.114 - (view) (annotate) - [select for diffs]
Thu Nov 25 19:05:46 2004 UTC (9 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.113: +22 -19 lines
Diff to previous 1.113 , to selected 1.39
(%thread-state-slot,  %thread-state): Refactored from thread-status.
(thread-status): Use it.

(all-threads): Exclude return zombies.

Revision 1.113 - (view) (annotate) - [select for diffs]
Wed Nov 24 19:58:37 2004 UTC (9 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.112: +26 -14 lines
Diff to previous 1.112 , to selected 1.39
(inspect-for-emacs)[code-component]: Disassemble code-components too.

Revision 1.112 - (view) (annotate) - [select for diffs]
Sat Nov 20 20:47:25 2004 UTC (9 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.111: +4 -1 lines
Diff to previous 1.111 , to selected 1.39
(make-socket-io-stream): Add #+sb-unicode.

Revision 1.111 - (view) (annotate) - [select for diffs]
Sat Nov 20 20:13:54 2004 UTC (9 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.110: +1 -1 lines
Diff to previous 1.110 , to selected 1.39
Fix unbalanced parenthesis.  Patch from Travis Cross.

Revision 1.110 - (view) (annotate) - [select for diffs]
Fri Nov 19 19:06:36 2004 UTC (9 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.109: +11 -7 lines
Diff to previous 1.109 , to selected 1.39
(accept-connection): Accept :external-format as argument.

Revision 1.109 - (view) (annotate) - [select for diffs]
Fri Nov 19 01:19:25 2004 UTC (9 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.108: +15 -2 lines
Diff to previous 1.108 , to selected 1.39
(thread-status): Decode the thread-state-slot instead of returning ???.

Revision 1.108 - (view) (annotate) - [select for diffs]
Mon Nov 15 23:07:37 2004 UTC (9 years, 5 months ago) by heller
Branch: MAIN
CVS Tags: MULTIBYTE-ENCODING
Changes since 1.107: +1 -2 lines
Diff to previous 1.107 , to selected 1.39
(emacs-connected): Updated for new interface.

Revision 1.107 - (view) (annotate) - [select for diffs]
Wed Oct 27 10:57:43 2004 UTC (9 years, 5 months ago) by heller
Branch: MAIN
CVS Tags: SLIME-1-1
Changes since 1.106: +9 -9 lines
Diff to previous 1.106 , to selected 1.39
(signal-compiler-condition): Actually delete one of the
reader-conditionalized forms.

Revision 1.106 - (view) (annotate) - [select for diffs]
Tue Oct 26 00:35:36 2004 UTC (9 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.105: +2 -55 lines
Diff to previous 1.105 , to selected 1.39
(signal-compiler-condition): Remove reader conditionals as the current
code doesn't work in any SBCL before 0.8.13 anyway.

Revision 1.105 - (view) (annotate) - [select for diffs]
Sun Oct 17 17:48:00 2004 UTC (9 years, 6 months ago) by heller
Branch: MAIN
Changes since 1.104: +44 -12 lines
Diff to previous 1.104 , to selected 1.39
(find-defintions): Include sundry compiler stuff.  Patch from Thomas Burdick.

Revision 1.104 - (view) (annotate) - [select for diffs]
Fri Sep 17 12:51:33 2004 UTC (9 years, 7 months ago) by mbaringer
Branch: MAIN
Changes since 1.103: +5 -1 lines
Diff to previous 1.103 , to selected 1.39
(swank-mop): Export eql-specializer, eql-specializer-object and
specializer-direct-methods from swank-mop.
(inspect-for-emacs): Fix typo in ignore declaration.

Revision 1.103 - (view) (annotate) - [select for diffs]
Wed Sep 15 17:31:58 2004 UTC (9 years, 7 months ago) by mbaringer
Branch: MAIN
Changes since 1.102: +12 -5 lines
Diff to previous 1.102 , to selected 1.39
(inspect-for-emacs): Insert function object's
documentation when it's available.

Revision 1.102 - (view) (annotate) - [select for diffs]
Tue Sep 14 16:01:06 2004 UTC (9 years, 7 months ago) by mbaringer
Branch: MAIN
Changes since 1.101: +80 -60 lines
Diff to previous 1.101 , to selected 1.39
2004-09-14  Marco Baringer  <mb@bese.it>

	* swank-backend.lisp (inspector, make-default-inspector): Add an
	INSPECTOR object argument to the inspector protocol. This allows
	implementations to provide more information regarding cretain
	objects which can't be, or simply aren't, inspected using the
	generic inspector implementation. also export inspect-for-emacs
	and related symbols from the backend package.
	(make-default-inspector): New function.

	* swank.lisp (inspected-parts): Rename to inspect-for-emacs and
	add an inspector argument. Move inspect-for-emacs to
	swank-backend.lisp, leave only the default implementations.

	* swank-openml.lisp, swank-sbcl.lisp, swank-allegro.lisp,
	swank-cmucl.lisp, swank-lispworks.lisp (inspected-parts): Rename
	and change argument list. Many of the inspected-parts methods were
	being clobbered by the inspected-parts in swank.lisp, now that
	they're being used the return values have been updated for the new
	inspect-for-emacs API.

Revision 1.101 - (view) (annotate) - [select for diffs]
Mon Sep 13 16:42:31 2004 UTC (9 years, 7 months ago) by mbaringer
Branch: MAIN
Changes since 1.100: +42 -58 lines
Diff to previous 1.100 , to selected 1.39
2004-09-13  Marco Baringer  <mb@bese.it>

	* swank.lisp (inspected-parts): Added inspectors for pathnames,
	logical pathnames, standard-objects and numbers (float, ratio,
	integer and complex).

	* swank-backend.lisp: Define import-to-swank-mop.

	* swank-openmcl.lisp, swank-sbcl.lisp, swank-allegro.lisp: Don't
	define the import-to-swank-mop function (now defined in
	swank-backend.lisp).

	* swank-cmucl.lisp (swank-mop, function-name): Implement backend
	for inspector.
	(arglist): Add support for extracting arglists from function
	objects.
	(create-socket): Don't specify the host on PPC.

Revision 1.100 - (view) (annotate) - [select for diffs]
Sun Sep 12 23:56:39 2004 UTC (9 years, 7 months ago) by mbaringer
Branch: MAIN
Changes since 1.99: +66 -1 lines
Diff to previous 1.99 , to selected 1.39
2004-09-13  Marco Baringer  <mb@bese.it>

	* swank.lisp: New inspector protocol. The lisp side now returns a
	specially formated list of "things" to format which are then
	passed to emacs and rendered in the inspector buffer. Things can
	be either text, recursivly inspectable values, or functions to
	call.
	(inspected-parts): Redefine for new inspector protocol.
	(*inspectee-parts*): Redefine as array.
	(*inspectee-actions*): New array, similar to *inspectee-parts*.
	(reset-inspector): Update for new implementation of
	*inspectee-parts* and new variable *inspectee-actions*.
	(inspector-contents-for-emacs): New function.
	(inspect-object): Update for new inspector protocol.
	(inspector-nth-part): Update for new *inspectee-parts*
	implementation.
	(inspector-call-nth-action): New function.

	* slime.el (slime-inspector-action-face): New face.
	(slime-open-inspector): Adapt to new inspector protocol.
	(slime-inspector-operate-on-point): New function, subsumes
	slime-inspector-inspect-object-at-point.
	(slime-inspector-next-inspectable-object): Skip to next object,
	not just end of current object; wrap around buffer.
	(slime-inspector-mode-map): change bindings of [return] and "\C-m"

	* swank-bacend.lisp (swank-mop): New package. Simply defines all
	the MOP related symbols we need from an implementation.
	(arglist): Update doc string. Provide default implementation.
	(function-name): New backend function.

	* swank-allegro.lisp (swank-mop, slot-definition-documentation):
	Implement.

	* swank-sbcl.lisp (swank-mop, slot-definition-documentation,
	function-name): Implement.

	* swank-openmcl.lisp (swank-mop, function-name): Implement.
	(arglist): Implement for function objects.

Revision 1.99 - (view) (annotate) - [select for diffs]
Fri Sep 3 21:10:35 2004 UTC (9 years, 7 months ago) by heller
Branch: MAIN
CVS Tags: SLIME-1-0
Changes since 1.98: +0 -7 lines
Diff to previous 1.98 , to selected 1.39
Delete dead code.

Revision 1.98 - (view) (annotate) - [select for diffs]
Sat Aug 28 02:27:08 2004 UTC (9 years, 7 months ago) by pseibel
Branch: MAIN
Changes since 1.97: +2 -1 lines
Diff to previous 1.97 , to selected 1.39
Adding directory argument to swank-compile-string.

Revision 1.97 - (view) (annotate) - [select for diffs]
Wed Jul 28 21:07:18 2004 UTC (9 years, 8 months ago) by heller
Branch: MAIN
CVS Tags: SLIME-1-0-BETA
Changes since 1.96: +14 -0 lines
Diff to previous 1.96 , to selected 1.39
(list-callers, list-callees): Implemented.

Revision 1.96 - (view) (annotate) - [select for diffs]
Tue Jul 20 00:42:14 2004 UTC (9 years, 8 months ago) by lgorrie
Branch: MAIN
Changes since 1.95: +15 -9 lines
Diff to previous 1.95 , to selected 1.39
(call-with-compilation-hooks): Trap and report errors that cause
compilation to fail, e.g. read errors.

Revision 1.95 - (view) (annotate) - [select for diffs]
Tue Jul 13 18:14:03 2004 UTC (9 years, 9 months ago) by crhodes
Branch: MAIN
Changes since 1.94: +19 -5 lines
Diff to previous 1.94 , to selected 1.39
Implement actionable references in *slime-compiler-notes*.  Tested with
sbcl-0.8.12 and sbcl CVS head -- I hope I haven't broken things for
non-SBCL users...

(There are some things in this that I think are suboptimal: they have
been marked with FIXMEs.  I lack elispfu in sufficient measure to clean
them up confidently)

Revision 1.94 - (view) (annotate) - [select for diffs]
Wed Jun 30 13:45:32 2004 UTC (9 years, 9 months ago) by lgorrie
Branch: MAIN
CVS Tags: SLIME-1-0-ALPHA
Changes since 1.93: +4 -7 lines
Diff to previous 1.93 , to selected 1.39
(preferred-communication-style): Choose :fd-handler instead of :sigio
when threads aren't available. A lot of people seem to have had
problems with :sigio on SBCL.

Revision 1.93 - (view) (annotate) - [select for diffs]
Sun Jun 27 15:00:56 2004 UTC (9 years, 9 months ago) by heller
Branch: MAIN
Changes since 1.92: +7 -0 lines
Diff to previous 1.92 , to selected 1.39
(thread-id, find-thread): New backend function.

Revision 1.92 - (view) (annotate) - [select for diffs]
Fri Jun 25 08:06:20 2004 UTC (9 years, 9 months ago) by heller
Branch: MAIN
Changes since 1.91: +28 -15 lines
Diff to previous 1.91 , to selected 1.39
(call-with-syntax-hooks, with-debootstrapping): Preserve compatability
with fairly recent SBCLs by checking for the presense of the
debootstrapping facilities at macroexpansion time.

Revision 1.91 - (view) (annotate) - [select for diffs]
Sun Jun 20 21:37:05 2004 UTC (9 years, 9 months ago) by heller
Branch: MAIN
Changes since 1.90: +25 -10 lines
Diff to previous 1.90 , to selected 1.39
(*trap-load-time-warnings*): New variable.  If it is true, conditions,
most notably redefinition warnings, signalled at load time are not
trapped.

(swank-compile-file, swank-compile-string): Use it.

Revision 1.90 - (view) (annotate) - [select for diffs]
Wed Jun 16 20:26:01 2004 UTC (9 years, 10 months ago) by heller
Branch: MAIN
Changes since 1.89: +5 -0 lines
Diff to previous 1.89 , to selected 1.39
* swank-sbcl.lisp (default-readtable-alist): Implement it.

Revision 1.89 - (view) (annotate) - [select for diffs]
Thu Jun 10 20:52:07 2004 UTC (9 years, 10 months ago) by heller
Branch: MAIN
Changes since 1.88: +1 -1 lines
Diff to previous 1.88 , to selected 1.39
*** empty log message ***

Revision 1.88 - (view) (annotate) - [select for diffs]
Thu Jun 10 17:56:41 2004 UTC (9 years, 10 months ago) by heller
Branch: MAIN
Changes since 1.87: +65 -1 lines
Diff to previous 1.87 , to selected 1.39
(call-with-syntax-hooks): Add hooks to fix SB!-style package names.

(shebang-readtable): Return a readtable with the readermacros need to
parse SBCL sources.

Revision 1.87 - (view) (annotate) - [select for diffs]
Tue Jun 8 23:57:35 2004 UTC (9 years, 10 months ago) by lgorrie
Branch: MAIN
Changes since 1.86: +11 -0 lines
Diff to previous 1.86 , to selected 1.39
(format-sldb-condition, condition-references):
Implemented. Requires a recent (latest?) SBCL release.

Revision 1.86 - (view) (annotate) - [select for diffs]
Tue Jun 8 20:32:50 2004 UTC (9 years, 10 months ago) by lgorrie
Branch: MAIN
CVS Tags: SLIME-0-14
Changes since 1.85: +1 -0 lines
Diff to previous 1.85 , to selected 1.39
(close-socket): Remove any SERVE-EVENT handlers for the socket's file
descriptor.

Revision 1.85 - (view) (annotate) - [select for diffs]
Tue May 11 20:58:46 2004 UTC (9 years, 11 months ago) by heller
Branch: MAIN
Changes since 1.84: +18 -6 lines
Diff to previous 1.84 , to selected 1.39
(resolve-note-location): Resolve the location if we are called by
swank-compile-string.  The pathname argument is never :stream in SBCL,
so the method written for CMUCL was never called.

Revision 1.84 - (view) (annotate) - [select for diffs]
Fri Apr 30 23:19:50 2004 UTC (9 years, 11 months ago) by lgorrie
Branch: MAIN
Changes since 1.83: +0 -27 lines
Diff to previous 1.83 , to selected 1.39
Removed obsolete `swank-compile-system'.
Removed some stale comments about supported features.

Revision 1.83 - (view) (annotate) - [select for diffs]
Tue Apr 6 10:42:53 2004 UTC (10 years ago) by mbaringer
Branch: MAIN
CVS Tags: SLIME-0-12, SLIME-0-13
Changes since 1.82: +3 -0 lines
Diff to previous 1.82 , to selected 1.39
See ChangeLog entry 2004-04-06  Marco Baringer

Revision 1.82 - (view) (annotate) - [select for diffs]
Thu Apr 1 21:27:34 2004 UTC (10 years ago) by heller
Branch: MAIN
Changes since 1.81: +12 -47 lines
Diff to previous 1.81 , to selected 1.39
Remove the workarounds for non-existent fcntl.
(preferred-communication-style): Use multithreading if futexes are
available, sigio if fctnl is present, and fd-handlers otherwise.

(resolve-note-location): Don't try to construct a source-location if
there's no context.  Notes without location will be displayed in the
note-listing buffer.

Revision 1.81 - (view) (annotate) - [select for diffs]
Sat Mar 27 20:45:09 2004 UTC (10 years ago) by heller
Branch: MAIN
Changes since 1.80: +21 -26 lines
Diff to previous 1.80 , to selected 1.39
(enable-sigio-on-fd): Use sb-posix::fcntl instead of sb-posix:fcntl to
avoid the ugly reader hack.  SBCL doesn't have package locks and even
if they add locks in the future sb-posix::fcntl will still be valid.

(getpid): Use defimplementation instead of defmethod.

(function-definitions): Take generalized function names ala '(setf
car)' as argument.

Revision 1.80 - (view) (annotate) - [select for diffs]
Thu Mar 25 19:47:56 2004 UTC (10 years ago) by lgorrie
Branch: MAIN
Changes since 1.79: +4 -4 lines
Diff to previous 1.79 , to selected 1.39
(getpid): Use sb-posix:getpid.

Revision 1.79 - (view) (annotate) - [select for diffs]
Mon Mar 22 13:57:00 2004 UTC (10 years ago) by lgorrie
Branch: MAIN
Changes since 1.78: +1 -1 lines
Diff to previous 1.78 , to selected 1.39
(*communication-style*): New name for *swank-in-background*.

Revision 1.78 - (view) (annotate) - [select for diffs]
Sat Mar 20 18:55:12 2004 UTC (10 years ago) by heller
Branch: MAIN
Changes since 1.77: +7 -6 lines
Diff to previous 1.77 , to selected 1.39
(+o_async+, +f_setown, +f_setfl+): Add correct constants for FreeBSD.

Revision 1.77 - (view) (annotate) - [select for diffs]
Thu Mar 18 21:53:27 2004 UTC (10 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.76: +1 -1 lines
Diff to previous 1.76 , to selected 1.39
(swank-compile-string): Be friendly to case-inverting readtables.

Revision 1.76 - (view) (annotate) - [select for diffs]
Wed Mar 10 09:10:34 2004 UTC (10 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.75: +4 -3 lines
Diff to previous 1.75 , to selected 1.39
more tweaking.

Revision 1.75 - (view) (annotate) - [select for diffs]
Wed Mar 10 08:24:45 2004 UTC (10 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.74: +2 -4 lines
Diff to previous 1.74 , to selected 1.39
(find-definitions): Some tweaking.

Revision 1.74 - (view) (annotate) - [select for diffs]
Tue Mar 9 12:46:27 2004 UTC (10 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.73: +61 -109 lines
Diff to previous 1.73 , to selected 1.39
Merge package-split branch into main trunk.

Revision 1.73.2.1 - (view) (annotate) - [select for diffs]
Tue Mar 9 08:57:25 2004 UTC (10 years, 1 month ago) by heller
Branch: package-split
Changes since 1.73: +61 -109 lines
Diff to previous 1.73 , to next main 1.331 , to selected 1.39
Implement changed backend interface and remove references to front end symbols.

Revision 1.73 - (view) (annotate) - [select for diffs]
Fri Mar 5 14:26:14 2004 UTC (10 years, 1 month ago) by mbaringer
Branch: MAIN
CVS Tags: SLIME-0-11
Branch point for: package-split
Changes since 1.72: +5 -6 lines
Diff to previous 1.72 , to selected 1.39
See ChangeLog entry 2004-03-05 Marco Baringer

Revision 1.72 - (view) (annotate) - [select for diffs]
Thu Mar 4 22:15:40 2004 UTC (10 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.71: +0 -4 lines
Diff to previous 1.71 , to selected 1.39
(thread-alive-p): Add default implementation.

(describe-primitive-type): Add default implementation.
(inspected-parts): Implemented for Allegro and CLISP.

Revision 1.71 - (view) (annotate) - [select for diffs]
Wed Mar 3 20:55:38 2004 UTC (10 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.70: +1 -6 lines
Diff to previous 1.70 , to selected 1.39
(call-with-compilation-hooks): Bind fewer variables. Most of them are already
bound in swank.lisp.

Revision 1.70 - (view) (annotate) - [select for diffs]
Mon Mar 1 09:02:23 2004 UTC (10 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.69: +7 -6 lines
Diff to previous 1.69 , to selected 1.39
(kill-thread): Implemented.

Revision 1.69 - (view) (annotate) - [select for diffs]
Thu Feb 26 07:15:51 2004 UTC (10 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.68: +1 -1 lines
Diff to previous 1.68 , to selected 1.39
(compile-file-for-emacs): Load the fasl file regardless of f-p.

Revision 1.68 - (view) (annotate) - [select for diffs]
Tue Feb 24 23:31:34 2004 UTC (10 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.67: +3 -0 lines
Diff to previous 1.67 , to selected 1.39
* slime.el: Various bits of support for maintaining multiple SLIME
connections to different Lisp implementations simultaneously.

* swank-{backend,cmucl,sbcl,clisp,lispworks,openmcl}.lisp
(lisp-implementation-type-name): Add function to
return simple name of lisp implementation; used by new
multi-connection functionality in slime.el.

Revision 1.67 - (view) (annotate) - [select for diffs]
Sat Feb 21 16:42:52 2004 UTC (10 years, 1 month ago) by heller
Branch: MAIN
Changes since 1.66: +14 -3 lines
Diff to previous 1.66 , to selected 1.39
(add-sigio-handler, remove-sigio-handlers): Renamed.
(add-fd-handler,  remove-fd-handlers): Implement interface.

Revision 1.66 - (view) (annotate) - [select for diffs]
Mon Feb 16 21:45:22 2004 UTC (10 years, 2 months ago) by heller
Branch: MAIN
Changes since 1.65: +14 -10 lines
Diff to previous 1.65 , to selected 1.39
(signal-compiler-condition): Initialize short-message slot.
(long-compiler-message-for-emacs): New function.

Revision 1.65 - (view) (annotate) - [select for diffs]
Sun Feb 8 19:19:42 2004 UTC (10 years, 2 months ago) by heller
Branch: MAIN
Changes since 1.64: +6 -2 lines
Diff to previous 1.64 , to selected 1.39
(create-socket): Take interface as argument.

Revision 1.64 - (view) (annotate) - [select for diffs]
Sat Feb 7 22:29:54 2004 UTC (10 years, 2 months ago) by heller
Branch: MAIN
Changes since 1.63: +76 -1 lines
Diff to previous 1.63 , to selected 1.39
(inspected-parts): Implemented.

Revision 1.63 - (view) (annotate) - [select for diffs]
Sat Feb 7 19:30:05 2004 UTC (10 years, 2 months ago) by heller
Branch: MAIN
Changes since 1.62: +11 -5 lines
Diff to previous 1.62 , to selected 1.39
Update for modified thread interface.

Revision 1.62 - (view) (annotate) - [select for diffs]
Sat Feb 7 13:19:17 2004 UTC (10 years, 2 months ago) by heller
Branch: MAIN
Changes since 1.61: +42 -0 lines
Diff to previous 1.61 , to selected 1.39
(enable-sigio-on-fd): New function.  Use fallback if sb-posix:fcntl
isn't fbound.

Revision 1.61 - (view) (annotate) - [select for diffs]
Wed Feb 4 22:20:54 2004 UTC (10 years, 2 months ago) by heller
Branch: MAIN
Changes since 1.60: +4 -23 lines
Diff to previous 1.60 , to selected 1.39
(add-input-handler): Use fcntl from the sb-posix package.

Revision 1.60 - (view) (annotate) - [select for diffs]
Sat Jan 31 20:17:19 2004 UTC (10 years, 2 months ago) by heller
Branch: MAIN
Changes since 1.59: +14 -2 lines
Diff to previous 1.59 , to selected 1.39
Add more type declarations and detect missing initargs for the connection struct.  Patch by Robert E. Brown.

Revision 1.59 - (view) (annotate) - [select for diffs]
Sat Jan 31 11:50:25 2004 UTC (10 years, 2 months ago) by heller
Branch: MAIN
Changes since 1.58: +86 -10 lines
Diff to previous 1.58 , to selected 1.39
Merge stateless-emacs branch into main trunk.

Revision 1.56.2.1 - (view) (annotate) - [select for diffs]
Sat Jan 31 11:26:02 2004 UTC (10 years, 2 months ago) by heller
Branch: stateless-emacs
Changes since 1.56: +90 -13 lines
Diff to previous 1.56 , to next main 1.331 , to selected 1.39
Use signal driven IO for CMUCL and SBCL.  Use one thread per request
for multithreaded lisps.

Revision 1.58 - (view) (annotate) - [select for diffs]
Sat Jan 31 09:02:22 2004 UTC (10 years, 2 months ago) by heller
Branch: MAIN
Changes since 1.57: +12 -3 lines
Diff to previous 1.57 , to selected 1.39
Patch by Robert E. Brown.  Add type declarations to keep SBCL quiet.

Revision 1.57 - (view) (annotate) - [select for diffs]
Thu Jan 29 08:37:57 2004 UTC (10 years, 2 months ago) by heller
Branch: MAIN
Changes since 1.56: +24 -0 lines
Diff to previous 1.56 , to selected 1.39
Profiler support.  Patch by Michael Weber.

Revision 1.56 - (view) (annotate) - [select for diffs]
Fri Jan 23 21:03:11 2004 UTC (10 years, 2 months ago) by heller
Branch: MAIN
CVS Tags: STATELESS-EMACS
Branch point for: stateless-emacs
Changes since 1.55: +19 -5 lines
Diff to previous 1.55 , to selected 1.39
(eval-in-frame, return-from-frame): Implemented.
(sb-debug-catch-tag-p): New auxiliary predicate.

(source-path<): Delete unused function.

Revision 1.55 - (view) (annotate) - [select for diffs]
Tue Jan 20 09:14:56 2004 UTC (10 years, 2 months ago) by lgorrie
Branch: MAIN
Changes since 1.54: +0 -8 lines
Diff to previous 1.54 , to selected 1.39
Removed redundant MAKE-FN-STREAMS that I had re-added.
Didn't see that it was common in swank-gray.lisp.

Revision 1.54 - (view) (annotate) - [select for diffs]
Mon Jan 19 20:14:35 2004 UTC (10 years, 2 months ago) by lgorrie
Branch: MAIN
Changes since 1.53: +46 -36 lines
Diff to previous 1.53 , to selected 1.39
Updated to use `defimplementation'.

Revision 1.53 - (view) (annotate) - [select for diffs]
Sun Jan 18 07:59:00 2004 UTC (10 years, 3 months ago) by heller
Branch: MAIN
Changes since 1.52: +0 -8 lines
Diff to previous 1.52 , to selected 1.39
(make-fn-streams): Deleted.  Already defined in swank-gray.lisp.

Revision 1.52 - (view) (annotate) - [select for diffs]
Sun Jan 18 07:15:49 2004 UTC (10 years, 3 months ago) by heller
Branch: MAIN
Changes since 1.51: +7 -20 lines
Diff to previous 1.51 , to selected 1.39
(arglist-string): Refactor common code to swank.lisp.

(call-without-interrupts, getpid): Are now generic functions.

Revision 1.51 - (view) (annotate) - [select for diffs]
Thu Jan 15 18:31:04 2004 UTC (10 years, 3 months ago) by heller
Branch: MAIN
Changes since 1.50: +4 -0 lines
Diff to previous 1.50 , to selected 1.39
(remove-input-handlers): New method.

Revision 1.50 - (view) (annotate) - [select for diffs]
Thu Jan 15 11:41:20 2004 UTC (10 years, 3 months ago) by lgorrie
Branch: MAIN
Changes since 1.49: +32 -0 lines
Diff to previous 1.49 , to selected 1.39
Implemented multiprocessing. Not perfect.

Revision 1.49 - (view) (annotate) - [select for diffs]
Tue Jan 13 22:50:09 2004 UTC (10 years, 3 months ago) by heller
Branch: MAIN
Changes since 1.48: +2 -0 lines
Diff to previous 1.48 , to selected 1.39
(*swank-in-background*): Set to :fd-handler.

Revision 1.48 - (view) (annotate) - [select for diffs]
Tue Jan 13 18:20:04 2004 UTC (10 years, 3 months ago) by heller
Branch: MAIN
Changes since 1.47: +21 -38 lines
Diff to previous 1.47 , to selected 1.39
(create-socket, local-port, close-socket, accept-connection)
(add-input-handler, spawn): Implement new socket interface.

Revision 1.47 - (view) (annotate) - [select for diffs]
Tue Jan 13 04:21:41 2004 UTC (10 years, 3 months ago) by lgorrie
Branch: MAIN
Changes since 1.46: +17 -30 lines
Diff to previous 1.46 , to selected 1.39
Updated for new network interface.

Revision 1.46 - (view) (annotate) - [select for diffs]
Mon Jan 12 02:14:03 2004 UTC (10 years, 3 months ago) by lgorrie
Branch: MAIN
Changes since 1.45: +54 -58 lines
Diff to previous 1.45 , to selected 1.39
Implemented new server interface.

Revision 1.45 - (view) (annotate) - [select for diffs]
Fri Jan 2 18:23:14 2004 UTC (10 years, 3 months ago) by heller
Branch: MAIN
CVS Tags: SLIME-0-10
Changes since 1.44: +13 -34 lines
Diff to previous 1.44 , to selected 1.39
(format-condition-for-emacs): Replaced with debugger-condition-for-emacs.

(backtrace): Use print-with-frame-label.

(frame-locals): Rename the :symbol property to :name.

Revision 1.44 - (view) (annotate) - [select for diffs]
Fri Dec 12 03:22:36 2003 UTC (10 years, 4 months ago) by dbarlow
Branch: MAIN
Changes since 1.43: +3 -9 lines
Diff to previous 1.43 , to selected 1.39
	* swank-source-path-parser.lisp: new file, excerpting part of
	swank-cmucl.lisp to where SBCL can find it as well.

Revision 1.43 - (view) (annotate) - [select for diffs]
Thu Dec 11 17:08:55 2003 UTC (10 years, 4 months ago) by dbarlow
Branch: MAIN
Changes since 1.42: +1 -1 lines
Diff to previous 1.42 , to selected 1.39
unbroke last commit, in two obvious respects

Revision 1.42 - (view) (annotate) - [select for diffs]
Thu Dec 11 16:37:32 2003 UTC (10 years, 4 months ago) by dbarlow
Branch: MAIN
Changes since 1.41: +46 -27 lines
Diff to previous 1.41 , to selected 1.39
	* swank-sbcl.lisp (compiler-note-location): replace with
	thinly-ported version from the CMUCL backend which understands
	:lisp as a pathname

	* slime.el (slime-xrefs-for-notes): a little more temporary
	variables, a little less cdr.  Should be slightly faster on
	big systems
	(slime-goto-next-xref): set window point as well as buffer point -
	now works in GNU Emacs 21.2.1

Revision 1.41 - (view) (annotate) - [select for diffs]
Thu Dec 11 02:20:13 2003 UTC (10 years, 4 months ago) by dbarlow
Branch: MAIN
Changes since 1.40: +16 -17 lines
Diff to previous 1.40 , to selected 1.39
        * swank-backend.lisp (call-with-compilation-hooks): new GF
        should set up all appropriate error condition loggers etc
        to do a compilation preserving the notes.  Implement for
        sbcl, cmucl

        * swank-sbcl.lisp (compiler-note-location and elsewhere):
        remove all trace of *compile-filename*
        (compile-*-for-emacs): shorten

Revision 1.40 - (view) (annotate) - [select for diffs]
Wed Dec 10 19:02:35 2003 UTC (10 years, 4 months ago) by dbarlow
Branch: MAIN
Changes since 1.39: +5 -2 lines
Diff to previous 1.39
	* swank-sbcl.lisp (serve-request): more fiddling with serve-event
	descriptors

	* slime.el (slime-repl-return): slime-check-connected, otherwise
	pressing Return in an unconnected repl gets a bit weird

Revision 1.39 - (view) (annotate) - [selected]
Wed Dec 10 13:26:08 2003 UTC (10 years, 4 months ago) by heller
Branch: MAIN
CVS Tags: SLIME-0-9
Changes since 1.38: +3 -2 lines
Diff to previous 1.38
(create-swank-server): Accept an announce-function keyword argument.

Revision 1.38 - (view) (annotate) - [select for diffs]
Sun Dec 7 19:16:24 2003 UTC (10 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.37: +1 -2 lines
Diff to previous 1.37 , to selected 1.39
(function-source-locations): Is replaces
function-source-location-for-emacs. Make it at generic function.
(function-source-location-for-emacs): Remove.

Revision 1.37 - (view) (annotate) - [select for diffs]
Sat Dec 6 08:42:54 2003 UTC (10 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.36: +1 -1 lines
Diff to previous 1.36 , to selected 1.39
(open-listener): Don't make the socket non-blocking.

Revision 1.36 - (view) (annotate) - [select for diffs]
Sat Dec 6 08:13:14 2003 UTC (10 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.35: +70 -39 lines
Diff to previous 1.35 , to selected 1.39
(handle-notification-condition): Don't ignore warnings without
(compiler-note-location, brief-compiler-message-for-emacs,
compiler-note-location): Handle null context.
(compile-file-for-emacs): Bind *compile-filename* and load the fasl
file only if it exists.
(function-source-location): The name argument is now optional a should
be a symbol.
(find-function-locations): Return errors as a list of one error.
(call-with-debugging-environment): Set *print-level* to 4 and
*print-level* to 10.  (Where both nil.)
(source-location-for-emacs): Fall back to the location of the function
if there is no block-debug-info.
(safe-source-location-for-emacs): Catch error only; not all conditions.
*compile-filename*: New variable.

Revision 1.35 - (view) (annotate) - [select for diffs]
Tue Dec 2 14:01:15 2003 UTC (10 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.34: +7 -11 lines
Diff to previous 1.34 , to selected 1.39
(find-function-locations): Return a non-empty list of source locations.

Revision 1.34 - (view) (annotate) - [select for diffs]
Tue Dec 2 00:56:26 2003 UTC (10 years, 4 months ago) by dbarlow
Branch: MAIN
Changes since 1.33: +13 -10 lines
Diff to previous 1.33 , to selected 1.39
	* swank-sbcl.lisp (function-source-location-for-emacs): return a
	list of source locations (one per method) when the request is
	for a GF.  This seems to make the elisp side popup a window
	to let the user select one.  Cool.

Revision 1.33 - (view) (annotate) - [select for diffs]
Mon Dec 1 22:30:34 2003 UTC (10 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.32: +1 -1 lines
Diff to previous 1.32 , to selected 1.39
(invoke-nth-restart): Use invoke-restart-interactively.

Revision 1.32 - (view) (annotate) - [select for diffs]
Sun Nov 30 08:15:42 2003 UTC (10 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.31: +59 -54 lines
Diff to previous 1.31 , to selected 1.39
Use the new format for source locations and implement
find-function-locations (just calls the old code).

Revision 1.31 - (view) (annotate) - [select for diffs]
Sat Nov 29 23:31:29 2003 UTC (10 years, 4 months ago) by dbarlow
Branch: MAIN
Changes since 1.30: +1 -1 lines
Diff to previous 1.30 , to selected 1.39
	* swank-sbcl.lisp (source-location-for-emacs):
	sb-debug::print-description-to-string takes only two args, not
	three.  Now 'v' command works in sldb :-)

Revision 1.30 - (view) (annotate) - [select for diffs]
Sat Nov 29 22:14:07 2003 UTC (10 years, 4 months ago) by dbarlow
Branch: MAIN
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 , to selected 1.39
Sort out some of the problems with stale serve-event handlers
(note that you also need a fix for sb-bsd-sockets from 0.8.6.x SBCL,
if this is bothering you)

Revision 1.29 - (view) (annotate) - [select for diffs]
Fri Nov 28 12:10:41 2003 UTC (10 years, 4 months ago) by heller
Branch: MAIN
Changes since 1.28: +30 -5 lines
Diff to previous 1.28 , to selected 1.39
Support for output redirection to an Emacs buffer via a dedicated
network stream.  Can be enabled with *use-dedicated-output-stream*.

Revision 1.28 - (view) (annotate) - [select for diffs]
Tue Nov 25 00:23:27 2003 UTC (10 years, 4 months ago) by dbarlow
Branch: MAIN
Changes since 1.27: +0 -63 lines
Diff to previous 1.27 , to selected 1.39
	* swank-sbcl.lisp: delete big chunk of leftover commented-out
	code

Revision 1.27 - (view) (annotate) - [select for diffs]
Mon Nov 24 03:18:25 2003 UTC (10 years, 4 months ago) by lgorrie
Branch: MAIN
Changes since 1.26: +1 -1 lines
Diff to previous 1.26 , to selected 1.39
(function-source-location): Use TRUENAME to resolve source file name
(thanks Lawrence Mitchell).

Revision 1.26 - (view) (annotate) - [select for diffs]
Sun Nov 23 14:16:42 2003 UTC (10 years, 4 months ago) by lgorrie
Branch: MAIN
Changes since 1.25: +9 -9 lines
Diff to previous 1.25 , to selected 1.39
Updated to use new debugger interfaces in swank-backend.lisp.

Revision 1.25 - (view) (annotate) - [select for diffs]
Sun Nov 23 12:14:04 2003 UTC (10 years, 4 months ago) by lgorrie
Branch: MAIN
Changes since 1.24: +10 -20 lines
Diff to previous 1.24 , to selected 1.39
Updated to use new debugger interface in swank-backend.lisp.

* swank-cmucl.lisp: Tidied up outline-minor-mode structure and
added comments and docstrings.

Revision 1.24 - (view) (annotate) - [select for diffs]
Sun Nov 23 05:00:13 2003 UTC (10 years, 4 months ago) by lgorrie
Branch: MAIN
Changes since 1.23: +69 -85 lines
Diff to previous 1.23 , to selected 1.39
* swank-sbcl.lisp (describe-symbol-for-emacs): Don't ask for
(documentation SYM 'class), CLHS says there isn't any 'class
documentation (and SBCL warns).

* swank.lisp, swank-cmucl.lisp, swank-sbcl.lisp: Refactored
interface through swank-backend.lisp for: swank-compile-file,
swank-compile-string, describe-symbol-for-emacs (apropos),
macroexpand-all, arglist-string.

* swank-backend.lisp: New file defining the interface between
swank.lisp and the swank-*.lisp implementation files.

Revision 1.23 - (view) (annotate) - [select for diffs]
Sun Nov 16 18:08:43 2003 UTC (10 years, 5 months ago) by heller
Branch: MAIN
CVS Tags: SLIME-0-8
Changes since 1.22: +16 -70 lines
Diff to previous 1.22 , to selected 1.39
Import gray stream symbols.
(without-interrupts*): New function.

Revision 1.22 - (view) (annotate) - [select for diffs]
Thu Nov 13 00:36:56 2003 UTC (10 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.21: +28 -26 lines
Diff to previous 1.21 , to selected 1.39
Modification for the new source-location stuff. I'm sure OpenMCL is
now pretty broken.

Revision 1.21 - (view) (annotate) - [select for diffs]
Sat Nov 8 00:40:27 2003 UTC (10 years, 5 months ago) by heller
Branch: MAIN
CVS Tags: SLIME-0-7
Changes since 1.20: +6 -4 lines
Diff to previous 1.20 , to selected 1.39
(swank-macroexpand-all): Implemented.

Revision 1.20 - (view) (annotate) - [select for diffs]
Tue Nov 4 08:03:20 2003 UTC (10 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 , to selected 1.39
(arglist-string): Pass *buffer-package* to find-symbol-designator.

Revision 1.19 - (view) (annotate) - [select for diffs]
Mon Nov 3 23:22:41 2003 UTC (10 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.18: +1 -1 lines
Diff to previous 1.18 , to selected 1.39
(arglist-string): Don't intern the function name.  Use find-symbol-designator
instead.

Revision 1.18 - (view) (annotate) - [select for diffs]
Sun Nov 2 23:08:03 2003 UTC (10 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.17: +41 -28 lines
Diff to previous 1.17 , to selected 1.39
Input redirection works now on the line level, like a tty.
Output streams are now line buffered.
We no longer compute the backtrace-length.

Revision 1.17 - (view) (annotate) - [select for diffs]
Sat Nov 1 15:48:19 2003 UTC (10 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.16: +27 -7 lines
Diff to previous 1.16 , to selected 1.39
Implement stream-line-column.

Revision 1.16 - (view) (annotate) - [select for diffs]
Fri Oct 31 16:58:37 2003 UTC (10 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.15: +24 -13 lines
Diff to previous 1.15 , to selected 1.39
Gray stream based input redirection from Emacs.

Revision 1.15 - (view) (annotate) - [select for diffs]
Wed Oct 29 23:53:55 2003 UTC (10 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.14: +10 -20 lines
Diff to previous 1.14 , to selected 1.39
(serve-request): Bind a slime-toplevel catcher and handle
slime-read-errors.

(sldb-continue, throw-to-toplevel): Moved to swank.lisp.

Revision 1.14 - (view) (annotate) - [select for diffs]
Sat Oct 25 01:54:00 2003 UTC (10 years, 5 months ago) by lgorrie
Branch: MAIN
CVS Tags: BACKHACKATTACK-1, SLIME-0-6
Branch point for: backhackattack-1
Changes since 1.13: +6 -2 lines
Diff to previous 1.13 , to selected 1.39
Changed the connection setup to use a dynamic collision-free TCP
port. The new protocol is this:

  Emacs calls (swank:start-server FILENAME) via the listener. FILENAME
  is /tmp/slime.${emacspid}

  Lisp starts a TCP server on a dynamic available port and writes the
  port number it gets to FILENAME.

  Emacs asynchronously polls for FILENAME's creation. When it exists,
  Emacs reads the port number, deletes the file, and makes the
  connection.

The advantage is that you can run multiple Emacsen each with an
inferior lisp, and the port numbers will never collide and Emacs
will always connect to the right lisp.

All backends are updated, but only CMUCL and SBCL are
tested. Therefore, OpenMCL is almost certainly broken just now.

Revision 1.13 - (view) (annotate) - [select for diffs]
Thu Oct 23 15:52:24 2003 UTC (10 years, 5 months ago) by lgorrie
Branch: MAIN
CVS Tags: SLIME-0-5
Changes since 1.12: +1 -1 lines
Diff to previous 1.12 , to selected 1.39
(accept-connection): Use a character stream to match swank.lisp.

Revision 1.12 - (view) (annotate) - [select for diffs]
Tue Oct 21 19:36:23 2003 UTC (10 years, 5 months ago) by lgorrie
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 , to selected 1.39
(swank-compile-string): Include only one :SOURCE-PATH attribute in the
plist, and replace the front element with a 0 (fixes a problem
probably due to recent hacks to the elisp source-path lookups).

Revision 1.11 - (view) (annotate) - [select for diffs]
Mon Oct 20 13:56:44 2003 UTC (10 years, 5 months ago) by dbarlow
Branch: MAIN
Changes since 1.10: +2 -3 lines
Diff to previous 1.10 , to selected 1.39
*** empty log message ***

Revision 1.10 - (view) (annotate) - [select for diffs]
Sun Oct 19 21:40:28 2003 UTC (10 years, 5 months ago) by heller
Branch: MAIN
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 , to selected 1.39
Bind *slime-input* and *slime-io* to dummy values.

Revision 1.9 - (view) (annotate) - [select for diffs]
Fri Oct 17 21:18:04 2003 UTC (10 years, 6 months ago) by heller
Branch: MAIN
Changes since 1.8: +0 -125 lines
Diff to previous 1.8 , to selected 1.39
Move more stuff to swank.lisp.

Revision 1.8 - (view) (annotate) - [select for diffs]
Fri Oct 17 19:45:59 2003 UTC (10 years, 6 months ago) by lgorrie
Branch: MAIN
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 , to selected 1.39
Report style-warnings separately from notes (patch from Christopher
Rhodes).

Use REQUIRE to load sb-introspect instead of loading the source file
(requires the sb-introspect library to be installed, which doesn't yet
happen in the sourceforge-lagged SBCL anoncvs, but does in the real
one).

Revision 1.7 - (view) (annotate) - [select for diffs]
Fri Oct 17 19:09:14 2003 UTC (10 years, 6 months ago) by jbielman
Branch: MAIN
Changes since 1.6: +0 -3 lines
Diff to previous 1.6 , to selected 1.39
Many fixes for the OpenMCL port:

   * swank.lisp (apropos-symbols): Change back to using the standard
   2-argument APROPOS-LIST and check symbols explicitly when
   EXTERNAL-ONLY is true.
   Move loading of sys-dependent backend code into 'swank-loader'.

   * swank-sbcl.lisp: Moved declarations of *PREVIOUS-COMPILER-CONDITION*
   into 'swank.lisp' to kill warnings about undefined variables.

   * swank-openmcl.lisp (handle-compiler-warning): Use source position
   instead of function name for warning locations.
   (swank-compile-string): Compile into a temporary file instead of
   using COMPILE so finding warning positions works when using C-c C-c.
   (compute-backtrace): Don't display frames without a function.
   (apropos-list-for-emacs): Implement APROPOS.
   (who-calls): Implement WHO-CALLS.
   (completions): Implement COMPLETIONS.
   Use NIL instead of zero so FRESH-LINE does the right thing.

   * slime.el (slime-maybe-compile-swank): Removed function---compile
   the backend using 'swank-loader.lisp' instead.
   (slime-backend): Changed default backend to 'slime-loader'.
   (slime-lisp-binary-extension): Deleted as this is no longer needed.

   * swank-loader.lisp: New file.

Revision 1.6 - (view) (annotate) - [select for diffs]
Fri Oct 17 01:38:41 2003 UTC (10 years, 6 months ago) by dbarlow
Branch: MAIN
Changes since 1.5: +49 -1 lines
Diff to previous 1.5 , to selected 1.39
Transplanted Helmut's serve-event server to
replace the existing thread-using server.  SLIME now has no
dependency on SB-THREAD

Revision 1.5 - (view) (annotate) - [select for diffs]
Thu Oct 16 20:05:21 2003 UTC (10 years, 6 months ago) by lgorrie
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 , to selected 1.39
The macro `with-trapping-compiler-notes' is now defined in the
portable code, and expands to a call to the backend-defined
`call-trapping-compiler-notes' with the body wrapped in a lambda. This
is to avoid swank.lisp referring to macros in the backends -- it gets
compiled first so it thinks they're functions.

Revision 1.4 - (view) (annotate) - [select for diffs]
Wed Oct 15 22:48:30 2003 UTC (10 years, 6 months ago) by dbarlow
Branch: MAIN
Changes since 1.3: +9 -106 lines
Diff to previous 1.3 , to selected 1.39
Third portablizing iteration: more refactoring common bits

pprint-eval set-package *compiler-notes* clear-compiler-notes
*notes-database* clear-note-database features canonicalize-filename
compiler-notes-for-file compiler-notes-for-emacs measure-time-interval
call-with-compilation-hooks
list-all-package-names apropos-symbols print-output-to-string
print-description-to-string describe-symbol describe-function
apply-macro-expander swank-macroexpand-1 swank-macroexpand
disassemble-symbol

Revision 1.3 - (view) (annotate) - [select for diffs]
Wed Oct 15 22:02:49 2003 UTC (10 years, 6 months ago) by dbarlow
Branch: MAIN
Changes since 1.2: +1 -126 lines
Diff to previous 1.2 , to selected 1.39
Second iteration refactoring common bits:

server-port *swank-debug-p* start-server *emacs-io* *slime-output*
read-next-form read-form *redirect-output* read-from-emacs
send-to-emacs prin1-to-string-for-emacs defslimefun *buffer-package*
from-string to-string guess-package-from-string eval-string
interactive-eval defslimefun-unimplemented
*swank-io-package*

Revision 1.2 - (view) (annotate) - [select for diffs]
Wed Oct 15 21:24:33 2003 UTC (10 years, 6 months ago) by dbarlow
Branch: MAIN
Changes since 1.1: +1 -5 lines
Diff to previous 1.1 , to selected 1.39
First checkin on the way to rearranging the backends.  Rename
swank.lisp to swank-cmucl.lisp, then create new swank.lisp which loads
an appropriate backend according to *features*.

Next, identify common functions in the backends and move them into
swank.lisp

Revision 1.1 - (view) (annotate) - [select for diffs]
Wed Oct 15 13:59:26 2003 UTC (10 years, 6 months ago) by dbarlow
Branch: MAIN
CVS Tags: SLIME-0-4
Diff to selected 1.39
First cut at an SBCL backend for SLIME.  Note that this requires
the SB-INTROSPECT package which is presently only in SBCL CVS HEAD

;;; Cursory testing has found that the following appear to work
;;;
;;; * Symbol completion.
;;; * Evaluation of forms with C-M-x
;;; * Apropos
;;; * Compilation of defuns with C-c C-c
;;; * File compilation with C-c C-k, apparently including error parsing
;;; * Disassembling the symbol at point with C-c M-d
;;; * Describing symbol at point with C-c C-d
;;; * Macroexpanding with C-c RET
;;; * find-definition, using sb-introspect
;;; * Basic debugger stuff: restarts, backtrace, toggle details
;;; * Can now interrupt a busy sbcl with C-c C-g
;;; * Most of the tests
;;;
;;; Things that aren't done/don't work yet:
;;;
;;; * Cross-referencing (nor is it likely, absent XREF port to SBCL)
;;; * testsuite can't find LOOP, reports bogus failure on some arglist lookups
;;; * eval-in-frame
;;; * M-. has an off-by-two (character positions) error
;;; * A slime command to load an asdf system.  Note that this might involve
;;;    compiling/loading files that Emacs has no buffers for
;;; * Dealing with multiple threads

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.5