Expected behavior
In Clojure mode I can raise bar in the expression (foo? bar) by moving the cursor into the symbol bar and invoking sp-raise-sexp. The result should be bar on its own.
Actual behavior
I get foo? raised on its own, as if I had moved the cursor on that symbol and then raised it.
This also happens if the expression I'm trying to raise is not a symbol, e.g.: (foo? (bar ...)), if I try to raise (bar ...) with the cursor on (, then it still raises foo? instead.
Steps to reproduce the problem
Open a file in Clojure mode, type (foo? bar), move the cursor to one of the characters of bar, invoke sp-raise-sexp.
Commits
Environment & version information
Emacs version: GNU Emacs 30.2 (build 2, aarch64-apple-darwin25.1.0, NS appkit-2685.20 Version 26.1 (Build 25B78)) of 2025-12-17
Distribution: Doom
OS: darwin
Expected behavior
In Clojure mode I can raise
barin the expression(foo? bar)by moving the cursor into the symbolbarand invokingsp-raise-sexp. The result should bebaron its own.Actual behavior
I get
foo?raised on its own, as if I had moved the cursor on that symbol and then raised it.This also happens if the expression I'm trying to raise is not a symbol, e.g.:
(foo? (bar ...)), if I try to raise(bar ...)with the cursor on(, then it still raisesfoo?instead.Steps to reproduce the problem
Open a file in Clojure mode, type
(foo? bar), move the cursor to one of the characters ofbar, invokesp-raise-sexp.Commits
sp-wrap-roundwas fixed for symbols including a question mark, but maybe not the underlying issue with how question marks are treated.Environment & version information
Emacs version: GNU Emacs 30.2 (build 2, aarch64-apple-darwin25.1.0, NS appkit-2685.20 Version 26.1 (Build 25B78)) of 2025-12-17
Distribution: Doom
OS: darwin