bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#28114: 25.2; plstore decrypt erroneous on Windows due to carriage re


From: Eli Zaretskii
Subject: bug#28114: 25.2; plstore decrypt erroneous on Windows due to carriage return characters
Date: Sat, 02 Sep 2017 13:03:53 +0300

> From: "Rainer Gemulla" <address@hidden>
> Cc: address@hidden
> Date: Tue, 29 Aug 2017 15:57:56 +0000
> 
> Yes, seems to work. Here is what I tried:
> 
> (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))))

Thanks, pushed to the master branch, and I'm marking this bug done.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]