Skip to content

Commit

Permalink
Workaround for restart-emacs in v28+
Browse files Browse the repository at this point in the history
  • Loading branch information
raxod502 committed May 9, 2024
1 parent a2eed85 commit fe784ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions emacs/radian.el
Original file line number Diff line number Diff line change
Expand Up @@ -5169,6 +5169,12 @@ spam. This advice, however, inhibits the message for everyone.")
(let ((kill-emacs-hook nil))
(kill-emacs)))

;; Get rid of `restart-emacs' builtin because until we no longer
;; support Emacs 27 it is easier to have a single implementation
;; rather than one that has a different calling convention depending
;; on Emacs version.
(fmakunbound 'restart-emacs)

;; Package `restart-emacs' provides an easy way to restart Emacs from
;; inside of Emacs, both in the terminal and in windowed mode.
(radian-use-package restart-emacs
Expand Down

0 comments on commit fe784ff

Please sign in to comment.