Function: org-babel-temp-stable-file

org-babel-temp-stable-file is a byte-compiled function defined in ob-core.el.gz.

Signature

(org-babel-temp-stable-file DATA PREFIX &optional SUFFIX)

Documentation

Create a temporary file in the org-babel-remove-temporary-stable-directory.

The file name is stable with respect to DATA. The file name is constructed like the following: <PREFIX><DATAhash><SUFFIX>.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-core.el.gz
(defun org-babel-temp-stable-file (data prefix &optional suffix)
  "Create a temporary file in the `org-babel-remove-temporary-stable-directory'.
The file name is stable with respect to DATA.  The file name is
constructed like the following: <PREFIX><DATAhash><SUFFIX>."
  (let ((path
         (format
          "%s%s%s%s"
          (file-name-as-directory (org-babel-temp-stable-directory))
          prefix
          (org-sxhash-safe data)
          (or suffix ""))))
    ;; Create file.
    (with-temp-file path)
    ;; Return it.
    path))