From: "Rainer Gemulla" <rgemulla@uni-mannheim.de>
To: "Eli Zaretskii" <eliz@gnu.org>, "Daiki Ueno" <ueno@gnu.org>
Cc: 28114@debbugs.gnu.org
Subject: bug#28114: Re[2]: bug#28114: 25.2; plstore decrypt erroneous on Windows due to carriage return characters
Date: Tue, 29 Aug 2017 15:57:56 +0000 [thread overview]
Message-ID: <em9f4596e4-2446-43ee-be14-81d3031619cd@gemma> (raw)
In-Reply-To: <83tw0q2xaa.fsf@gnu.org>
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))))
R
------ Original Message ------
From: "Eli Zaretskii" <eliz@gnu.org>
To: "Daiki Ueno" <ueno@gnu.org>
Cc: rgemulla@uni-mannheim.de; 28114@debbugs.gnu.org
Sent: 29.8.2017 17:45:01
Subject: Re: bug#28114: 25.2; plstore decrypt erroneous on Windows due
to carriage return characters
>>From: Daiki Ueno <ueno@gnu.org>
>>Cc: Rainer Gemulla <rgemulla@uni-mannheim.de>, 28114@debbugs.gnu.org
>>Date: Mon, 28 Aug 2017 14:30:01 +0200
>>
>>Sorry for the late response. I barely remember the detail, but I
>>suppose it is a leftover when I made plstore editable. It sounds good
>>to just use insert-file-contents here.
>
>Rainer, could you try that and see if using insert-file-contents
>solves your problem?
>
>Thanks.
next prev parent reply other threads:[~2017-08-29 15:57 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 ` Rainer Gemulla [this message]
2017-09-02 10:03 ` Eli Zaretskii
2017-09-02 10:10 ` Rainer Gemulla
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=em9f4596e4-2446-43ee-be14-81d3031619cd@gemma \
--to=rgemulla@uni-mannheim.de \
--cc=28114@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).