Open bymoz089 opened 5 years ago
sp-forward-slurp-sexp does not work properly within orb-mode on ephasize markup (like *foo*, ~foo~, =foo= and so on). sp-forward-slurp-sexp does not work properly within orb-mode on sp-local-pair defined pairs.
sp-forward-slurp-sexp
*foo*
~foo~
=foo=
sp-local-pair
emacs -Q
(require 'smartparens) (require 'org) (require 'smartparens-org) (smartparens-global-mode)
|
~|~foobar
text should change to: ~|foobar~
~|foobar~
nothing changes at all: ~|~foobar
Defining a local pair with: (sp-local-pair 'org-mode "#" "#" :insert "C-c C-x l" :trigger "#" :actions '(:add insert wrap autoskip navigate))
(sp-local-pair 'org-mode "#" "#" :insert "C-c C-x l" :trigger "#" :actions '(:add insert wrap autoskip navigate))
Then insert #|#foobar and doing (sp-forward-slurp-sexp) results in the same misbehavior.
#|#foobar
(sp-forward-slurp-sexp)
While Slurping ordinary brackets works with org-mode.
smartparens
M-x emacs-version
See also #1008
Description
sp-forward-slurp-sexp
does not work properly within orb-mode on ephasize markup (like*foo*
,~foo~
,=foo=
and so on).sp-forward-slurp-sexp
does not work properly within orb-mode onsp-local-pair
defined pairs.Steps to reproduce the problem
emacs -Q
|
denoting cursor position)~|~foobar
and callsp-forward-slurp-sexp
Expected behavior
text should change to:
~|foobar~
Actual behavior
nothing changes at all:
~|~foobar
Further Obersvations
Defining a local pair with:
(sp-local-pair 'org-mode "#" "#" :insert "C-c C-x l" :trigger "#" :actions '(:add insert wrap autoskip navigate))
Then insert
#|#foobar
and doing(sp-forward-slurp-sexp)
results in the same misbehavior.While Slurping ordinary brackets works with org-mode.
Environment & version information
smartparens
version: MELPA 20190128.1747M-x emacs-version
): 25.1.1