smartparens
smartparens copied to clipboard
sp-forward-slurp-sexp not working in org-mode
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 on sp-local-pair
defined pairs.
Steps to reproduce the problem
- start Emacs with
emacs -Q
- initalize packagemanager
- run require code:
(require 'smartparens)
(require 'org)
(require 'smartparens-org)
(smartparens-global-mode)
- open an org-mode buffer
- within an org-mode buffer have following text (
|
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.1747 - Active major-mode (org-mode): 9.0.3
- Emacs version (
M-x emacs-version
): 25.1.1 - Spacemacs/Evil/Other starterkit (specify which)/Vanilla: Vanilla
- OS: Linux
See also #1008