Function: plstore-open

plstore-open is an autoloaded and byte-compiled function defined in plstore.el.gz.

Signature

(plstore-open FILE)

Documentation

Create a plstore instance associated with FILE.

Source Code

;; Defined in /usr/src/emacs/lisp/plstore.el.gz
;;;###autoload
(defun plstore-open (file)
  "Create a plstore instance associated with FILE."
  (let* ((filename (file-truename file))
	 (buffer (or (find-buffer-visiting filename)
		     (generate-new-buffer (format " plstore %s" filename))))
	 (store (plstore--make buffer)))
    (with-current-buffer buffer
      (erase-buffer)
      (condition-case nil
          (let ((coding-system-for-read 'raw-text))
            (insert-file-contents file))
	(error))
      (setq buffer-file-name (file-truename file))
      (set-buffer-modified-p nil)
      (plstore--init-from-buffer store)
      store)))