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.
  1. 27 Sep, 2014 3 commits
    • João Távora's avatar
      Navigate REPL buttons and add some tests · 9b0e87fa
      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.
      9b0e87fa
    • João Távora's avatar
      Fix some fallout from the previous two commits · 692dc1a8
      João Távora authored
      * sly.el (sly-macroexpansion-minor-mode-map): Use defvar.
      
      * contrib/sly-mrepl.el (sly-mrepl-shortcut-key): Move down to "comma shortcut" section.
      (sly-mrepl-reset-shortcut-key): Check for `sly-mrepl-shortcut-key' with boundp.
      692dc1a8
    • João Távora's avatar
      Fix customization of `sly-mrepl-shortcut-key' · 351fa34d
      João Távora authored
      * sly-mrepl.el (sly-mrepl-shortcut-key): Add a `:set'
      specification, otherwise the variable's useless.
      (sly-mrepl-reset-shortcut-key): New function.
      (sly-mrepl--shortcut-location-p): Only attempt to search for "`"
      if the shortcut key is ","
      351fa34d
  2. 26 Sep, 2014 3 commits
    • João Távora's avatar
      Fix copying calls to REPL · a4d8a1c6
      João Távora authored
      * contrib/sly-mrepl.el (sly-mrepl--eval-for-repl): Use `after-prompt'.
      (sly-mrepl--eval-for-repl): Accept `before-prompt' and
      `after-prompt' callbacks.
      (sly-mrepl--copy-objects-to-repl): Pass `callback' as an
      `after-prompt' callback.
      (sly-mrepl--insert-call): Fix off-by-one.
      a4d8a1c6
    • João Távora's avatar
      Get rid of the ugly `sly-mrepl--copy-to-repl-after' hack · 5fb9e1f4
      João Távora authored
      * contrib/sly-mrepl.el (sly-mrepl--copy-to-repl-after): Removed
      hackish variable.
      (sly-mrepl-mode): Ditto.
      (:copy-to-repl): Delete channel method.
      (sly-mrepl--insert-prompt): `condition' arg is optional.
      (sly-mrepl--eval-for-repl): New function (little relation to the
      old function with the same name.)
      (sly-mrepl--copy-objects-to-repl): Use `sly-mrepl--eval-for-mrepl'
      (sly-mrepl--save-and-copy-for-repl): Renamed from
      `sly-mrepl--eval-for-mrepl'.
      (sly-inspector-copy-part-to-repl, sly-db-copy-part-to-repl)
      (sly-apropos-copy-symbol-to-repl)
      (sly-trace-dialog-copy-part-to-repl, sly-db-copy-call-to-repl)
      (sly-trace-dialog-copy-call-to-repl, sly-mrepl-set-directory): Use
      `sly-mrepl--save-and-copy-for-repl'.
      (sly-mrepl-set-package): Use `sly-mrepl--eval-for-repl'.
      
      * contrib/slynk-mrepl.lisp (copy-values-to-repl): Deleted.
      (prompt-arguments): New helper.
      (send-prompt): Use PROMPT-ARGUMENTS.
      (:copy-to-repl): Removed channel method.
      (:sync-package-and-default-directory): Removed channel method.
      (guess-and-set-package): Moved slyfun down.
      (eval-for-mrepl): Add docstring and clarify behaviour.
      (copy-to-repl, sync-package-and-default-directory): New "slave" slyfuns.
      5fb9e1f4
    • João Távora's avatar
      Re-implement simplified verison of the REPL comma shortcut · 32d1a285
      João Távora authored
      * contrib/sly-mrepl.el (sly-mrepl-shortcut-key): New variable.
      (sly-mrepl-mode-map): New entry for `sly-mrepl-shortcut-key'
      (sly-mrepl--shortcut-location-p): New helper.
      (sly-mrepl-shortcut-alist): New variable.
      (sly-mrepl-set-package, sly-mrepl-set-directory): New functions.
      (sly-mrepl-shortcut): New interactive command.
      
      * contrib/slynk-mrepl.lisp (:sync-package-and-default-directory):
      Use new GUESS-AND-SET-PACKAGE.
      (guess-and-set-package): New slyfun.
      (with-eval-for-repl): Accept an extra MREPL-SYM arg
      (eval-for-mrepl): Send prompt after evaluating slave slyfun.
      32d1a285
  3. 23 Sep, 2014 1 commit
    • João Távora's avatar
      Fix sticker tests · c9779a1d
      João Távora authored
      * Makefile (check-%): Accept extra SELECTOR arg
      (check-fancy): `debug-on-error' is useless.
      
      * contrib/sly-mrepl.el (sly-mrepl--teardown): Cleanup `sly-mrepl--channel'
      property in dedicated stream process.
      (sly-mrepl--dedicated-stream-output-filter): Protect against
      killed buffers.
      
      * test/sly-stickers-tests.el (sly-stickers--call-with-fixture):
      Reorganize macro helper.
      (sly-stickers--face-p): Make logic explicit.
      (stickers-record-stuff): Remove useless "coiso" sticker.
      (stickers-record-stuff): Add extra check and sync.
      c9779a1d
  4. 16 Sep, 2014 1 commit
    • João Távora's avatar
      Erradicate compiler warnings · dec2ae99
      João Távora authored
      Actually leave one in contrib/sly-cl-indent.el that I have to analyse.
      
      * sly.el: Replace functions from 'cl with their cl-lib
      counterparts.
      (require): Don't require 'cl, not even when compiling.
      (sly-read-symbol-name): Move down to avoid compiler warning.
      (sly-def-connection-var): Use gv-define-setter, not defsetf.
      (sly--this-inspector-name): Move up to avoid compiler warning.
      
      * contrib/sly-mrepl.el: Replace functions from 'cl with their cl-lib
      counterparts.
      
      * contrib/sly-stickers.el: Replace functions from 'cl with their cl-lib
      counterparts.
      dec2ae99
  5. 10 Sep, 2014 4 commits
  6. 09 Sep, 2014 2 commits
  7. 08 Sep, 2014 1 commit
    • João Távora's avatar
      Fix `when-let' usage with new `sly--when-let' · 96d5b28a
      João Távora authored
      * sly.el (sly--when-let): Renamed from `when-let'.
      
      * contrib/sly-mrepl.el (sly-mrepl--insert-prompt)
      (sly-mrepl--open-dedicated-stream): Use `sly--when-let'
      
      * contrib/sly-package-fu.el (sly-goto-package-source-definition): Use
      `sly--when-let'
      96d5b28a
  8. 06 Sep, 2014 1 commit
  9. 03 Sep, 2014 1 commit
    • João Távora's avatar
      Saner scrolling behaviour in sly-mrepl · 27b31ea5
      João Távora authored
      Also cleanup whitespace
      
      * sly-mrepl.el (sly-mrepl-return, sly-mrepl--insert-prompt): Don't
      use `sly-mrepl--recenter'.
      (sly-mrepl--recenter): Removed.
      (sly-mrepl-mode): Set three comint scrolling-related vars to nil.
      27b31ea5
  10. 02 Sep, 2014 3 commits
    • João Távora's avatar
      Tweak sylvester insertion · d2c2bce0
      João Távora authored
      * contrib/sly-mrepl.el (sly-mrepl-new): tweak sylvester insertion.
      (sly-mrepl-random-sylvester): Don't add "art by"
      
      * contrib/sylvesters.txt: Restore original signatures.
      d2c2bce0
    • João Távora's avatar
      Fix buggy sly-mrepl interaction with electric-pair-mode · 1def5f3e
      João Távora authored
      * sly-mrepl.el (sly-mrepl-mode): Set
      `parse-sexp-ignore-comments' to t
      1def5f3e
    • João Távora's avatar
      Add sylvesters · 72d73130
      João Távora authored
      * contrib/sly-mrepl.el (sly-mrepl): Add `sly-mrepl-on-connection' to `sly-connected-hook'
      (sly-mrepl-pop-sylvester): New variable.
      (sly-mrepl-on-connection): Renamed from `sly-mrepl-pop-to-mrepl'. Use `sly-mrepl-pop-sylvester'
      (sly-mrepl-new): Pop a sylvester sometimes.
      (sly-mrepl--sylvesters): New variable.
      (sly-mrepl-random-sylvester): New function.
      72d73130
  11. 01 Sep, 2014 1 commit
    • João Távora's avatar
      Wait for REPL to be setup in REPL-popping operations · a144541e
      João Távora authored
      * sly.el (sly-dispatch-event): Must be %s, not %d.
      
      * contrib/sly-mrepl.el (sly-mrepl--with-repl-for)
      (sly-mrepl--call-with-repl): New macro and helper function.
      (sly-mrepl--eval-for-repl)
      (sly-mrepl-sync-package-and-default-directory): Use
      `sly-mrepl--with-repl-for' macro.
      a144541e
  12. 29 Aug, 2014 1 commit
  13. 28 Aug, 2014 3 commits
    • João Távora's avatar
      Enable copy-to-repl for apropos buttons and other minor hacks · c0ad2715
      João Távora authored
      * sly.el (sly-read-from-minibuffer): Don't allow empty strings
      unless `allow-empty' is passed.
      (sly-read-from-minibuffer-for-swank): Pass `allow-empty' to
      `sly-read-from-minibuffer'.
      (sly-thread-control-mode): Ensure `sly-mode' is enterer.
      (sly-show-description, sly-thread-control-mode): Ensure
      popup-buffer is read-only
      * lib/lisp/swank.lisp (istate>elisp): Don't transmit :SERIAL while
      we don't know what to do with it.
      
      * contrib/sly-mrepl.el (sly-mrepl): Allow returning apropos
      symbols to REPL.
      (sly-mrepl-return): Shoosh warning.
      (sly-apropos-copy-symbol-to-repl): New function.
      c0ad2715
    • João Távora's avatar
      Fix another read bug · 55a55145
      João Távora authored
      * sly-mrepl.el (sly-mrepl-return): Go to end before
      submitting input to read, and don't save it in history.
      55a55145
    • João Távora's avatar
      Fix problems when reading from mREPL · 4c2337a2
      João Távora authored
      * contrib/sly-mrepl.el (sly-mrepl--accept-process-output): New function.
      (sly-mrepl--insert-prompt, :set-read-mode): Use it.
      (sly-mrepl--read-mode): Renamed from
      `sly-mrepl--expect-sexp-mode'
      (:set-read-mode): Unset then reset read-only when reading from
      user. Call `sly-mrepl--catch-up'.
      (sly-mrepl--insert-output, sly-mrepl-return): use
      `sly-mrepl--read-mode'
      4c2337a2
  14. 27 Aug, 2014 1 commit
    • João Távora's avatar
      Use normal `sly-rex' RPC when inspecting objects from MREPL · 28d882cc
      João Távora authored
      Also organize code in contrib/swank-mrepl.lisp
      
      * contrib/sly-mrepl.el (:inspect-object): Removed, replaced by
      usage of a slyfun.
      (sly-mrepl-part): Use `sly-eval-for-inspector'
      
      * contrib/swank-mrepl.lisp (eval-for-mrepl): New SLYFUN. Replaces
      `eval-in-mrepl'.
      (inspect-entry): New SLYFUN. Replaces the :inspect-object channel
      method.
      (:inspect-object): Deleted channel method.
      28d882cc
  15. 26 Aug, 2014 1 commit
  16. 25 Aug, 2014 2 commits
    • João Távora's avatar
      No longer trample REPLs · 657ce053
      João Távora authored
      * sly-mrepl.el (sly-mrepl--teardown): Slightly cleaner teardown.
      657ce053
    • João Távora's avatar
      Bring back compound completion · 6aa5d6af
      João Távora authored
      * NEWS.md: Update.
      
      * sly.el (sly-complete-symbol-function): "Compound style" option
      points to `sly-c-p-c-complete-symbol'
      
      * contrib/sly-fuzzy.el (sly-c-p-c-symbol-completions)
      (sly-c-p-c-char-name-completions, sly-c-p-c-complete-symbol): New function.
      
      * contrib/sly-mrepl.el (sly-mrepl-mode): Pass 1 to `sly-mode'
      6aa5d6af
  17. 23 Aug, 2014 2 commits
    • João Távora's avatar
      Consolidate buffer names · 519b51af
      João Távora authored
      * sly.el (sly-buffer-name): New implementation.
      (sly-compose): New function.
      (sly-process-available-input, sly-net-send): Pass process to
      `sly-log-event'
      (sly-handle-net-read-error): Pass process to `sly-buffer-name'
      (sly-set-connection-info): Commit the final events buffer name
      here.
      (sly-dispatch-event): Pass connection to `sly-buffer-name'
      (sly-log-event): Pass process to `sly-events-buffer'
      (sly-events-buffer): Store the buffer as a process property.
      (sly-list-threads, sly-with-xref-buffer, sly-show-apropos): Pass
      connection to `sly-buffer-name'
      (sldb-get-buffer): Use `sly-buffer-name'
      (sly-update-threads-buffer): Takes new arg `buffer'
      (sly--display-threads): Renamed from `sly-display-threads'
      (sly-inspector-buffer): Pass connectino to `sly-buffer-name'
      (sly-open-inspector): No need to set `sly-buffer-connection' here
      
      * contrib/sly-autodoc.el (sly-autodoc--fontify-string): Adapt to new `sly-buffer-name'
      
      * contrib/sly-mrepl.el (sly-mrepl--buffer-name): Use `sly-buffer-name'
      (sly-mrepl--find-buffer): Find shortest named REPL.
      (sly-mrepl): Pass connection to `sly-mrepl--find-create'
      (sly-mrepl-pop-to-mrepl): No need to call `pop-to-buffer'
      (sly-mrepl-new): Take `connection' and `handle' args. Prompt user
      for REPL nickname.
      
      * contrib/sly-trace-dialog.el (sly-trace-dialog--buffer-name): Use `sly-buffer-name'
      
      * lib/sly-tests.el (sly-inspector-visible-p): Pass connection to `sly-buffer-name'
      519b51af
    • João Távora's avatar
      Fix some sly-trace-dialog bugs and reorganize code · 9b108e16
      João Távora authored
      * sly.el (sly-inspector-mode-map, sldb-mode-map)
      (sly-xref-mode-map): Use `set-keymap-parent' and set
      `button-buffer-map' as the parent.
      
      * contrib/sly-trace-dialog.el (sly-trace-dialog-mode-map): Use
      `set-keymap-parent' and set `button-buffer-map' as the parent.
      (sly-trace-dialog-part, sly-trace-dialog-spec): Don't skip these buttons.
      (sly-trace-dialog--insert-trace): Skip just the "id string" button
      * contrib/swank-trace-dialog.lisp: Reorganized functions.
      (trace-part-or-lose, trace-or-lose): Renamed and reworked from
      FIND-TRACE-PART-OR-LOSE and FIND-TRACE
      9b108e16
  18. 22 Aug, 2014 4 commits
    • João Távora's avatar
      Add output-clearing commands to sly-mrepl · cbe0741a
      João Távora authored
      * contrib/sly-mrepl.el (:clear-repl-history):  New channel method.
      (sly-mrepl--insert-output): Propertize with field.
      (sly-mrepl--assert-mrepl): New helper.
      (sly-mrepl-insert-input): Use `sly-mrepl--assert-mrepl'
      (sly-mrepl-clear-repl, sly-mrepl-clear-recent-output): New
      interactive commands.
      (sly-mrepl--menu): Add new commands to menu.
      
      * contrib/swank-mrepl.lisp (:clear-repl-history): New channel method.
      cbe0741a
    • João Távora's avatar
      29aeb24b
    • João Távora's avatar
      Fix more newline bugs in sly-mrepl · a3d40563
      João Távora authored
      Need unit tests badly.
      
      * sly-mrepl.el (sly-mrepl--insert-output): Don't check for
      `sly-mrepl--busy-p'. Take optional `face' parameter. Use
      `sly-mrepl--break-output-p'
      (sly-mrepl--break-output-p): New function.
      (sly-mrepl--dedicated-stream-output-filter, :write-string): Insert
      output in `sly-mrepl-output-face'
      a3d40563
    • João Távora's avatar
      * sly-mrepl.el (sly-mrepl--insert-prompt): Wait a millisecond on W32 · c6774911
      João Távora authored
      This fixes an apparently buggy `accept-process-output' on Windows
      which sometimes leads to mixed output and return values in the mREPL.
      c6774911
  19. 21 Aug, 2014 1 commit
    • João Távora's avatar
      Polish faces and fix many small bugs · 4862b62a
      João Távora authored
      * sly-autoloads.el (sly-contribs): Default this variable to a list
      with `sly-fancy' as the sole argument.
      
      * sly.el (sly-inspectable-value-face): Removed.
      (define-sldb-faces): Removed unused faces
      (sly-mode-line): Better face inheritance.
      (sly--mode-line-format): Switch connection and package information.
      (sly-message): Protect against message bodies with format
      constructs.
      (sly-minibuffer-respecting-message): Resurrect. Needed by
      sly-fuzzy and sly-c-p-c contribs.
      (sly-apropos-symbol): Better face.
      (sly-apropos-insert-symbol): Better face.
      (sly-xref-face): Removed.
      (sly-xref): Use a proper `sly-part-button'
      (sly-insert-xrefs): Pass more args to `make-text-button'
      (sly-inspector-topline-face, sly-inspector-label-face)
      (sly-inspector-action-face, sly-inspector-type-face): Removed.
      
      * contrib/sly-c-p-c.el (sly-complete-symbol*): Don't call
      `sly-maybe-complete-as-filename'. It has been removed.
      
      * contrib/sly-fuzzy.el (sly-fuzzy): Insinuate into
      `sly-complete-symbol-function' on load.
      
      * contrib/sly-fuzzy.el (sly-fuzzy-insert): Don't error here, it's
      annoying.
      
      * contrib/sly-mrepl.el (sly-mrepl--insert-output): Use a face.
      (sly-mrepl--insert-prompt): Include "> " in the propertized prompt.
      (sly-mrepl-output-face): New face.
      (sly-mrepl-prompt-face): Better face.
      
      * contrib/sly-trace-dialog.el (sly-trace-dialog-part-button): Use a better
      label.
      (sly-trace-dialog--insert-trace): Use the normal face for
      `sly-part' buttons.
      
      * lib/sly-buttons.el (sly-action-face, sly-part-button-face): New faces.
      (sly-action): Use `sly-action-face'
      4862b62a
  20. 20 Aug, 2014 2 commits
  21. 19 Aug, 2014 1 commit
    • João Távora's avatar
      Redesigned mode-line fancyness · 40c64c95
      João Távora authored
      * sly.el (sly-modeline-string): Removed.
      (sly-mode-line): New face
      (sly-mode-line-format): New variable
      (sly--mode-line-format): New function
      (sly-modeline-state-string): Removed.
      (sly-cycle-connections): Handle more cases.
      (sly-dispatch-event): Update modeline more often.
      (sly-selector-methods, sly-selector-other-window, sly-selector)
      (def-sly-selector-method, etc): get rid of sly-selector.
      
      * contrib/sly-autodoc.el (sly-autodoc-mode): Don't clutter
      modeline with "Autodoc"
      
      * contrib/sly-mrepl.el (sly-mrepl-mode): Don't clutter modeline
      with dummy process status.
      (def-sly-selector-method ?m): Removed.
      
      * contrib/sly-scratch.el (sly-scratch): No :on-load section.
      
      * doc/slime.texi (Top): Remove `sly-selector' node.
      (Key bindings): Come up with another example.
      (sly-selector): Delete.
      (Multiple connections): Don't mention `sly-selector'
      40c64c95
  22. 18 Aug, 2014 1 commit
    • João Távora's avatar
      Use `sly-message' instead of `message' everywhere · 0b7b7e96
      João Távora authored
      Other uses of the minibuffer always prefix the message with
      "[sly]"
      
      * sly.el (sly-message): Redone.
      (sly-message-function, sly-background-message-function)
      (sly-background-message): Removed.
      (sly-error): New function.
      0b7b7e96