Fuco1 / smartparens

Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
GNU General Public License v3.0
1.82k stars 195 forks source link

`sp-forward-sexp`, etc confused by `?` in `scheme-mode` #1140

Open jasonhemann opened 1 year ago

jasonhemann commented 1 year ago

Expected behavior

In a scheme-mode buffer containing only

((?))

M-x goto-char 6 M-x sp-forward-sexp

I would expect the point to be at the very first character.

Actual behavior

Instead, on my system, it is on the second.

Steps to reproduce the problem

I start up emacs -Q Using straight.el, I enable and start up smartparens

(use-package smartparens
  :straight t
  :init 
  (require 'smartparens-config)
  :config
  (smartparens-global-mode)
  (sp-use-paredit-bindings)
  :hook ((prog-mode text-mode) . turn-on-smartparens-strict-mode))

I build a buffer like I described above then switch to M-x scheme-mode

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

Environment & version information

In recent enough smartparens you can call M-x sp-describe-system to generate this report. Please fill manually what we could not detect automatically. Edit the output as you see fit to protect your privacy.

Probably unrelated, but I see an error trying to use sp-describe-system; after I enter an answer for Starterkit/Distribution used, I see the message Symbol’s value as variable is void: package-alist.