From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Memnon Anon Newsgroups: gmane.emacs.bugs Subject: bug#2629: 23.0.91; emacs-snapshot20090308: epa can not save .gpg buffer Date: Thu, 12 Mar 2009 08:41:33 +0100 Message-ID: <49b8bd03.0305560a.6790.2cfe@mx.google.com> References: <87ab7s4rtv.fsf@cyd.mit.edu> Reply-To: Memnon Anon , 2629@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236849186 4322 80.91.229.12 (12 Mar 2009 09:13:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2009 09:13:06 +0000 (UTC) Cc: gegendosenfleisch@googlemail.com, 2629@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 12 10:14:14 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lhgyf-0004uJ-Ia for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Mar 2009 10:13:22 +0100 Original-Received: from localhost ([127.0.0.1]:40841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhgxJ-0003OZ-B9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Mar 2009 05:11:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhftJ-0002YR-D1 for bug-gnu-emacs@gnu.org; Thu, 12 Mar 2009 04:03:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhftI-0002YB-Jk for bug-gnu-emacs@gnu.org; Thu, 12 Mar 2009 04:03:45 -0400 Original-Received: from [199.232.76.173] (port=55585 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhftI-0002Y4-Da for bug-gnu-emacs@gnu.org; Thu, 12 Mar 2009 04:03:44 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44044) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LhftH-0003fd-Ot for bug-gnu-emacs@gnu.org; Thu, 12 Mar 2009 04:03:44 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2C83fEU025422; Thu, 12 Mar 2009 01:03:41 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2C7o5vr021936; Thu, 12 Mar 2009 00:50:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Memnon Anon Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 12 Mar 2009 07:50:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2629 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2629-submit@emacsbugs.donarmstrong.com id=B2629.123684378820465 (code B ref 2629); Thu, 12 Mar 2009 07:50:05 +0000 Original-Received: (at 2629) by emacsbugs.donarmstrong.com; 12 Mar 2009 07:43:08 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2C7h1YY020454 for <2629@emacsbugs.donarmstrong.com>; Thu, 12 Mar 2009 00:43:02 -0700 Original-Received: by fg-out-1718.google.com with SMTP id e21so74104fga.43 for <2629@emacsbugs.donarmstrong.com>; Thu, 12 Mar 2009 00:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:cc:subject :in-reply-to:references:user-agent:date:mime-version:content-type; bh=opsMsPo+p1jcw/z54vdBbDDF6e2ZCmxhTnn25qnxP6k=; b=gswbGsEwj4vOb+358Q9qs2gQUeLBJCN+zarVHlS5fnGS0T57p3jLQcHsjVw14/ReU+ nV87QUMCRxkIdMxhcsRyok5Baht7dIjo2VoPS9jNSV7529Lf3HcKhi08GSQfm/bdFvmX RReX1Pjc++fJ+8EMQskpEBe1o04yoitGGqVas= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:cc:subject:in-reply-to:references:user-agent :date:mime-version:content-type; b=CRZHlVc/r/yIaGOPncfZ4DxLvJjQbuvrZt3KqXD60rNGuyuk/kuM7RhlKwy+wcPc8J FcMZBLi+vLZEsATX0KwR0v1DbhV/ZGmr/XkuvujOuNO9ihwdgPozeyiteiuXFG8YlrS7 8ZxIbwkwjzSURVyi6P7h+30jpmJTfUZ2fw8+A= Original-Received: by 10.86.94.11 with SMTP id r11mr6531589fgb.53.1236843780460; Thu, 12 Mar 2009 00:43:00 -0700 (PDT) Original-Received: from BlackPearl.localhost.local (e178250114.adsl.alicedsl.de [85.178.250.114]) by mx.google.com with ESMTPS id 3sm1579756fge.48.2009.03.12.00.42.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 12 Mar 2009 00:42:59 -0700 (PDT) In-Reply-To: <87ab7s4rtv.fsf@cyd.mit.edu> (Chong Yidong's message of "Wed, 11 Mar 2009 00:16:28 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 12 Mar 2009 04:03:44 -0400 X-Mailman-Approved-At: Thu, 12 Mar 2009 05:04:40 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26261 Archived-At: Chong Yidong writes: [...] > > I can't reproduce this bug. > > Could you please go to epa-file.el, and do M-x eval buffer RET, then > trigger the bug again? That might provide a more informative Lisp > backtrace. Thanks. Did so. This is from my running emacs, but I verified the problem is also when emacs-snapshot is started -Q. I would love to do more, but I can't. :( Output of toggle-debug-on-error: 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)) (condition-case error (setq string (epg-encrypt-string context ... ...)) (error (if ... ...) (signal ... ...))) (let* ((coding-system ...) (context ...) (coding-system-for-write ...) string entry (recipients ...)) (epg-context-set-passphrase-callback context (cons ... file)) (epg-context-set-progress-callback context (function epa-progress-callback-function)) (epg-context-set-armor context epa-armor) (condition-case error (setq string ...) (error ... ...)) (epa-file-run-real-handler (function write-region) (list string nil file append visit lockname mustbenew)) (if (boundp ...) (setq last-coding-system-used coding-system)) (if (eq visit t) (progn ... ...) (if ... ...)) (if (or ... ... ...) (message "Wrote %s" buffer-file-name))) epa-file-write-region(nil nil "/home/username/testing.gpg" nil t) apply(epa-file-write-region (nil nil "/home/username/testing.gpg" nil t)) (if op (apply op args) (epa-file-run-real-handler operation args)) (let ((op ...)) (if op (apply op args) (epa-file-run-real-handler operation args))) (progn (let (...) (if op ... ...))) (unwind-protect (progn (let ... ...)) (set-match-data save-match-data-internal (quote evaporate))) (let ((save-match-data-internal ...)) (unwind-protect (progn ...) (set-match-data save-match-data-internal ...))) (save-match-data (let (...) (if op ... ...))) epa-file-handler(write-region nil nil "/home/username/testing.gpg" nil t) write-region(nil nil "/home/username/testing.gpg" nil t "~/testing.gpg") basic-save-buffer-2() basic-save-buffer-1() basic-save-buffer() save-buffer(1) call-interactively(save-buffer nil nil)