Function: eieio-persistent-save-interactive
eieio-persistent-save-interactive is a byte-compiled function defined
in eieio-base.el.gz.
Signature
(eieio-persistent-save-interactive ARG &rest ARGS)
Implementations
(eieio-persistent-save-interactive (THIS eieio-persistent) PROMPT &optional NAME) in `eieio-base.el'.
Prepare to save THIS. Use in an `interactive' statement. Query user for file name with PROMPT if THIS does not yet specify a file. Optional argument NAME specifies a default file name.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio-base.el.gz
(cl-defmethod eieio-persistent-save-interactive ((this eieio-persistent) prompt
&optional name)
"Prepare to save THIS. Use in an `interactive' statement.
Query user for file name with PROMPT if THIS does not yet specify
a file. Optional argument NAME specifies a default file name."
(unless (slot-boundp this 'file)
(oset this file
(read-file-name prompt nil
(if name
(concat name (oref this extension))
))))
(oref this file))