smartparens icon indicating copy to clipboard operation
smartparens copied to clipboard

sp-end-sexp and sp-beginning-sexp unexpected behavior again

Open richarddwang opened this issue 7 years ago • 4 comments

(cond
 ;; case 1 (empty line / two this type text objectis just next each other (like "test-symbol|(test)") )
 ((and at-beginning at-end) (setq beginning-point (point)))
 ;; case 2 (other)
 (t
  (cond
   ((and at-end (not at-beginning)) (left-char)))
  (save-excursion
    (funcall next)
    (funcall prev)
    (setq beginning-point (point)))
  )
 )

When cursor is at anywhere on cond

Expected behavior

Go to the position between ( and cond after sp-beginning-sexp Go to the the right paren of outer cond

Actual behavior

Didn't move and display message End Buffer

Backtraces if necessary (M-x toggle-debug-on-error)

no error

Environment & version information

smartparens version: 20180204.844

  • Active major-mode: lisp-interaction-mode
  • Emacs version (M-x emacs-version): GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-12-21
  • Spacemacs/Evil/Other starterkit (specify which)/Vanilla: GNU emacs
  • OS: gnu/linux

richarddwang avatar Feb 16 '18 09:02 richarddwang

I can reproduce this, definitely a bug. I will have a look thanks!

Fuco1 avatar Feb 16 '18 09:02 Fuco1

I try something. Don't know if it will help you. https://github.com/jwiegley/use-package/issues/627

richarddwang avatar Feb 16 '18 15:02 richarddwang

I use smartparens20180308.1042 now, but I still get the same issue. And I can still use the way specified by issue mentioned in my comment above, to reproduce and to avoid the issue.

richarddwang avatar Mar 10 '18 09:03 richarddwang

I had to revert the fix because it caused some severe performance issues :(

Fuco1 avatar Mar 10 '18 10:03 Fuco1