smartparens icon indicating copy to clipboard operation
smartparens copied to clipboard

sp-forward-slurp-sexp not working in org-mode

Open bymoz089 opened this issue 5 years ago • 1 comments

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

  1. start Emacs with emacs -Q
  2. initalize packagemanager
  3. run require code:
(require 'smartparens)
(require 'org)
(require 'smartparens-org)
(smartparens-global-mode)
  1. open an org-mode buffer
  2. within an org-mode buffer have following text (| denoting cursor position) ~|~foobar and call sp-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

bymoz089 avatar Apr 05 '19 21:04 bymoz089

See also #1008

Fuco1 avatar Apr 03 '24 15:04 Fuco1