Closed rechvs closed 5 months ago
Hmm, seems like the function syntax-class-to-char
was introduced in Emacs 28. I'll add a compat function for it.
@Fuco1 I’m afraid the problem still persists. Should I open a new issue?
Debugger entered--Lisp error: (void-function sp--syntax-class-to-char)
sp--syntax-class-to-char(0)
sp-get-buffer-char-syntax(50349)
sp-syntax-before()
sp-skip-backward-to-symbol()
sp-get-symbol(t)
sp-backward-kill-symbol(1 t)
sp-backward-kill-word(1)
funcall-interactively(sp-backward-kill-word 1)
call-interactively(sp-backward-kill-word nil nil)
command-execute(sp-backward-kill-word)
smartparens
version: 20240410.1709major-mode
: emacs-lisp-mode
M-x emacs-version
): GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2023-02-23, modified by Debian@rechvs thanks for checking it out, there is already an issue for it #1204
Expected behavior
Calling
sp-backward-kill-word
kills the word before point.Actual behavior
The function displays the following error in the minibuffer:
Steps to reproduce the problem
In any file with Smartparens mode active, call
sp-backward-kill-word
.Backtraces if necessary (
M-x toggle-debug-on-error
)Environment & version information
smartparens
version: 20240403.2143major-mode
:emacs-lisp-mode
M-x emacs-version
): GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2023-02-23, modified by Debian