Function: define-multisession-variable
define-multisession-variable is an autoloaded macro defined in
multisession.el.gz.
Signature
(define-multisession-variable NAME INITIAL-VALUE &optional DOC &rest ARGS)
Documentation
Make NAME into a multisession variable initialized from INITIAL-VALUE.
DOC should be a doc string, and ARGS are keywords as applicable to
make-multisession.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/multisession.el.gz
;;;###autoload
(defmacro define-multisession-variable (name initial-value &optional doc
&rest args)
"Make NAME into a multisession variable initialized from INITIAL-VALUE.
DOC should be a doc string, and ARGS are keywords as applicable to
`make-multisession'."
(declare (indent defun))
(unless (plist-get args :package)
(setq args (nconc (list :package
(replace-regexp-in-string "-.*" ""
(symbol-name name)))
args)))
`(defvar ,name
(make-multisession :key ,(symbol-name name)
:initial-value ,initial-value
,@args)
,@(list doc)))