Function: desktop-claim-lock

desktop-claim-lock is a byte-compiled function defined in desktop.el.gz.

Signature

(desktop-claim-lock &optional DIRNAME)

Documentation

Record this Emacs process as the owner of the desktop file in DIRNAME.

DIRNAME omitted or nil means use desktop-dirname.

Source Code

;; Defined in /usr/src/emacs/lisp/desktop.el.gz
(defun desktop-claim-lock (&optional dirname)
  "Record this Emacs process as the owner of the desktop file in DIRNAME.
DIRNAME omitted or nil means use `desktop-dirname'."
  (write-region (number-to-string (emacs-pid)) nil
		(desktop-full-lock-name dirname)))