activate-mode-local-bindings is a compiled Lisp function in `mode-local.el'.

(activate-mode-local-bindings &optional MODE)

Activate variables defined locally in MODE and its parents.
That is, copy mode local bindings into corresponding buffer local
If MODE is not specified it defaults to current `major-mode'.
Return the alist of buffer-local variables that have been changed.
Elements are (SYMBOL . PREVIOUS-VALUE), describing one variable.