Open obar opened 4 years ago
Seems like the slurping works but only in a specific case as well
The quick *|* brown fox jumps over the lazy dog.
calling forward slurp there captures brown
but does not continue further.
What you describe with the barf is definitely a bug though.
Expected behavior
In org mode, with two words in a pair and cursor inside (indicated as ^ in example)
running
sp-forward-barf-sexp
should result inActual behavior
Running
sp-forward-barf-sexp
effectively acts twice, and results inThis works as expected with more than two words enclosed in the pair, and works for the
backward
andslurp
variants without any issue that I saw. The edge case doesn't exist two words and a not-org-specific pair like()
. Also, this bug doesn't seem to happen in other modes (I triedtext-mode
andpython-mode
)Perhaps related?
It does seem that for some pairs in other modes, an empty pair can
slurp
. That's true for()
and""
inpython-mode
, true for()
but not true for``
intext-mode
… Anyway, it doesn't seem to be true for pairs in org, an empty org-specific pair cannotslurp
.Environment & version information
smartparens
version: 20200203.1757major-mode
:org-mode
(smartparens-global-mode t)
M-x emacs-version
): GNU Emacs 26.2