This project is mirrored from https://gitee.com/mirrors/slime.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 20 Oct, 2014 5 commits
-
-
Helmut Eller authored
* slynk/backend/slynk-abcl.lisp (make-output-stream, make-input-stream): Use ext:make-slime-output-stream because ABCL's Gray streams don't work well enough. * slynk/slynk-loader.lisp (*sysdep-files*, *slynk-files*): Don't load slynk/slynk-gray.lisp for ABCL. * slynk/slynk.asd (*sysdep-files*, *slynk-files*): Don't load slynk/slynk-gray.lisp for ABCL. (cherry picked from SLIME commit 4d69a95f) Conflicts: ChangeLog slynk/slynk-loader.lisp
-
Helmut Eller authored
code that was there only for compatibility with older versions. (cherry picked from SLIME commit d6e3d509) Conflicts: ChangeLog slynk/backend/slynk-cmucl.lisp
-
Helmut Eller authored
(cherry picked from SLIME commit a16c8720) Conflicts: ChangeLog slynk/backend/slynk-cmucl.lisp slynk/backend/slynk-sbcl.lisp
-
https://github.com/slime/slime/issues/195Helmut Eller authored
sb-sys:enable-interrupt does not exist on SBCL +win32 so disable it on Windows. * slynk/backend/slynk-sbcl.lisp (add-sigio-handler, remove-sigio-handlers): Disable it on Windows along with install-sigint-handler. (cherry picked from SLIME commit 0ed3782e) Conflicts: ChangeLog
-
João Távora authored
* sly.el (sly-remote-y-or-n-p): Rename from `sly-y-or-n-p'. (sly-dispatch-event): Use it.
-
- 17 Oct, 2014 2 commits
-
-
João Távora authored
This is consistent with `sly-editing-mode'. * sly-mrepl.el (sly-mrepl-mode): Locally bind `lisp-indent-function' to `common-lisp-indent-function'
-
João Távora authored
* contrib/sly-stickers.el (sly-stickers): Consider `sly-stickers-shorcut-mode'. (sly-stickers-enable): Fix indentation. (sly-stickers-shortcuts-enable): New function. (sly-stickers-shortcut-mode-map): New map. (sly-stickers-shortcut-mode): New minor mode. (sly-stickers--stickers): Make a connection var. (sly-stickers--sticker,sly-stickers--arm-sticker) (sly-stickers--bring-out-yer-dead) (sly-stickers-fetch-all-and-forget): `sly-stickers--sticker' is a connection var. (sly-stickers-fetch-and-replay): Implement primitive version. (sly-stickers-fetch-all-and-forget): Tweak zombie message. * contrib/slynk-stickers.lisp (recording): Store sticker in recording. (initialize-instance): Store recording in sticker and global var after making it. (sticker): Store ID in sticker. (call-with-sticker-recording): Just MAKE-INSTANCE and let INITIALIZE-INSTANCE take care of the rest. (next-index-and-recording): New helper. (visit-next): New slyfun. (fetch-and-forget): Call FETCH and FORGET. (fetch): New slyfun. (forget): New slyfun.
-
- 16 Oct, 2014 5 commits
-
-
Joao Tavora authored
* contrib/sly-stickers.el (sly-stickers-exited-non-locally-face): Reverse attribute order as it affects `get-face-property' (sly-stickers--set-face): Assert that a color can be guessed. (sly-stickers--arm-sticker): Renamed `sly-stickers--last-value-desc' to `sly-stickers--most-recent-description' (sly-stickers--last-value-desc): Remove. (sly-stickers--populate-sticker): Merge in `sly-stickers--mark-empty-sticker' behaviour. (sly-stickers--mark-empty-sticker): Removed. (sly-stickers-fetch-all-and-forget): Conform to new protocol. * contrib/slynk-stickers.lisp (recording): New class. (describe-recording, print-object, exited-non-locally-p): New helpers. (call-with-sticker-recording): Record condition. (call-with-sticker-recording): Make instances of `recording' (fetch-and-forget): Use new slot values `new-recordings-of' and `reported-recordings-of'. * test/sly-stickers-tests.el (sly-stickers--values-at-point): Remove. (stickers-record-stuff): Remove assertion that made test too brittle.
-
João Távora authored
* sly-stickers-tests.el (stickers-record-stuff): Call `sly-stickers-fetch-all-and-forget'.
-
João Távora authored
* contrib/sly-stickers.el (sly-stickers-mode-map): Change `sly-sticker-dwim' binding yet again to C-c C-s C-s to free up C-c C-s prefix for other sticker-related operations. Bind C-c C-s C-r to unimplemented `sly-stickers-fetch-and-replay'. (sly-stickers-fetch-all-and-forget): Renamed from `sly-stickers-fetch'. (sly-stickers-fetch-and-replay): New function. * contrib/slynk-stickers.lisp (call-with-sticker-recording): New helper function. (record): Use CALL-WITH-STICKER-RECORDING (check-and-forget): Renamed from CHECK-STICKERS.
-
João Távora authored
* sly-stickers.el (sly-stickers--decrease-prio) (sly-stickers--increase-prio): Don't recurse.
-
João Távora authored
* sly-stickers.el (sly-stickers-max-nested-stickers): New user-visible customization variable. (sly-stickers-color-face-attribute): New user-visible variable. (sly-stickers--guess-face-color): New helper. (sly-stickers--set-face): Use new helpers and variables.
-
- 14 Oct, 2014 3 commits
-
-
João Távora authored
* sly-stickers.el (sly-stickers-after-buffer-compilation): Use `cl-loop' not `loop'
-
João Távora authored
* sly-retro.el (sly-retro-slynk-to-swank): `sexp' may be a dotted list, so don't use `mapcar'
-
João Távora authored
In REVERT-GLOBAL-IO-REDIRECTION and related function, must be sure to not signal errors. In this case SLYNK:*LOG-OUTPUT* must be used instead of *STANDARD-OUT*, since the standard streams whose redirection are about to be reverted might be in an unconsistent state after, for instance, restarting an image. * slynk-mrepl.lisp (open-dedicated-output-stream): Improve doc slightlyt. (revert-global-io-redirection): Log to SLYNK:*LOG-OUTPUT*.
-
- 10 Oct, 2014 1 commit
-
-
João Távora authored
Some multithread implementations like Allegro don't see special variables like *EMACS-CONNECTION* in new spawned threads. If *USE-DEDICATED-OUTPUT-STREAM* is nil, this results in a grey stream whose function fails when called from these threads. Otherwise the dedicated output socket works OK. This is **not** a concurrency issue, since that is handled by SEND-TO-EMACS fine. Test case for Allegro CL, which should work either in the main or secondary REPLs. (setq slynk-mrepl:*use-dedicated-output-stream* nil) (mp:process-run-function "yo" (lambda () (loop repeat 5 do (princ "Hello, world") (terpri) (sleep 1)))) * contrib/slynk-mrepl.lisp (make-mrepl-output-stream): Use SLYNK:MAKE-THREAD-BINDINGS-AWARE-LAMBDA. (:slynk-mrepl): Export *USE-DEDICATED-OUTPUT-STREAM*, *DEDICATED-OUTPUT-STREAM-PORT*, and *DEDICATED-OUTPUT-STREAM-BUFFERING* * slynk/slynk.lisp (make-thread-bindings-aware-lambda): New function. (:slynk-api): Export MAKE-THREAD-BINDINGS-AWARE-LAMBDA.
-
- 08 Oct, 2014 7 commits
-
-
João Távora authored
* slynk-mrepl.lisp (open-dedicated-output-stream): On implementations not supporting :LINE as a value of *USE-DEDICATED-OUTPUT-STREAM*, use an additional grey stream.
-
João Távora authored
(sly-dispatch-event): Pass :RAISE to `sly--open-inspector'.
-
João Távora authored
-
João Távora authored
-
João Távora authored
* sly-stickers.el (sly-stickers-fetch): Always provide some feedback when fetching stickers.
-
João Távora authored
This is a tentative change for various reasons: - In slynk/slynk-gray.lisp a similar technique to be use here (git 8a91fe75 Nikodemus Siivola 2006-04-12 08:43:55 +0000 32) but was removed in 2008. Bringing it back seems harmless enough, but only in limited tests. Also STREAM-WRITE-STRING does not implement flushing on newline. - Some Lisps completely ignore the BUFFERING arg to ACCEPT-CONNECTION. - All this is trying to avoid a dedicated thread for flushing all the output streams, which, being a dirty hack, might in the end be a the most battle-tested alternative. Also the default value for SWANK-MREPL:*USE-DEDICATED-OUTPUT-STREAM* should probably be moved to a function that detects if connection is between the same host or not. This is actually a separate problem, but detected it while editing the manual. * contrib/slynk-mrepl.lisp (*dedicated-output-stream-buffering*): Default to :line, not t. SBCL and CMUCL seem to abide. CCL and ALLEGRO ignore it. * doc/sly.texi (REPL output control): New section. * slynk/slynk-gray.lisp (stream-write-char): For the STREAM-WRITE-CHAR interface, FINISH-OUTPUT when a newline is detected. * doc/sly.texi: Remove sub menus that make it very hard to edit and restructure the manual.
-
João Távora authored
-
- 06 Oct, 2014 2 commits
-
-
João Távora authored
* slynk/slynk-loader.lisp (src-files): Guard against case where SRC-DIR does not have a pathname directory.
-
João Távora authored
* slynk-mrepl.lisp (sync-package-and-default-directory) (guess-and-set-package): Slave "slyfuns" must return an elisp- readable value.
-
- 04 Oct, 2014 8 commits
-
-
Joao Tavora authored
* CONTRIBUTING.md: Update example and fix a typo. * contrib/sly-mrepl.el (sly-mrepl--result-counter): Remove variable. (sly-mrepl-mode): Don't set `sly-mrepl--result-counter' (:write-values): Rename arg to "results". (:clear-repl-history): Don't set `sly-mrepl--result-counter'. (sly-mrepl--eval-for-repl): Rewrite using `cl-destructuring-bind'. (sly-mrepl--make-result-button): Only two arguments. (sly-mrepl--insert-returned-values): Don't use `sly-mrepl--result-counter'. (sly-mrepl-shortcut-alist): Add "clear repl" as a REPL shortcut. * test/sly-stickers-tests.el (stickers-in-a-file): New test. (stickers-record-stuff): Fix FIXME. * contrib/slynk-mrepl.lisp (make-results): New helper. (mrepl-eval): Use MAKE-RESULTS. (inspect-entry): Don't use SLYNK::TO-LINE here. (copy-to-repl): Use MAKE-RESULTS.
-
Joao Tavora authored
explicitly to appease sbcl.
-
Joao Tavora authored
* sly.el (sly-region-for-defun-at-point): Accept POS as default point. * contrib/sly-stickers.el (sly-stickers-compile-region-aware-of-stickers-1): New helper function. Accept `callback'. Accept `sync', `flash` and `fallback` as boolean kwargs. (sly-stickers-compile-region-aware-of-stickers): Make use of `sly-stickers-compile-region-aware-of-stickers-1' (sly-stickers-after-buffer-compilation): Implemented, makes use of `sly-stickers-compile-region-aware-of-stickers-1'. * contrib/slynk-stickers.lisp (defpackage :slynk-stickers): Export slyfuns explicitly to appease sbcl. (compile-for-stickers): Add docstring. Only return PROBE if it was a successful compilation. Return nil if no ORIGINAL-STRING was given. * test/sly-stickers-tests.el (stickers-in-a-file): New test. (stickers-record-stuff): Fix FIXME.
-
Joao Tavora authored
-
Joao Tavora authored
-
Joao Tavora authored
* sly.el (sly-menu): Reorganize. Tracing options moved to `sly-trace-dialog' contrib. * contrib/sly-trace-dialog.el (sly-trace-dialog-untrace-all): New function. (sly-trace-dialog--shortcut-menu): Add new "Untrace all" option. * contrib/slynk-trace-dialog.lisp (dialog-untrace-all): Return number of specs untraced.
-
Joao Tavora authored
* sly.el (sly-messages): Require new lib. (sly-message, sly--last-message, sly-temp-message, sly-warning) (sly-error, sly-display-oneliner, sly-oneliner) (sly-completing-read-function, sly-completing-read) (sly-flash-inhibit, sly-flash-region): Move to new lib/sly-messages.el lib * lib/sly-buttons.el (sly-messages): require new lib. * lib/sly-messages.el: New file.
-
João Távora authored
* sly-buttons.el (sly-button--searchable-buttons-at): Ensure the non-overlay button is actually not an overlay.
-
- 03 Oct, 2014 3 commits
-
-
João Távora authored
Include the docstring in the inspector for SBCL
-
João Távora authored
Update refcard docs and cross-reference sections
-
Mike Clarke authored
Update the keymaps in the documentation and cross-reference sections of the refcard to match the current default maps in the code.
-
- 30 Sep, 2014 1 commit
-
-
João Távora authored
An idea by henkvr from https://github.com/slime/slime/issues/193.
-
- 29 Sep, 2014 2 commits
-
-
João Távora authored
-
Javier Olaechea authored
* slynk/backend/slynk-sbcl.lisp (emacs-inspect): Include the documentation string of the function in the inspector for the SBCL backend.
-
- 27 Sep, 2014 1 commit
-
-
João Távora authored
* sly.el (sly-macroexpansion-minor-mode-map): Use defvar. (sly-show-notes): Use `sly-button-flash'. * contrib/sly-mrepl.el (sly-mrepl-mode-map): Define more interesting bindings for M-p and M-n, also C-M-p, C-M-n. (sly-mrepl--make-result-button): Assign `sly-button-search-id' to new button. (sly-mrepl-previous-input-or-button) (sly-mrepl-next-input-or-button): New functions. * contrib/sly-stickers.el (sly-stickers--echo-sticker): Use new `sly-button-flash' (sly-stickers--flash-sticker): Removed. (sly-stickers-fetch): Use new `sly-button-flash' * lib/sly-buttons.el (sly-button-at): Use `button-type-subtype-p' (sly-button): Set a basic `sly-button-search-id' here. (sly-button-flash): New function. (sly-button-echo-part): Flash buttons by default. (sly-button--overlays-starting-at): Renamed to `sly-button--searchable-buttons-starting-at' (sly-button--searchable-buttons-at): Consider text buttons. (sly-button-search): Use `sly-button--searchable-buttons-at' (sly-button-search): Error instead of message. * test/sly-mrepl-tests.el (sly-mrepl-tests--assert-prompt): More interesting search for prompt. (sly-mrepl-tests--with-basic-repl-setup): New macro. (repl-values-and-button-navigation): New test.
-