Function: ediff-defvar-local

ediff-defvar-local is a macro defined in ediff-init.el.gz.

Signature

(ediff-defvar-local SYMBOL VALUE &optional DOC)

Documentation

Define SYMBOL as an advertised buffer-local variable.

Run defvar-local, setting the value of the variable to VALUE and its docstring to DOC.

Then set the permanent-local property, so that kill-all-local-variables (called by major-mode setting commands) won't destroy Ediff control variables.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/ediff-init.el.gz
       ediff-use-toolbar-p))		;Does the user want it ?

;; Plagiarized from `emerge-defvar-local'.
(defmacro ediff-defvar-local (symbol value &optional doc)
  "Define SYMBOL as an advertised buffer-local variable.
Run `defvar-local', setting the value of the variable to VALUE
and its docstring to DOC.

Then set the `permanent-local' property, so that
`kill-all-local-variables' (called by major-mode setting
commands) won't destroy Ediff control variables."
  (declare (indent defun) (doc-string 3))
  `(progn
     (defvar-local ,symbol ,value ,doc)
     (put ',symbol 'permanent-local t)))