Skip to content

Commit

Permalink
Adapt to changed invalid-read-syntax error in Emacs 30
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiase committed May 10, 2024
1 parent 7869a70 commit 086b012
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion relint.el
Original file line number Diff line number Diff line change
Expand Up @@ -2500,7 +2500,8 @@ Return a list of (FORM . STARTING-POSITION)."
(setq keep-going nil))
(invalid-read-syntax
(cond
((member (cadr err) '("#" "#="))
((let ((errstr (cadr err)))
(and (stringp errstr) (string-prefix-p "#" errstr)))
(goto-char pos)
(forward-sexp 1))
(t
Expand Down

0 comments on commit 086b012

Please sign in to comment.