From 304030fdf8ba628fc0a23a25bda6869291d5a056 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 28 Feb 2026 05:19:06 -0500 Subject: [PATCH] refactor(lib): deprecate setq! `setq!` was introduced to fix `setopt` pulling in packages. Now that `setopt` was advised (in fad44ca228eb) to fix the issue at the source, this macro is no longer necessary. Ref: fad44ca228eb --- lisp/doom-lib.el | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lisp/doom-lib.el b/lisp/doom-lib.el index 985fc398f..f1836b406 100644 --- a/lisp/doom-lib.el +++ b/lisp/doom-lib.el @@ -836,16 +836,8 @@ issues" (declare (obsolete "Use `cl-callf2' instead" "3.0.0")) `(setq ,sym (append ,sym ,@lists))) -(defmacro setq! (&rest settings) - "A more sensible `setopt' for setting customizable variables. - -This can be used as a drop-in replacement for `setq' and *should* be used -instead of `setopt'. Unlike `setq', this triggers custom setters on variables. -Unlike `setopt', this won't needlessly pull in dependencies." - (macroexp-progn - (cl-loop for (var val) on settings by 'cddr - collect `(funcall (or (get ',var 'custom-set) #'set-default-toplevel-value) - ',var ,val)))) +;; DEPRECATED: Remove in v3 +(define-obsolete-function-alias 'setq! 'setopt "3.0.0") ;; DEPRECATED: Remove in v3.0 (defmacro delq! (elt list &optional fetcher)