Deprecate modus-themes-toggle in Emacs 29

This is done to be consistent with the work done in emacs.git.  Thanks
to Philip Kaludercic and Rudolf Adamkovič for their feedback on the
mailing list:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C877d116lh4.fsf%40posteo.net%3E>.
This commit is contained in:
Protesilaos Stavrou 2022-10-16 18:16:33 +03:00
parent 6783341110
commit 59da1b3511
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -4089,6 +4089,12 @@ by virtue of calling either of `modus-themes-load-operandi' and
('modus-vivendi (modus-themes-load-operandi))
(_ (modus-themes--load-prompt))))
(when (or (fboundp 'toggle-theme) (>= emacs-major-version 29))
(define-obsolete-function-alias
'modus-themes-toggle
'toggle-theme
"2.8.0"))
;;;; Face specifications