Skip to content

Can't raise expression if it follows a symbol ending in question mark #1241

@or

Description

@or

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions