[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 23.0.60; epg: (file-error "Opening output file" integer-or-marker-p
From: |
Daiki Ueno |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>>>>> In <address@hidden>
>>>>> Eric Hanchrow <address@hidden> 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.
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
Regards,
--
Daiki Ueno