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. 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
  2. 17 Aug, 2014 4 commits
    • João Távora's avatar
    • João Távora's avatar
      * swank.asd (defsystem :swank): order matters in lib/lisp/ · cfe3ab5a
      João Távora authored
      Also in /lisp/backend
      cfe3ab5a
    • João Távora's avatar
      Unbreak compilation-note-related tests · 97b45f6c
      João Távora authored
      New sophisticated in-buffer navigation of compilation notes. Perhaps
      too sophisticated...
      
      * sly-tests.el (compile-defun)
      (compile-defun-with-reader-conditionals): Restore `sly-previous-note'
      call and make slightly more readable.
      
      * sly.el (sly-next-note): New variable.
      (sly--note-buttons-at, sly--search-note): New functions.
      (sly-next-note, sly-previous-note, sly-goto-first-note): Unbreak
      them.
      (sly--add-in-buffer-note): Simplify: in-buffer notes are not
      merged.
      (sly--compilation-note-group-button): Must return the string for
      Emacs 24.3
      97b45f6c
    • João Távora's avatar
      Improved and regex-capable apropos · f2e9ec02
      João Távora authored
      * sly.el (sly-apropos-symbol): New button type.
      (sly-apropos-designator-string, sly-apropos-insert-symbol): New
      function.
      (sly-print-apropos): Rewritten. Uses more buttons.
      (sly-insert-xrefs): Add `sly-location' property to area near xref
      button.
      
      * lib/lisp/swank-backend.lisp (make-cl-ppcre-matcher)
      (make-plain-matcher): New functions.
      (make-apropos-matcher): Redesigned.
      
      * lib/lisp/swank.lisp (apropos-list-for-emacs): Rewrittern with
      for new retval of APROPOS-SYMBOLS.
      (briefly-describe-symbol-for-emacs): Designator is now a triplet.
      (apropos-symbols): Rewrite. Returns a list of lists.
      f2e9ec02
  3. 16 Aug, 2014 7 commits
    • João Távora's avatar
      Unbreak more tests · 2b3869b4
      João Távora authored
      * sly.el (sly-simple-completions): Ressurected.
      2b3869b4
    • João Távora's avatar
      Unbreak tests. · 27de7bc9
      João Távora authored
      * sly-tests.el (compile-defun)
      (compile-defun-with-reader-conditionals): Pass mandatory arg to
      `sly-previous-node'
      27de7bc9
    • João Távora's avatar
      bffbb530
    • João Távora's avatar
      Clean up context menus of some sly-part buttons · b8c58f73
      João Távora authored
      * sly.el (sly-move-to-source-location): Document NOERROR and
      return nil in that case.
      (sly--display-source-location): New optional NOERROR param.
      (sly-xref-mode): Enter sly-mode and make buffer read-only
      (sldb-frame-map): RET bound to `sldb-toggle-details'.
      (sldb-frame-menu-map): Simpler menu.
      (sldb-local-variable-button, sldb-frame-button): Simpler label.
      (sly-inspector-mode-map): Bind D, not d, to
      `sly-inspector-describe-inspectee'
      (sly-inspector-part): Implement `sly-button-describe'
      (sly-inspector-part): Pass `noerror' to
      `sly--display-source-location'
      (sly-inspector-part-button): Simpler label.
      (sly-inspector-describe-inspectee): Add docstring and rename from
      `sly-inspector-describe'
      
      * sly-mrepl.el (sly-mrepl--make-result-button): Simpler button label.
      
      * lib/sly-buttons.el (sly-button-popup-part-menu): Fix label.
      
      * lib/lisp/swank.lisp (describe-inspector-part): New slyfun.
      (pprint-inspector-part): Fix docstring.
      b8c58f73
    • João Távora's avatar
      * sly.el: Break long lines · 1329b20f
      João Távora authored
      (sldb-frame-menu-map): Use a little macrolet sugar.
      1329b20f
    • João Távora's avatar
      * swank.lisp (dispatch-event): Fix typo. · 4fbd6d03
      João Távora authored
      4fbd6d03
    • João Távora's avatar
      Restore severity-related faces for in-buffer compilation notes · ae56fb1c
      João Távora authored
      * sly.el (sly-most-severe): Removed.
      (sly-merge-notes): Removed. Done in `sly--add-in-buffer-note'.
      ("pretty colors"): Remove reference to two macros which are gone.
      (sly--add-in-buffer-note): Consider note severity.
      ae56fb1c
  4. 15 Aug, 2014 6 commits
    • João Távora's avatar
      Another 150 lines of useless window managing code gone · 44f59641
      João Távora authored
      * sly.el (sly-read-package-name): Don't use `sly-bogus-completion-alist'
      (sly-completions-buffer-name)
      (sly-complete-saved-window-configuration, sly-completions-window)
      (sly-complete-delay-restoration)
      (sly-complete-forget-window-configuration)
      (sly-complete-restore-window-configuration)
      (sly-complete-maybe-restore-window-configuration)
      (sly-completion-window-active-p, sly-display-completion-list)
      (sly-display-or-scroll-completions, sly-scroll-completions): Removed.
      (sly-simple-complete-symbol): Much simplified
      (sly-complete-symbol): Use `completion-at-point-functions'
      (sly-maybe-complete-as-filename): Removed, seems useless.
      (sly-minibuffer-respecting-message): Removed.
      (sly-indent-and-complete-symbol): Call `indent-for-tab-command'
      (sly-bogus-completion-alist): Removed.
      (sly-simple-completions): Removed.
      44f59641
    • João Távora's avatar
      Compilation notes also use buttons · e217d0a2
      João Távora authored
      * sly.el (sly-compilation-finished-hook): Remove option `sly-list-compiler-notes'.
      (sly-load-failed-fasl): Change default to a saner option 'NEVER.
      (sly-highlight-notes): Use `sly--add-in-buffer-note'.
      (sly-note-overlays, sly-remove-old-overlays, sly-filter-buffers): Removed.
      (sly-merge-notes-for-display, sly-merge-notes)
      (sly-notes-in-same-location-p): Removed.
      (sly-create-compilation-log): Enter `sly-mode' as well.
      (sly-compilation-log--notes): New variable.
      (sly-insert-compilation-log): Use buttons and fields.
      (sly-overlay-note, sly-goto-note-in-compilation-log): Removed.
      (sly-create-note-overlay, sly-merge-note-into-overlay): Removed.
      (sly-choose-overlay-for-sexp, sly-choose-overlay-region)
      (sly-choose-overlay-for-read-error): Replace `cl-values' with plain `list'
      (sly-severity-face-plist): Fix indentation.
      (sly-visit-source-path): Removed.
      (sly-next-note): Simplify.
      (sly-previous-note): Simplify.
      (sly-goto-first-note): Simplify.
      (sly-remove-notes): New function.
      (sly-merge-notes): New function.
      (sly-show-note): Redone.
      (sly-temporarily-highlight-note): Removed.
      (sly-note-at-point, sly-note-overlay-p)
      (sly-note-overlays-at-point, sly-find-next-note)
      (sly-find-previous-note): Removed.
      (sly-note, sly-in-buffer-note, sly-compilation-note-group): New
      button types.
      (sly--in-buffer-note-modification, sly--add-in-buffer-note)
      (sly--compilation-note-group-button): New functions.
      (sly-filter-buffers): Moved to SLDB section where it's used.
      (sly-menu): Replace `sly-list-compiler-notes' with
      `sly-show-compilation-log'
      e217d0a2
    • João Távora's avatar
      Xref mode also uses buttons · 5483f0f6
      João Távora authored
      * sly.el (sly-mode-map): `sly-next-location' and
      `sly-previous-location' unbound.
      (sly-xref-face, sly-xref, sly-xref-button): New button type, face
      and constructor.
      (sly-insert-xrefs): Insert buttons.
      (sly-xref-prev-line, sly-xref-next-line): Use buttons.
      (sly-next-location-function, sly-previous-location-function)
      (sly-goto-next-xref, sly-goto-previous-xref, sly-next-location)
      (sly-previous-location): Remove.
      (sly-xref--show-buffer): Don't set `sly-next-location-function' or
      `sly-previous-location-function'
      5483f0f6
    • João Távora's avatar
      47f1c951
    • João Távora's avatar
      Try to improve REPL prompt synchronization · 61424452
      João Távora authored
      * sly-mrepl.el (sly-mrepl--insert-prompt): Helper function for :prompt method.
      (define-channel-method :write-values): Don't `accept-process-output' here.
      (sly-mrepl-return): Do it here.
      61424452
    • João Távora's avatar
      Face tweaks in sly-mrepl and a shortcut to the debugger · 6c5296a2
      João Távora authored
      * contrib/sly-mrepl.el (define-channel-method :prompt): Insert a button to
      the associated debugger.
      (sly-mrepl--prompt-face): Removed.
      (sly-mrepl-prompt-face): Renamed from
      `sly-mrepl-normal-prompt-face'
      (sly-mrepl-errored-prompt-face): Removed.
      6c5296a2
  5. 14 Aug, 2014 7 commits
    • João Távora's avatar
    • João Távora's avatar
      Fix sly-mrepl's freezing/unfreezing logic · 9f2e8088
      João Távora authored
      * contrib/sly-mrepl.el (sly-mrepl-mode): Overlay should be pushed on
      insertion before.
      (sly-mrepl--insert-output): Another case for a "\n" isnertion.
      (sly-mrepl--stacked-errors, :freeze-prompt, :unfreeze-prompt):
      Delete.
      (:prompt): Takes new `error-level' and `condition' args.
      (sly-mrepl--prompt-face): Take `error-level' arg.
      
      * contrib/swank-mrepl.lisp (declass mrepl): New PENDING-ERRORS slot.
      (swank::drop-unprocessed-events): Don't SEND-PROMPT from here.
      (mrepl-eval): Redesigned and simplified (hopefully).
      (mrepl-eval-1): Renamed from MREAD-EVAL-1 (which was a typo)
      9f2e8088
    • João Távora's avatar
      Fixes to the "Copy Call to REPL" interface · 3285e13d
      João Távora authored
      * sly.el (sldb--guess-frame-name): New function.
      (sldb-frame-button): Use it.
      
      * contrib/sly-mrepl.el (define-sly-contrib sly-mrepl): Better keydindings.
      3285e13d
    • João Távora's avatar
      Fix some more contrib issues · 167cfc46
      João Távora authored
      * contrib/sly-fontifying-fu.el (sly-activate-font-lock-magic): Remove
      xemacs branch.
      
      * contrib/sly-mrepl.el (sly-mrepl--copy-objects-to-repl)
      (sly-mrepl-sync-package-and-default-directory)
      (sly-mrepl--insert-output): Simplify.
      
      * lib/sly-buttons.el (sly-part-button-keymap): Don't bind RET
      here.
      
      * lib/lisp/backend/swank-allegro.lisp (frame-restartable-p):
      Remove spurious and useless log.
      167cfc46
    • João Távora's avatar
      Improve "Copy Call to REPL" feature · 94c1e2e4
      João Távora authored
      * sly.el (sly-canonicalized-location, sly-choose-overlay-for-sexp)
      (sly--display-source-location, sly--pop-to-source-location)
      (sly-recompile-locations,sly-recompile-location): Use
      `sly-move-to-source-location'.
      (sly-move-to-source-location): Renamed from
      `sly--move-to-source-location'
      
      * sly.el (define-button-type sldb-frame): Default action is to
      toggle details.
      (sldb-frame-button): Extract spec and put it in the `part-args'
      property.
      
      * contrib/sly-mrepl.el (define-button-type sly-mrepl-part): rename
      `object-idx' to `entry-idx' for clarity.
      (sly-mrepl--copy-part-to-repl): New function just for copying REPL
      parts.
      (sly-mrepl--copy-to-repl-after): New buffer-local variable.
      (sly-mrepl--copy-objects-to-repl): New function for copying any
      object generically.
      (listener): Don't take `note' arg and execute
      `sly-mrepl--copy-objects-to-repl'
      (sly-mrepl--eval-for-repl): Better protocol.
      (sly-inspector-copy-part-to-repl, sldb-copy-part-to-repl)
      (sly-trace-dialog-copy-part-to-repl): Adapt to new protocol.
      (sly-mrepl--insert-call): Take a `spec' argument.
      (sly-trace-dialog-copy-call-to-repl): Use new protocol of
      `sly-mrepl--eval-for-repl'.
      (sly-mrepl-sync-package-and-default-directory): Set
      `sly-mrepl--copy-to-repl-after'.
      
      * contrib/sly-mrepl.el (:unfreeze-prompt): Remove frequently failing
      assertion assertion. Have to investigate.
      
      * contrib/sly-trace-dialog.el (sly-trace-dialog--shortcut-menu): Avoid compiler warning.
      (define-button-type sly-trace-dialog-spec): `part-args' property
      was simplified.
      
      * contrib/swank-mrepl.lisp (copy-values-to-repl): Don't take NOTE arg.
      (:sync-package-and-default-directory): Don't pass notes to
      COPY-VALUES-TO-REPL.
      (*saved-objects-note*): Removed.
      (globally-save-object): Don't set *SAVED-OBJECTS-NOTE*
      (:copy-to-repl): Simplified.
      
      * lib/lisp/swank-backend.lisp (frame-arguments): New interface.
      
      * lib/lisp/backend/swank-allegro.lisp (frame-arguments): New
      implementation of interface. Probably not very good.
      
      * lib/lisp/backend/swank-ccl.lisp (frame-call): Removed implementation.
      
      * lib/lisp/backend/swank-sbcl.lisp (frame-call): Removed implementation.
      94c1e2e4
    • João Távora's avatar
      Fix broken sly-fancy-inspector and sly-package-fu contribs · 1b4ad7bc
      João Távora authored
      * sly.el (sly-canonicalized-location, sly-choose-overlay-for-sexp)
      (sly--display-source-location, sly--pop-to-source-location)
      (sly-recompile-locations,sly-recompile-location): Use
      `sly-move-to-source-location'.
      (sly-move-to-source-location): Renamed from
      `sly--move-to-source-location'
      
      * contrib/sly-fancy-inspector.el (sly-edit-inspector-part) Removed.
      (define-sly-contrib sly-fancy-inspector): Remove :on-load and
      :on-unload hooks use this contrib. `sly-edit-inpector-part'
      covered by "." in inspector
      
      * contrib/sly-package-fu.el (sly-goto-package-source-definition): Use
      `sly-move-to-source-location'.
      1b4ad7bc
    • João Távora's avatar
      Frames in the debugger have right-click mouse menus, too · 1cd11fb9
      João Távora authored
      * sly.el (sldb-frame-menu-map): New keymap.
      (sldb-frame): Use it heree.
      (sldb-frame-button-near-point): First try button with
      `sly-button-at' only then use `nearby-frame-button'
      
      * lib/sly-buttons.el (sly-button-popup-part-menu): Add indirection and
      fetch menu from the button.
      (sly-part): Add `part-menu-keymap' prop
      1cd11fb9
  6. 13 Aug, 2014 1 commit
    • João Távora's avatar
      New M-S-RET "Copy call to REPL" action for sldb and trace-dialog · 788eb21f
      João Távora authored
      * sly.el (sldb-frame-map): Set `sly-part-button-keymap' as parent
      of `sly-frame-keymap'.
      (sldb-frame): Make this button type inherit from `sly-part', not
      `sly-button'.
      (sldb-frame-button): Add `part-args' and `part-label' props to
      `sldb-frame' buttons.
      
      * contrib/sly-mrepl.el (define-sly-contrib sly-mrepl): Define a new
      "part-action" `sly-mrepl-copy-call-to-repl'. Put this is
      `sldb-frame' and `sly-trace-dialog-spec' button types. Rename
      previous `sly-mrepl-copy-to-repl' action to
      `sly-mrepl-copy-part-to-repl'
      (sly-inspector-copy-part-to-repl): Renamed from
      `sly-inspector-copy-down-to-repl'
      (sldb-copy-part-to-repl): Renamed from `sldb-copy-down-to-repl'.
      (sly-trace-dialog-copy-part-to-repl): Renamed from
      `sly-trace-dialog-copy-down-to-repl'
      (sly-mrepl--insert-call, sldb-copy-call-to-repl)
      (sly-trace-dialog-copy-call-to-repl): New functions.
      
      * contrib/sly-trace-dialog.el (sly-trace-dialog-spec):
      `sly-button-inspect' method takes more (ignored) arguments.
      (sly-trace-dialog-spec-button): `sly-trace-dialog-spec' buttons
      have more props.
      (sly-trace-dialog--insert-trace): Pass trace to
      `sly-trace-dialog-spec-button'
      
      * contrib/swank-trace-dialog.lisp (trace-arguments): New function.
      788eb21f
  7. 12 Aug, 2014 8 commits
    • João Távora's avatar
      Fix some reading behaviour in sly-mrepl · 08d6e196
      João Távora authored
      * contrib/sly-mrepl.el (sly-mrepl--commiting-text): edebug and indent specs.
      (sly-mrepl--send-input-sexp): change name to clarify that this is
      only for sending sexps.
      (sly-mrepl-return): Use `comint-send-input' directly.
      (sly-mrepl--commiting-text): edebug spec.
      (sly-mrepl--send-input-sexp): change name to clarify that this is
      only for sending sexps.
      (sly-mrepl-return): Use `comint-send-input' directly.
      (sly-mrepl--pending-output): New variable.
      (sly-mrepl--insert-output): Insert or save pending output.
      (listener): Save pending output.
      (sly-mrepl-return, sly-mrepl-guess-package): Format messages with
      "[sly]". FIXME, use `sly-message'.
      
      * contrib/swank-mrepl.lisp (initialize-instance): Must init listener's
      SWANK::IN slot here.
      (create-mrepl): Not here.
      (mread-eval-1): Fix whitespace.
      08d6e196
    • João Távora's avatar
      Missed these two stale test files · 05c98b67
      João Távora authored
      05c98b67
    • João Távora's avatar
      Remove contribs not in sly-fancy · 7bc25623
      João Távora authored
      7bc25623
    • João Távora's avatar
    • João Távora's avatar
    • João Távora's avatar
      More sly-mrepl fixes · df9d34f3
      João Távora authored
      * sly-mrepl.el (sly-mrepl-mode-map): Add "M-p" and "M-n"
      lost when `comint-mode-map' inheritance was broken.
      (sly-mrepl--insert-output): Ensure prettier insertion of
      unexpected async output.
      df9d34f3
    • João Távora's avatar
      Fix SLDB problems after last refactoring · bae07177
      João Távora authored
      * sly.el (sldb-setup, sldb-insert-frames, sldb-insert-frame)
      (sldb-frame-details-region): New function.
      (sldb-frame-details-visible-p): Deleted.
      (sldb-sugar-move,sldb-hide-frame-details, sldb-toggle-details):
      Use `sldb-frame-details-region'
      (sldb-sugar-move): Fix bug.
      bae07177
    • João Távora's avatar
      Consolidate pull-down menus · 4b28547f
      João Távora authored
      Work in progress.
      
      * sly.el (sly-inspector-mode-map): Remove some invalid
      keybindings.
      (menubar-sly, menubar-sly-sldb): Removed.
      (sly-menu, sly-sldb-menu, sly-inspector-menu): New menus.
      (sly-sldb-easy-menu, sly-easy-menu): These variables are unneeded.
      (sly-add-easy-menu, sly-sldb-add-easy-menu): Removed.
      
      * contrib/sly-mrepl.el (sly-mrepl--last-prompt-overlay):
      Resurrected.
      (sly-mrepl-mode): Remove `sly-mrepl-mode-map' comint parent.
      (sly-mrepl--shortcut-menu, sly-mrepl--menu): New menus.
      
      * contrib/sly-trace-dialog.el (sly-trace-dialog--shortcut-menu)
      (sly-trace-dialog--menu): New menus.
      (sly-trace-dialog--menubar): Remove.
      4b28547f
  8. 11 Aug, 2014 6 commits
    • Helmut Eller's avatar
      For CMUCL, make M-. work on condition classes. · 7fcca19f
      Helmut Eller authored
      * swank-cmucl.lisp (pcl-class-location): Renamed from
      class-location.
      (class-location): New.
      (class-definitions): Search condition classes in infodb.
      
      (cherry picked from SLIME commit
      ab5991d4)
      
      Conflicts:
      	ChangeLog
      7fcca19f
    • Helmut Eller's avatar
      Avoid some compiler warnings. · 6eddabde
      Helmut Eller authored
      * lib/lisp/swank.lisp (before-init): Don't call
      warn-unimplemented-interfaces as it confuses first time users.
      (thread-for-evaluation): Suppress unused var warnings.
      
      * contrib/swank-asdf.lisp: Avoid unreachable code for version check.
      (unique-string-list): Avoid unreachable code warnings.
      
      * contrib/swank-fuzzy.lisp (*all-chunks*): Defvar it and declaim the type
      to avoid type uncertainty warnings.
      
      * contrib/swank-package-fu.lisp (export-structure): Suppress warning about
      unknown function list-structure-symbols with #+.
      
      (cherry picked from SLIME commit
      98e1a8c2)
      
      Conflicts:
      	ChangeLog
      	contrib/ChangeLog
      	contrib/swank-presentations.lisp
      	lib/lisp/swank.lisp
      6eddabde
    • Helmut Eller's avatar
      Avoid some compiler warnings. · ea8352db
      Helmut Eller authored
      * swank-backend.lisp (utf8-encode): Avoid unreachable code
      warnings.
      (%utf8-encode): New helper.
      * swank-sbcl.lisp (sbcl-wrap): Add ignore declaration.
      
      (cherry picked from SLIME commit
      8eec94d1)
      
      Conflicts:
      	ChangeLog
      ea8352db
    • Jan Moringen's avatar
      Make fancy inspector more robust w.r.t. unexpected logical PATHNAME-HOST · c9994581
      Jan Moringen authored
      While CLHS seems to guarantee PATHNAME-HOST to return a string, this is
      not always the case in practice (e.g. SBCL returns a
      SB-IMPL:LOGICAL-HOST instance).
      
      * swank-fancy-inspector.lisp (emacs-inspect logical-pathname): wrap the
        return value of PATHNAME-HOST in a (:value ...) in case it is not a
        string
      
      (cherry picked from SLIME commit
      a27493d1)
      
      Conflicts:
      	contrib/ChangeLog
      c9994581
    • Helmut Eller's avatar
      * swank-kawa.scm: More strict version regexp to exclude 1.14.1. · 0c9fbaec
      Helmut Eller authored
      (cherry picked from SLIME commit
      5c6e36bd)
      0c9fbaec
    • Helmut Eller's avatar
      Make swank-kawa.scm work with Kawa 1.14. · eabcde28
      Helmut Eller authored
      * swank-kawa.scm (connection-info): Return :encoding options
      to make slime-repl work.
      (listener): Set current-output-port.
      
      Also add a version check at the beginning and update the
      compilation instructions.
      
      (cherry picked from SLIME commit
      ef96edee)
      
      Conflicts:
      	contrib/ChangeLog
      	contrib/swank-kawa.scm
      eabcde28