fix(literate,mu4e): revert recent, unintended changes

Reverts changes that snuck into 5ac2a52.

Amend: 5ac2a5258b
Ref: #6873
This commit is contained in:
Henrik Lissner 2022-10-07 17:28:36 +02:00
parent 1b1556c476
commit 962c643bad
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
3 changed files with 6 additions and 16 deletions

View file

@ -34,6 +34,7 @@ If STRICT only accept an unset lock file."
(pid (car lock-info)))
(when (or strict (/= (emacs-pid) pid)) t))))
;;;###autoload
(defun +mu4e-lock-file-delete-maybe ()
"Check `+mu4e-lock-file', and delete it if this process is responsible for it."
(when (+mu4e-lock-available)
@ -53,7 +54,7 @@ Else, write to this process' PID to the lock file"
(user-error "Unfortunately another Emacs is already doing stuff with Mu4e, and you can only have one at a time")
(write-region (number-to-string (emacs-pid)) nil +mu4e-lock-file)
(delete-file +mu4e-lock-request-file)
;; (call-process "touch" nil nil nil +mu4e-lock-request-file)
(call-process "touch" nil nil nil +mu4e-lock-request-file)
(funcall orig-fun callback)
(when +mu4e-lock--request-watcher
(file-notify-rm-watch +mu4e-lock--request-watcher))