Function: xdg-state-home
xdg-state-home is a byte-compiled function defined in xdg.el.gz.
Signature
(xdg-state-home)
Documentation
Return the base directory for user-specific state data.
According to the XDG Base Directory Specification version
0.8 (8th May 2021):
"The $XDG_STATE_HOME contains state data that should persist
between (application) restarts, but that is not important or
portable enough to the user that it should be stored in
$XDG_DATA_HOME. It may contain:
* actions history (logs, history, recently used files, …)
* current state of the application that can be reused on a
restart (view, layout, open files, undo history, …)"
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/xdg.el.gz
(defun xdg-state-home ()
"Return the base directory for user-specific state data.
According to the XDG Base Directory Specification version
0.8 (8th May 2021):
\"The $XDG_STATE_HOME contains state data that should persist
between (application) restarts, but that is not important or
portable enough to the user that it should be stored in
$XDG_DATA_HOME. It may contain:
* actions history (logs, history, recently used files, …)
* current state of the application that can be reused on a
restart (view, layout, open files, undo history, …)\""
(xdg--dir-home "XDG_STATE_HOME" "~/.local/state"))