Function: pc-select-restore-mode
pc-select-restore-mode is a macro defined in pc-select.el.gz.
Signature
(pc-select-restore-mode MODE)
Documentation
Restore the previous state (either on or off) of the minor mode MODE.
Look up the value of the variable MODE on pc-select-saved-settings-alist.
If the value is non-nil, call the function MODE with an argument of
1, otherwise call it with an argument of -1.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/pc-select.el.gz
(defmacro pc-select-restore-mode (mode)
"Restore the previous state (either on or off) of the minor mode MODE.
Look up the value of the variable MODE on `pc-select-saved-settings-alist'.
If the value is non-nil, call the function MODE with an argument of
1, otherwise call it with an argument of -1."
(let ((elt (make-symbol "elt")))
`(when (fboundp ',mode)
(let ((,elt (assq ',mode pc-select-saved-settings-alist)))
(unless (null ,elt)
(,mode (if (cdr ,elt) 1 -1)))))))