Function: sops-state-create

sops-state-create is a natively compiled function defined in sops.el.

Signature

(sops-state-create &key STATUS LAST-ERROR)

Documentation

Constructor for objects of type sops-state.

Source Code

;; Defined in /nix/store/vihl6lkzddv9xrsrsznvqdjq27g2i30p-emacs-packages-deps/share/emacs/site-lisp/elpa/sops-20260920.2121/sops.el
(cl-defstruct (sops-state (:constructor sops-state-create)
                          (:conc-name sops-state-))
  "Buffer-local state for sops-mode."
  ;; status:
  ;;   'decrypted -- set by sops--find-file-hook after a successful decrypt,
  ;;                 or by sops--encrypt-and-write after the first save of a
  ;;                 'creating buffer; the buffer represents an on-disk
  ;;                 ciphertext file the user is editing in plaintext.
  ;;   'creating  -- set by sops--start-creation when sops-find-file visits
  ;;                 a non-existent path; the on-disk file does not exist
  ;;                 yet and is created by the first encrypt-and-write.
  status
  last-error)   ; nil or string with most recent sops stderr