Skip to content

Commit

Permalink
Remove an emacs 25 hack
Browse files Browse the repository at this point in the history
  • Loading branch information
davidshepherd7 committed Feb 13, 2024
1 parent b50bab8 commit ead275f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions features/support/env.el
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,3 @@

(setq load-prefer-newer t)



;; This fixes an issue in emacs 25.1 where the debugger would be invoked
;; incorrectly, breaking ert.
(when (and (= emacs-major-version 25) (< emacs-minor-version 2))
(require 'cl-preloaded)
(setf (symbol-function 'cl--assertion-failed)
(lambda (form &optional string sargs args)
"This function has been modified by espuds to remove an incorrect manual call
to the debugger in emacs 25.1. The modified version should only be used for
running the espuds tests."
(if string
(apply #'error string (append sargs args))
(signal 'cl-assertion-failed `(,form ,@sargs))))))

0 comments on commit ead275f

Please sign in to comment.