When enable desktop-save-mode and save-place-mode, it will take a long time to restore a file with utf-16 encoding. Finally, will get the error as below: --8<---------------cut here---------------start------------->8--- Desktop: Can’t load buffer test-utf-16.txt: Wrong type argument: listp, 㬻※⨭‭潣楤杮›瑵ⵦ㬸洠摯㩥氠獩⵰慤慴ⴠ⴪਍⠨挢⼺獕牥⽳煁慵䐯獥瑫灯琯獥⵴瑵ⵦ㘱琮瑸•‮㘳⤩਍ Wrote c:/Users/Eason/.emacs.d/.emacs.desktop.lock Desktop: 1 frame, 0 buffers restored, 1 failed to restore. For information about GNU Emacs and the GNU system, type C-h C-a. --8<---------------cut here---------------end--------------->8--- If I enable (setq debug-on-error t), will get this information: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (wrong-type-argument listp 㬻※⨭‭潣楤杮›瑵ⵦ㬸洠摯㩥氠獩⵰慤慴ⴠ⴪਍⠨挢⼺獕牥⽳煁慵䐯獥瑫灯琯獥⵴瑵ⵦ㘱琮瑸•‮㘳⤩਍) load-save-place-alist-from-file() save-place-find-file-hook() run-hooks(find-file-hook) after-find-file(nil nil) find-file-noselect-1(# "~/Desktop/test-utf-16.txt" :nowarn nil "~/Desktop/test-utf-16.txt" (9851624185350923 244305694)) find-file-noselect("c:/Users/Eason/Desktop/test-utf-16.txt" :nowarn) desktop-restore-file-buffer("c:/Users/Eason/Desktop/test-utf-16.txt" "test-utf-16.txt" nil) desktop-create-buffer(208 "c:/Users/Eason/Desktop/test-utf-16.txt" "test-utf-16.txt" text-mode (font-lock-mode) 36 (nil nil) nil nil ((buffer-display-time 25227 30153 506245 0) (buffer-file-coding-system . utf-16le-with-signature-dos)) ((mark-ring nil))) load-with-code-conversion("c:/Users/Eason/.emacs.d/.emacs.desktop" "c:/Users/Eason/.emacs.d/.emacs.desktop" t t) load("c:/Users/Eason/.emacs.d/.emacs.desktop" t t t) desktop-read() #f(compiled-function () #)() run-hooks(after-init-hook delayed-warnings-hook) command-line() normal-top-level() --8<---------------cut here---------------end--------------->8--- You can reproduce this issue with the following step: 1. create an file in ~/.emacs.d/init.el 2. put below code in in the init.el file ``` (desktop-save-mode 1) (save-place-mode 1) ``` 3. start Emacs and open a file with UTF-16 encoding, you can use the sample file in the attachment 4. close Emacs with C-x C-c, will save a .emacs.desktop file and a places file in the .emacs.d directory. 5. restart Emacs, now you can see the issue.