Skip to content

Smartparens 1.9.0

Compare
Choose a tag to compare
@Fuco1 Fuco1 released this 05 Nov 14:31
· 505 commits to master since this release

Mostly a bug-fix release, we concentrated on old issues with quotes and odd behaviors there and some improvements of slurping and barfing. Fixing issues brought in by the return of auto-escaping is a given :)

As usual, big thanks to all the contributors who helped on this release!

Paypal logo

Changes since 1.8.0

Bug fixes

  • Point at end of buffer does not register as "inside symbol" anymore
  • When killing backwards using smartparens functions, the successive kills should be prepended instead of appended (#630)
  • Fixed broken recognition of end-of-sexp in comments if the delimiter was the last character of comment (slurping around the comment did not work) (#634)
  • When calling sp-up-sexp, do not destroy whitespace if inside a string (#616)
  • sp--looking-back match can no longer extend after the point
  • If a string quote is escaped, do not treat it as start of a string sexp (#637)
  • Respect sexp prefix even if it is a symbol (for example _ in clojure) (#621)
  • If a sexp can not be parsed, do not fall back to symbol parsing (this might cause point skipping past the broken delimiter) (#666 \m/)
  • Jump to inside of sexp instead of match when skipping in strict mode (the match can extend further than the sexp bounds) (#617)
  • Fix parsing of nested strings when string fences delimit the strings (#661)

lua-mode

  • Don't autocomplete the lua blocks inside comments (#648)

clojure-mode

  • Match backtick with backtick and not apostrophe

latex-mode

  • Fix whitespace insertion when slurping in LaTeX (#670)

Features

  • More robust checking of breakage when wrapping.
    • If the point is in a sexp and mark in a different sexp, we should refuse to wrap the region as the delimiters would end up in different sexps breaking the structure
    • If the point is inside a sexp and the mark outside, we should refuse to wrap as the string would break that sexp

tuareg-mode (ocaml)

  • Add support for tuareg-mode (#631)

API

  • sp-get-quoted-string-bounds takes an optional point parameter of where the test should be run
  • Add new test sp-char-is-escaped-p to test if the char-at-point is escaped or not (according to sp-escape-char)
  • sp--strict-regexp-opt now returns "" on nil input to be consistent with regexp-opt
  • sp--merge-prop and sp--update-pair had the argument order changed

Misc

  • Removed old unused functions
    • sp--string-empty-p
    • sp-pair-is-stringlike-p
    • sp--split-string
    • sp--reverse-string
    • sp-zap-syntax
  • Tests were made even more quiet to save on nonsensical output
  • Removed sp-nagivate-use-textmode-stringlike-parser alias
  • Tests no longer rely on Makefile, we use .travis.yml only. To run tests locally, use cask exec ert-runner.
  • There is now a release script to manage releases automatically (#662)