smartparens icon indicating copy to clipboard operation
smartparens copied to clipboard

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

Open jasonhemann opened this issue 3 years ago • 0 comments

Expected behavior

In a scheme-mode buffer containing only

((?))

M-x goto-char <Ret> 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.

  • smartparens version: commit hash 8b6a3c3b31afd5b3f846e09859b5fc62eb06e7c1
  • Active major-mode: scheme-mode
  • Emacs version (M-x emacs-version): GNU Emacs 28.2 (build 1, x86_64-apple-darwin21.6.0, Carbon Version 165 AppKit 2113.6) of 2022-09-14
  • Spacemacs/Evil/Other starterkit (specify which)/Vanilla: Vanilla
  • OS: MacOS Monterey 12.6

jasonhemann avatar Nov 30 '22 13:11 jasonhemann