all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 23.0.60; epg: (file-error "Opening output file" integer-or-marker-p nil)
@ 2008-06-02  4:25 Eric Hanchrow
  2008-06-02  5:30 ` Daiki Ueno
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Hanchrow @ 2008-06-02  4:25 UTC (permalink / raw)
  To: emacs-pretest-bug

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 3886 bytes --]


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

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))
      byte-code("Ä\b	\"‰\x12ƒ
\0\nÅ¡ˆÆÇÈ\vAB\"‡" [file epa-file-passphrase-alist entry error assoc nil signal file-error "Opening output file"] 4)
      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()
      basic-save-buffer-1()
      basic-save-buffer()
      save-buffer(1)
      call-interactively(save-buffer nil nil)

(Actually I've replaced the file's real name with "xxx.gpg")

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/local/src/emacs-via-git/etc/DEBUG for instructions.


In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9)
 of 2008-05-29 on debian
configured using `configure  '--enable-maintainer-mode' '--with-xpm=no' '--with-jpeg=no' '--with-gif=no' '--with-tiff=no' '--with-xft' '--with-x-toolkit=gtk''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: ERC

Minor modes in effect:
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-netsplit-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  flyspell-mode: t
  erc-autojoin-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-log-mode: t
  erc-services-mode: t
  erc-networks-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-readonly-mode: t
  desktop-save-mode: t
  recentf-mode: t
  display-time-mode: t
  global-auto-revert-mode: t
  shell-dirtrack-mode: t
  iswitchb-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
RET C-s f s f . C-a C-x C-q C-o C-x C-o C-x C-s ESC 
x t o g g TAB d e TAB e TAB RET C-x C-s C-x h ESC w 
q ESC x ESC p RET ESC ~ C-x C-q C-x b RET C-x 2 C-x 
b s t a c k RET y C-y ESC C-p ESC C-p ESC < ESC C-d 
ESC C-u ESC C-@ ESC w C-x o C-y RET ESC x r e p o r 
t - e m TAB RET

Recent messages:
Debug on Error enabled globally
Entering debugger...
Mark set [2 times]
Back to top level.
Debug on Error disabled globally
Modification-flag cleared
File is under version-control; use C-x v v to check in/out
Reverting buffer `private'.
No buffer matching `stack', create one? (y or n) 
Mark set [4 times]

-- 
[T]he main reason Viaweb ended up being server-based was
that we didn't want to have to write Windows apps.
        -- Paul Graham




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 23.0.60; epg: (file-error "Opening output file" integer-or-marker-p nil)
  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
  2008-06-02 16:18   ` Eric Hanchrow
  0 siblings, 1 reply; 4+ messages in thread
From: Daiki Ueno @ 2008-06-02  5:30 UTC (permalink / raw)
  To: Eric Hanchrow; +Cc: emacs-pretest-bug

[-- 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: 23.0.60; epg: (file-error "Opening output file" integer-or-marker-p nil)
  2008-06-02  5:30 ` Daiki Ueno
@ 2008-06-02 16:18   ` Eric Hanchrow
  2008-06-03  3:08     ` Daiki Ueno
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Hanchrow @ 2008-06-02 16:18 UTC (permalink / raw)
  To: Daiki Ueno; +Cc: emacs-pretest-bug

Thanks, that fixed it!

However, now every time I save, it asks for my password.  Is that
intentional?
-- 
Documentation exists, but never seems to be complete.
        -- Dennis Ritchie, 1972




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 23.0.60; epg: (file-error "Opening output file" integer-or-marker-p nil)
  2008-06-02 16:18   ` Eric Hanchrow
@ 2008-06-03  3:08     ` Daiki Ueno
  0 siblings, 0 replies; 4+ messages in thread
From: Daiki Ueno @ 2008-06-03  3:08 UTC (permalink / raw)
  To: Eric Hanchrow; +Cc: emacs-pretest-bug

>>>>> In <87tzgbreso.fsf@offby1.atm01.sea.blarg.net> 
>>>>>	Eric Hanchrow <offby1@blarg.net> wrote:
> However, now every time I save, it asks for my password.  Is that
> intentional?

If you are not using gpg-agent,
(setq epa-file-cache-passphrase-for-symmetric-encryption t)
might help.

Regards,
-- 
Daiki Ueno




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-03  3:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-06-02 16:18   ` Eric Hanchrow
2008-06-03  3:08     ` Daiki Ueno

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.