Open whxvd opened 5 years ago
I think the docs are not clear but the expected behaviour is the one that happens.
The provision in the docstring is supposed to handle this case:
((asdasd |asdsad asdda))
turns into
((asdasd asdsad asdda)
(asdasd |asdsad asdda))
If you can come up with some better wording, I'll be happy to improve the documentation. Or maybe we can add examples?
I will come up with a PR, after studying and clarifying remaining questions about the Smartparens terminology.
There is a Smartparens documentation on readthedocs. And there is docs subdir in the repo. The readme mentions only the wiki.
Is the wiki a superset of the other two sources?
Is the wiki a superset of the other two sources?
I just found that the "Automatic escaping" wiki page refers to readthedocs. Probably the readthedocs stuff is created from the docs subdir in the smarparens repo. So I assume that the wiki, including what it links to, is indeed a superset of all documentation (excluding external blog articles).
Wiki is the "old" documentation which I'm moving to readthedocs. So the pages already migrated to sphinx have priority, otherwise the wiki is the authoritative source.
According to docstring
M-x sp-clone-sexp RET
on(| ())
should yieldbecause point is two spaces before an sexp, i.e. not immediately before. But the actual behavior results in
as if it were executed on
( |())
.smartparens
version: 20190103.2309major-mode
:lisp-interaction-mode
M-x emacs-version
): GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-07-05