Function: pc-select-save-and-set-var

pc-select-save-and-set-var is a macro defined in pc-select.el.gz.

Signature

(pc-select-save-and-set-var VAR NEWVAL)

Documentation

Set VAR to NEWVAL; save the old value.

The old value is saved on the pc-select-saved-settings-alist.

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/pc-select.el.gz
(defmacro pc-select-save-and-set-var (var newval)
  "Set VAR to NEWVAL; save the old value.
The old value is saved on the `pc-select-saved-settings-alist'."
  `(when (boundp ',var)
     (pc-select-add-to-alist pc-select-saved-settings-alist ,var ,var)
     (setq ,var ,newval)))