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 5 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
      Don't bother user about stickers on buffer compile if there were none · e336576b
      João Távora authored
      * sly-stickers.el (sly-stickers-after-buffer-compilation): Check for `stickers'
      e336576b
    • 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
      Closes #18: rework sly-macroexpansion-minor-mode keybindings · 3713302c
      João Távora authored
      Also make the macroexpansion buffer read-only.
      
      * sly.el (remap): Remove obsolete toplevel remappings block.
      (sly-macroexpansion-minor-mode-map): Setup remaps here.
      3713302c
    • 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. 25 Sep, 2014 1 commit
    • João Távora's avatar
      Nicer compilation note navigation interface. · db3e15db
      João Távora authored
      If point is at note beginning and last command is not a navigation
      command, begin by displaying the note at point. Otherwise go on to
      next note as usual. Affects `sly-button-forward' and
      `sly-button-backward'.
      
      * sly-buttons.el (sly-button--overlays-starting-at): New helper.
      (sly-button--last-search-command): New variable.
      (sly-button--search-1): New helper.
      (sly-button-search): Use `sly-button--search-1' and
      `sly-button--overlays-starting-at'
      db3e15db
  4. 23 Sep, 2014 3 commits
    • João Távora's avatar
      8d6a7957
    • 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
    • João Távora's avatar
      Fix bug in stickers/notes interaction · 9866a39e
      João Távora authored
      * contrib/sly-stickers.el (sly-stickers--stickers-between)
      (sly-stickers--stickers-at, sly-stickers--stickers-between)
      (sly-stickers--stickers-exactly-at): Resurrected abstractions.
      (sly-stickers--sticker, sly-stickers--sticker-substickers)
      (sly-stickers-clear-region-stickers)
      (sly-stickers-delete-sticker-at-point)
      (sly-stickers-maybe-add-sticker)
      (sly-stickers-compile-region-aware-of-stickers)
      (sly-stickers-after-buffer-compilation): Use sticker-specific abstractions.
      
      * lib/sly-buttons.el (sly-button--overlays-in)
      (sly-button--overlays-between, sly-button--overlays-exactly-at)
      (sly-button--overlays-at): Take optional `filter' arg.
      (sly-button--searchable-buttons-at): Use `sly-button--overlays-at'.
      9866a39e
  5. 19 Sep, 2014 11 commits
    • João Távora's avatar
      Fix sticker tests · 59d74a90
      João Távora authored
      * contrib/sly-stickers.el (sly-stickers-exited-non-locally-face):
      Fix docstring.
      (sly-stickers-fetch): Check all stickers in the "CL_USER" package.
      
      * test/sly-stickers-tests.el (sly-stickers--call-with-fixture):
      Don't need find-file-literally.
      (stickers-record-stuff): Return a symbol, not a keyword from BAR
      in fixture. Fix expectation. Comment out a part, needs work still
      59d74a90
    • João Távora's avatar
    • João Távora's avatar
      Fix compilation note tests for CMUCL · 5f4b2a53
      João Távora authored
      * sly.el (sly-note): Fix essential typo.
      (sly--add-in-buffer-note): Assign higher priorities to contained notes.
      5f4b2a53
    • João Távora's avatar
    • João Távora's avatar
      Merge pull request #17 from 'puercopop/macro-expand-toggle' · 751e0b86
      João Távora authored
      Added just a note in the docstring.
      751e0b86
    • João Távora's avatar
      Don' fail stickers test because of `sly-retro' contrib · a889fd94
      João Távora authored
      * sly-stickers-tests.el (sly-stickers--call-with-fixture):
      Bind `sly-net-send-translator' to nil while testing.
      a889fd94
    • Javier Olaechea's avatar
      * sly.el: (sly-macroexpand-all) add parameter just-one · 361668e5
      Javier Olaechea authored
          When non nil sly-macroexpand-all will only expand once.
      361668e5
    • João Távora's avatar
      Fix some sly-stickers bugs in code and tests · 3b811cab
      João Távora authored
      * contrib/sly-stickers.el (sly-stickers--last-value-desc): New function.
      (sly-stickers--populate-sticker)
      (sly-stickers--mark-empty-sticker): Use it.
      
      * test/sly-stickers-tests.el (sly-stickers--call-with-fixture):
      Use :CL explicitly.
      (stickers-basic-navigation, stickers-should-stick)
      (stickers-when-invalid-dont-stick): Don't need the defpackage
      forms here. Fix doncstrings.
      3b811cab
    • Joao Tavora's avatar
    • João Távora's avatar
      Small refactoring and add sly-stickers tests · 401d2ac4
      João Távora authored
      * sly.el (sly-flash-inhibit): New variable.
      (sly-flash-region): Use it.
      
      * contrib/sly-stickers.el (top): Require 'sly-buttons
      (sly-stickers--stickers-in, sly-stickers--stickers-between)
      (sly-stickers--stickers-exactly-at, sly-stickers--stickers-at)
      (sly-stickers--sticker-priority): Move to sly-buttons.el.
      (sly-stickers--set-face, sly-stickers--sticker)
      (sly-stickers--sticker-substickers)
      (sly-stickers--decrease-prio, sly-stickers--increase-prio)
      (sly-stickers-clear-region-stickers)
      (sly-stickers-delete-sticker-at-point)
      (sly-stickers-maybe-add-sticker)
      (sly-stickers-compile-region-aware-of-stickers)
      (sly-stickers-after-buffer-compilation): Use `sly-button-*' functions.
      (sly-stickers--populate-sticker): Also record case when no values were returned.
      
      * lib/sly-buttons.el (sly-button--overlays-in)
      (sly-button--overlays-between, sly-button--overlays-exactly-at)
      (sly-button--overlays-at, sly-button--overlay-priority): New functions.
      
      * lib/sly-tests.el (defun): No need to check for ert.el.
      
      * test/sly-stickers-test.el (sly-stickers): New file.
      401d2ac4
    • João Távora's avatar
      Deleting packages doesn't break the indentation sync · 9910e0de
      João Távora authored
      * slynk.lisp (handle-indentation-cache-request): Handle case
      where PACKAGE was deleted, would otherwise error and terminate the
      indentation sync thread.
      9910e0de
  6. 18 Sep, 2014 2 commits
    • João Távora's avatar
      * sly.el (sly-maybe-show-compilation-log): Hide log if successp. · 1b1dfda8
      João Távora authored
      Not the other way around!
      1b1dfda8
    • João Távora's avatar
      Refactor common functionality in note and sticker navigation · 98a6c1f7
      João Távora authored
      * sly.el (sly-highlight-face): Don't need this face.
      (sly-flash-region): Use `highlight' as the default flashing face.
      (sly-last-visited-note-buttons): Removed.
      (sly--note-buttons-at): Removed.
      (sly--search-note): Removed.
      (sly-next-note): Alias to `sly-button-forward'
      (sly-previous-note): Alias to `sly-button-backward'
      (sly-goto-first-note): use `sly-next-node'
      (sly-show-notes): Consider more than one button. Fancy flash
      notes.
      (sly-in-buffer-note): Add `sly-button-echo' property.
      (sly--add-in-buffer-note): Add `sly-button-search-id' property.
      (sly--compilation-note-group-button): Notes property is now
      `sly-notes-group'
      (sly--add-in-buffer-note): Notes property is now `sly-note'
      (sly-note-filter-function): New variable.
      (sly-next-note):
      
      * contrib/sly-stickers.el (sly-stickers-prefix-map): Deleted.
      (sly-stickers-mode-map): Restore previous simpler keybindings.
      (sly-stickers--sticker): Use `sly-button-echo' property.
      (sly-stickers--echo-sticker): Accept more stickers but assert they
      are not there.
      (sly-stickers--sticker): Add `sly-button-search-id' property.
      (sly-stickers-next-sticker, sly-stickers-prev-sticker): Use
      `sly-button-search'
      
      * lib/sly-buttons.el (sly-action, sly-part): New `sly-button-echo'
      property.
      (sly-button-echo-button, sly-button-echo-part): New functions.
      (sly-button--next-search-id, sly-button-next-search-id)
      (sly-button--searchable-buttons-at, sly-button-search)
      (sly-button-filter-function, sly-button-forward)
      (sly-button-backward): New functions.
      
      * lib/sly-tests.el (sly-test--compile-defun): Call
      `sly-previous-note' interactively.
      98a6c1f7
  7. 17 Sep, 2014 7 commits
    • João Távora's avatar
      Travis updated SBCL to 1.2.3, triggering expected test failure · 0b643c20
      João Távora authored
      * lib/sly-tests.el (compile-defun-with-backquote): Fails for SBCL now.
      0b643c20
    • João Távora's avatar
      Navigate stickers with keybindings · f9871ec2
      João Távora authored
      Also minor tweaks to the way stickers are displayed.
      
      Also update NEWS.md file.
      
      * NEWS.md: Update with new bits about sly-stickers contrib. Add
      entry about MELPA availability.
      
      * contrib/sly-stickers.el (sly-stickers-prefix-map): New keymap.
      (sly-stickers-mode-map): Just has the prefix, which is now `C-c
      C-s`, not the simplest `C-c`
      (sly-stickers--stickers-at): Remove useless interactive spec.
      (sly-stickers--set-tooltip): Save bare message in a property.
      (sly-stickers--echo-sticker): New functino.
      (sly-stickers--flash-sticker): Don't flash stickers with the
      'highlight face.
      (sly-stickers--sticker): Assign sticker ids on creation.
      (sly-stickers--arm-sticker): Not here.
      (sly-stickers--briefly-describe-sticker): New helper.
      (sly-stickers--sticker-modified)
      (sly-stickers-delete-sticker-at-point)
      (sly-stickers-maybe-add-sticker): Use it.
      (sly-stickers-next-sticker, sly-stickers-prev-sticker): New
      functions.
      f9871ec2
    • João Távora's avatar
      * sly.el: "Version:" header must be near the top of the file · cbde38ed
      João Távora authored
      otherwise slynk.lisp and slynk-loader.lisp miss it.
      
      * README.md: Tweak description.
      cbde38ed
    • João Távora's avatar
      3c2bb558
    • João Távora's avatar
      Fancify sly.el's header and README.md · afbd889e
      João Távora authored
      Description in sly.el is written in a way that MELPA should pick up.
      afbd889e
    • João Távora's avatar
      Load both Slynk and Swank init files · b9277b48
      João Távora authored
      * CONTRIBUTING.md: Capitalize SWANK and SLYNK to Swank and Slynk.
      
      * NEWS.md: Add info about ~/swankrc.
      
      * slynk/slynk.lisp (load-user-init-file): Load first acceptable user
      init file from variations on Slynk and Swank.
      b9277b48
    • João Távora's avatar
      * sly.el (sly-show-apropos): Remove horrible hack. · ff8dad73
      João Távora authored
      (sly-dispatch-event): Use `sly-temp-message'
      ff8dad73
  8. 16 Sep, 2014 8 commits
    • 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
    • João Távora's avatar
      Avoid warnings from SLY's roll-your-own byte-compilation · 69f6131d
      João Távora authored
      SLY's hotspot compilation is a questionable but seductive idea. At
      least make it not generate so much noise.
      
      * sly.el (sly-byte-compile-hotspots): Renamed from
      `sly--compile-hotspots'.
      
      * contrib/sly-fontifying-fu.el: Use `sly-byte-compile-hotspots'
      
      * lib/sly-parse.el: Use `sly-byte-compile-hotspots'
      69f6131d
    • João Távora's avatar
      1c1349c2
    • João Távora's avatar
      SLY contribs are first class citizens, and so are their tests · 628ce4b2
      João Távora authored
      * Makefile: Reorganize targets to integrate contrib compiling and
      testing in a single Makefile.
      * contrib/Makefile: Deleted file
      
      * lib/sly-tests.el (sly-auto-test-tags): Adjust tagging heuristic.
      
      * .travis.yml (env): Use check-core target
      628ce4b2
    • João Távora's avatar
      Preparatory work for sly-stickers buffer compilation support · 13d1f0d5
      João Távora authored
      * sly.el (sly-temp-message): New function.
      (sly-compilation-finished-hook): Default value is now a list.
      
      * contrib/sly-stickers.el (sly-stickers): Add to `sly-compilation-finished-hook'
      (sly-stickers--disarm-sticker): Disarmed sticker perhaps was never pre-armed.
      (sly-stickers-after-buffer-compilation): New function.
      13d1f0d5
    • João Távora's avatar
      Improve sly-sticker's documentation · bcd290e2
      João Távora authored
      * contrib/sly-stickers.el (sly-stickers-clear-defun-stickers)
      (sly-stickers-clear-buffer-stickers)
      (sly-stickers-clear-region-stickers)
      (sly-stickers-delete-sticker-at-point)
      (sly-stickers-maybe-add-sticker): Add docstring.
      (sly-stickers-maybe-add-sticker): Add a hint in the echo area.
      (sly-stickers-fetch)
      (sly-stickers-compile-region-aware-of-stickers): Add doctring.
      
      * NEWS.md: describe `sly-stickers' a little more.
      bcd290e2
    • João Távora's avatar
      Closes #10: Review NEWS.md file · da89a0b9
      João Távora authored
      Add some information about the next upcoming alpha release.
      da89a0b9
    • João Távora's avatar
      Fix compilation log behaviour when compiling definitions · 0a222a42
      João Távora authored
      * sly.el (sly-maybe-show-compilation-log): Pass :hidden to
      `sly-show-compilation-log' according to compilation success.
      (sly-show-compilation-log): Take `select' arg.
      0a222a42