mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
* lisp/emacs-lisp/cl-lib.el (cl-old-struct-compat-mode): Mark as obsolete
* lisp/emacs-lisp/cl-preloaded.el: Emit a message before enabling `cl-old-struct-compat-mode`. See bug#63282.
This commit is contained in:
parent
98f7665677
commit
2e7af2fc53
3 changed files with 7 additions and 1 deletions
|
|
@ -159,7 +159,9 @@ supertypes from the most specific to least specific.")
|
|||
(cl-check-type name (satisfies cl--struct-name-p))
|
||||
(unless type
|
||||
;; Legacy defstruct, using tagged vectors. Enable backward compatibility.
|
||||
(cl-old-struct-compat-mode 1))
|
||||
(with-suppressed-warnings ((obsolete cl-old-struct-compat-mode))
|
||||
(message "cl-old-struct-compat-mode is obsolete!")
|
||||
(cl-old-struct-compat-mode 1)))
|
||||
(if (eq type 'record)
|
||||
;; Defstruct using record objects.
|
||||
(setq type nil))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue