unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Rainer Gemulla <rgemulla@uni-mannheim.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: ueno@gnu.org, 28114-done@debbugs.gnu.org
Subject: bug#28114: 25.2; plstore decrypt erroneous on Windows due to carriage return characters
Date: Sat, 02 Sep 2017 12:10:01 +0200	[thread overview]
Message-ID: <CE3FA094-5D13-4EE3-8EB8-2A08C637CAC4@uni-mannheim.de> (raw)
In-Reply-To: <837exh1kom.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]

Thanks a lot!

Best,
Rainer 

Am 2. September 2017 12:03:53 MESZ schrieb Eli Zaretskii <eliz@gnu.org>:
>> From: "Rainer Gemulla" <rgemulla@uni-mannheim.de>
>> Cc: 28114@debbugs.gnu.org
>> 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.

[-- Attachment #2: Type: text/html, Size: 1548 bytes --]

      reply	other threads:[~2017-09-02 10:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-16 20:09 bug#28114: 25.2; plstore decrypt erroneous on Windows due to carriage return characters Rainer Gemulla
2017-08-18  9:20 ` Eli Zaretskii
2017-08-28 12:30   ` Daiki Ueno
2017-08-29 15:45     ` Eli Zaretskii
2017-08-29 15:57       ` bug#28114: Re[2]: " Rainer Gemulla
2017-09-02 10:03         ` Eli Zaretskii
2017-09-02 10:10           ` Rainer Gemulla [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CE3FA094-5D13-4EE3-8EB8-2A08C637CAC4@uni-mannheim.de \
    --to=rgemulla@uni-mannheim.de \
    --cc=28114-done@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=ueno@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).