mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(mu4e): do not set coding-system-for-read globally
`+mu4e-lock-pid-info` had unintentional side effects: it changed `coding-system-for-read` globally. Fix: #5788
This commit is contained in:
@ -16,9 +16,9 @@
|
||||
"Get info on the PID refered to in `+mu4e-lock-file' in the form (pid . process-attributes)
|
||||
If the file or process do not exist, the lock file is deleted an nil returned."
|
||||
(when (file-exists-p +mu4e-lock-file)
|
||||
(let* ((pid (string-to-number
|
||||
(let* ((coding-system-for-read 'utf-8)
|
||||
(pid (string-to-number
|
||||
(with-temp-buffer
|
||||
(setq coding-system-for-read 'utf-8)
|
||||
(insert-file-contents +mu4e-lock-file)
|
||||
(buffer-string))))
|
||||
(process (process-attributes pid)))
|
||||
|
Reference in New Issue
Block a user