Function: multisession-edit-value

multisession-edit-value is an interactive and byte-compiled function defined in multisession.el.gz.

Signature

(multisession-edit-value ID)

Documentation

Edit the value at point.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/multisession.el.gz
(defun multisession-edit-value (id)
  "Edit the value at point."
  (interactive (list (get-text-property (point) 'tabulated-list-id))
               multisession-edit-mode)
  (unless id
    (error "No value on the current line"))
  (let* ((object (or
                  ;; If the multisession variable already exists, use
                  ;; it (so that we update it).
                  (if-let* ((sym (intern-soft (cdr id))))
                      (and (boundp sym) (symbol-value sym))
                    nil)
                  ;; Create a new object.
                  (make-multisession
                   :package (car id)
                   :key (cdr id)
                   :storage multisession-storage)))
         (value (multisession-value object)))
    (setf (multisession-value object)
          (car (read-from-string
                (read-string "New value: " (prin1-to-string value))))))
  (multisession-edit-mode--revert))