Skip to content

Commit

Permalink
Add a note
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed Dec 14, 2022
1 parent fe29a03 commit e94165d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,9 @@ Called by `imenu--generic-function'."
(deftype (match-string 2))
(start (point)))
;; ignore user-error from down-list when called from inside a string or comment
;; TODO: a better workaround would be to wrap it in
;; unless (ppss-comment-or-string-start (syntax-ppss)) instead of ignore-errors,
;; but ppss-comment-or-string-start is only available since Emacs 27
(ignore-errors
(down-list))
(forward-sexp)
Expand Down

0 comments on commit e94165d

Please sign in to comment.