Description
Expected behavior
I can edit code with comment
shadowed from clojure.core without the editor hanging. (Whether or not I should do this in the first place is a lesson I should probably learn but the editor shouldn't hang in any case)
Actual behavior
When clojure-toplevel-inside-comment-form
is t
and comment
is used in a buffer as a clojure var, emacs hangs indefinitely until C-g
ed.
See discussion here: https://clojurians.slack.com/archives/C099W16KZ/p1667918713039869
Here is a stacktrace when C-g
ed:
Steps to reproduce the problem
(ns bug
(:refer-clojure :exclude [comment]))
(def comment {:comment/body "I probably shouldn't be using comment"})
Load up that code, ensureclojure-toplevel-inside-comment-form
is t
, and then navigate edit inside and round the comment var or in the map.
Environment & Version information
clojure-mode version
I'm using doom which uses clojure-mode from git. The git hash of clojure-mode I'm using is 414157c3e523e80cc44dca8f86f1853122ee5f6b
Emacs version
GNU Emacs 28.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-07-15 [2 times]
Operating system
Fedora Silverblue 36