From: Daiki Ueno <ueno@unixuser.org>
To: Eric Hanchrow <offby1@blarg.net>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.60; epg: (file-error "Opening output file" integer-or-marker-p nil)
Date: Mon, 02 Jun 2008 14:30:12 +0900 [thread overview]
Message-ID: <87ej7gz9nf.fsf@broken.deisui.org> (raw)
In-Reply-To: <87y75oqx82.fsf@offby1.atm01.sea.blarg.net> (Eric Hanchrow's message of "Sun, 01 Jun 2008 21:25:49 -0700")
[-- Attachment #1: Type: text/plain, Size: 898 bytes --]
>>>>> In <87y75oqx82.fsf@offby1.atm01.sea.blarg.net>
>>>>> Eric Hanchrow <offby1@blarg.net> wrote:
> I visited a file that I keep encrypted with a symmetric passphrase using
> PGP. That worked fine: it prompted me for my password, and displayed it
> properly. Then I made some changes and typed C-x C-s; I saw
> Debugger entered--Lisp error: (file-error "Opening output file" integer-or-marker-p nil)
> signal(file-error ("Opening output file" integer-or-marker-p nil))
> epa-file-write-region(nil nil "/home/erich/xxx.gpg" nil t)
> apply(epa-file-write-region (nil nil "/home/erich/xxx.gpg" nil t))
> epa-file-handler(write-region nil nil "/home/erich/xxx.gpg" nil t)
> write-region(nil nil "/home/erich/xxx.gpg" nil t "~/xxx.gpg")
> basic-save-buffer-2()
Thanks for the report. I've just installed the following patch which
should fix the problem.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: epa-file-write-region.diff --]
[-- Type: text/x-diff, Size: 448 bytes --]
diff --git a/lisp/epa-file.el b/lisp/epa-file.el
index 25edba5..f621a53 100644
--- a/lisp/epa-file.el
+++ b/lisp/epa-file.el
@@ -182,6 +182,9 @@
context
(if (stringp start)
(epa-file--encode-coding-string start coding-system)
+ (unless start
+ (setq start (point-min)
+ end (point-max)))
(epa-file--encode-coding-string (buffer-substring start end)
coding-system))
(if (or epa-file-select-keys
[-- Attachment #3: Type: text/plain, Size: 25 bytes --]
Regards,
--
Daiki Ueno
next prev parent reply other threads:[~2008-06-02 5:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-02 4:25 23.0.60; epg: (file-error "Opening output file" integer-or-marker-p nil) Eric Hanchrow
2008-06-02 5:30 ` Daiki Ueno [this message]
2008-06-02 16:18 ` Eric Hanchrow
2008-06-03 3:08 ` Daiki Ueno
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ej7gz9nf.fsf@broken.deisui.org \
--to=ueno@unixuser.org \
--cc=emacs-pretest-bug@gnu.org \
--cc=offby1@blarg.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.