Skip to content

Commit e94165d

Browse files
committed
Add a note
1 parent fe29a03 commit e94165d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clojure-mode.el

+3
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,9 @@ Called by `imenu--generic-function'."
778778
(deftype (match-string 2))
779779
(start (point)))
780780
;; ignore user-error from down-list when called from inside a string or comment
781+
;; TODO: a better workaround would be to wrap it in
782+
;; unless (ppss-comment-or-string-start (syntax-ppss)) instead of ignore-errors,
783+
;; but ppss-comment-or-string-start is only available since Emacs 27
781784
(ignore-errors
782785
(down-list))
783786
(forward-sexp)

0 commit comments

Comments
 (0)