Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Oct 3, 2014
  1. fix multibyte decoding protocol bug

    finally!  The slime connection got out of sync otherwise.  This fix
    only works if the locale is a UTF-8 one, mind you.
Commits on Sep 20, 2014
  1. new function `swank:init-presentations`

    Set up the REPL reporting function in it, not at toplevel
Commits on Jul 15, 2014
  1. add `swank:apropos-list-for-emacs`

    and also `swank:describe-definition-for-emacs`, helping to make it
    useful.  It's still a bit weird with the confusion between name of
    thing, name of help file, and so on (and also because
    describe-definition-for-emacs must return a definition kind from a
    restricted set defined in base slime) but it's basically working.
  2. add `swank:clear-repl-variables`

    null implementation (we don't have any repl variables)
Commits on Apr 20, 2014
Commits on Mar 14, 2014
  1. implement swank-c-p-c

    now users with c-p-c completion style can rejoice!  Matching is a little
    hacky, but not too surprising.
Commits on Jan 11, 2014
  1. make it work with org-mode 8

    (no, don't preserve workingness with org-mode 7.  I bet this comes
    back to bite me.)
  2. record resolutions of things in BUGS and TODO

    Adjust the README instructions to have --interactive in the R
    startup invocation, so base graphics display automatically.
  3. `swank:describe-function` and `swank:describe-symbol` implementations

    from Philipp Marek, about an eternity ago.
Commits on Nov 29, 2012
  1. more srcref frobbing

    I do not pretend to understand whether this is new, but in 2.14
    parsing an expression, in addition to adding srcref attributes to the
    results of the parse, can result in actual srcref elements being in
    the results.  Those srcrefs also need to be frobbed so that display of
    functions at the repl works properly.  (I do think this worked in 2.12
    without this extra frobbing, but I am totally prepared to admit that I
    can't really remember).
    Since we're on the case, also frob things that look like srcrefs but
    aren't under "srcref" attributes, such as "wholeSrcref"s
Commits on Nov 20, 2012
  1. fix compilation of x[y,]

    Oh boy.  I do not pretend to totally understand what is going on, but
    what seemed to be happening is that somehow when walking the parse
    tree to adjust srcrefs to the real file position rather than the
    string position, the `empty' space in x[y,] was turning from a
    zero-element name to a missing object, and then subsequent attempts to
    evaluate the missing object (or even return it) were failing.
    The workaround is to short-circuit the process for name objects, which
    are atomic and (empirically) do not have srcrefs attached anyway and
    so can be returned without modification.
Commits on Sep 17, 2012
  1. fix null implementation of operator-arglist

    actually return a list of two elements, not a bare string
Commits on May 1, 2012
  1. some elisp code that slime/swankr users probably want

    Should try to find out how to have it loaded automatically
  2. make inspector printing more reasonable

    I don't yet know what's right, but it's fairly nonsensical to have
    "[1] " prepending every label and value, so use prin1ToString
Commits on Apr 29, 2012
  1. rework `swank:simple-completions`

    In the process, implement looking up foo$bar$baz, and passing those
    completions back.  It's not completely robust to somewhat exotic
    syntax, as it assumes that the text being completed can be used
    directly as character vectors naming objects or fields; it is good
    enough to get started, and now a lot less annoying to
    use (particularly when lots of fields have underscores in them...)
  2. log wishlist completion bug

    Also note some other bugs as fixed.
Commits on Apr 24, 2012
  1. declare a version in `swank:connection-info`

    Useful both for me, to track what slime version is most likely to be
    maximally compatible, and for SLIMV users, which dispatch on the
    version to know whether the protocol is byte-count-based or
  2. implement `swank:operator-arglist` properly

    Now that slime-operator-at-point is overrideable, I can even test this
    from within Emacs -- but thanks to Philipp Marek for implementing this
    in his SLIMV-based environment first.
Commits on Apr 23, 2012
  1. fix bug #21

    %in% needs a `vector' first argument, so make it so, listifying
    anything that isn't already a vector.  (Note: there seem to be plenty
    of non-vector first arguments that work, such as
    as.Date("2012-01-01"), which returns FALSE to is.vector() -- but the new
    code seems to get that right anyway, based on very limited testing.
  2. log bug #21, regarding inspection of environments

    Reported by Philipp Marek
Commits on Dec 15, 2011
  1. log and fix bug #20: infinite errors on disconnect.

    Check for a zero-element character vector return from readChar.  (This
    is not documented as the EOF return value, no, but it makes sense).
    Also commit bug reports #18 and #19, and some README rearrangement.
Commits on Dec 9, 2011
  1. give us a chance with utf-8

    Calculate the length of the output to emacs using nchar(type="bytes")
    This makes help files sort-of work again
  2. pass an :encoding stanza in the connection information

    Allows slime-repl to start again.  I've said "utf-8-unix" but that is
    almost certainly a lie; I have no real idea how R handles encodings of
    text.  Simply passing in "ë" to the R slime repl breaks things without
    too much effort.
Commits on Oct 23, 2011
  1. don't print out "locals" from the global environment

    This is important because e.g. the repl evaluation happens in the
    global environment, so errors on code called from the repl will pull
    up a backtrace with that evaluation frame, which can be inspected for
    locals.  But printing out all the locals is a hugely expensive and not
    helpful thing to do.
  2. fix for visible values from region and interactive eval

    editing thinko: need tmp$value (not just value)
  3. fix swank-media repl-result-maker for complex

    There ought to be some way of catching this mistake, which is passing
    a non-length-1 vector to the swank functions, which then vectorise and
    confuse the event stream.
  4. log a couple more bugs

Commits on Sep 19, 2011
  1. catch errors during printing of frame locals

    tryCatch is R's handler-case.  (Spent some time wondering why
    withCallingHandlers wasn't working, but that's handler-bind.)
  2. log some more bugs

Commits on Sep 13, 2011
  1. escape names when searching for completions

    otherwise extended regexp metacharacters, particularly ".", get
    interpreted as those metacharacters rather than literals.  (bug #12)
Something went wrong with that request. Please try again.