Function: set-local

set-local is a byte-compiled function defined in subr.el.gz.

Signature

(set-local VARIABLE VALUE)

Documentation

Make VARIABLE buffer local and set it to VALUE.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun set-local (variable value)
  "Make VARIABLE buffer local and set it to VALUE."
  (set (make-local-variable variable) value))