From: Lars Ingebrigtsen Date: Tue, 4 Oct 2022 12:11:04 +0000 (+0200) Subject: Make `eq' obsolete as a generalized variable X-Git-Tag: emacs-29.0.90~1856^2~37 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=79d9f3b845fc94726e242239574be21f5f49813c;p=emacs.git Make `eq' obsolete as a generalized variable * lisp/emacs-lisp/gv.el (eq): Make obsolete as a generalized variable. --- diff --git a/etc/NEWS b/etc/NEWS index 2b876413585..e0e2178d284 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -3066,7 +3066,7 @@ The following generalized variables have been made obsolete: 'current-column', 'current-global-map', 'current-input-mode', 'current-local-map', 'current-window-configuration', 'default-file-modes', 'documentation-property', 'frame-height', -'frame-width', 'frame-visible-p', 'global-key-binding', +'frame-width', 'frame-visible-p', 'global-key-binding', `if' 'local-key-binding', 'mark', 'mark-marker', 'marker-position', 'mouse-position', 'point', 'point-marker', 'point-max', 'point-min', 'read-mouse-position', 'screen-height', 'screen-width', diff --git a/lisp/emacs-lisp/gv.el b/lisp/emacs-lisp/gv.el index ade8064114d..a96fa19a3ff 100644 --- a/lisp/emacs-lisp/gv.el +++ b/lisp/emacs-lisp/gv.el @@ -812,6 +812,7 @@ REF must have been previously obtained with `gv-ref'." `(cond (,v ,(funcall setter val)) ((eq ,getter ,val) ,(funcall setter `(not ,val)))))))))) +(make-obsolete-generalized-variable 'eq nil "29.1") (gv-define-expander substring (lambda (do place from &optional to)