sp-end-sexp and sp-beginning-sexp unexpected behavior again
(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
I can reproduce this, definitely a bug. I will have a look thanks!
I try something. Don't know if it will help you. https://github.com/jwiegley/use-package/issues/627
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.
I had to revert the fix because it caused some severe performance issues :(