W3cubDocs

/Elisp

Backward Compatibility

Code compiled with older versions of cl-defstruct that doesn’t use records may run into problems when used in a new Emacs. To alleviate this, Emacs detects when an old cl-defstruct is used, and enables a mode in which type-of handles old struct objects as if they were records.

Function: cl-old-struct-compat-mode arg

If arg is positive, enable backward compatibility with old-style structs.

Copyright © 1990-1996, 1998-2019 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
https://www.gnu.org/software/emacs/manual/html_node/elisp/Backward-Compatibility.html