From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Lewis Newsgroups: gmane.emacs.bugs Subject: bug#16679: 24.3.50; can't create a newly encrypted gpg file with easypg in cygwin emacs Date: Tue, 11 Feb 2014 10:04:50 +1100 Message-ID: <52F95B12.4030609@dickson.st> References: <52F464D1.7070804@dickson.st> <0m38juxtvi.fsf@fencepost.gnu.org> <8338jux9v9.fsf@gnu.org> <52F60161.90707@dickson.st> <83ha89wuvp.fsf@gnu.org> (sfid-20140209_011828_219790_12DDF936) NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="QiPmvCvwC9gu9aCESC2FiNdHlRA3FlEr6" X-Trace: ger.gmane.org 1392073579 5277 80.91.229.3 (10 Feb 2014 23:06:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2014 23:06:19 +0000 (UTC) Cc: 16679@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 11 00:06:27 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WCzvn-0004aH-14 for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Feb 2014 00:06:27 +0100 Original-Received: from localhost ([::1]:58568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCzvm-00018p-3g for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Feb 2014 18:06:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCzvS-0000nk-S6 for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 18:06:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCzvO-0000yF-2T for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 18:06:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCzvO-0000yB-04 for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 18:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WCzvN-0006jv-JZ for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 18:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jason Lewis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Feb 2014 23:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16679-submit@debbugs.gnu.org id=B16679.139207351125835 (code B ref 16679); Mon, 10 Feb 2014 23:06:01 +0000 Original-Received: (at 16679) by debbugs.gnu.org; 10 Feb 2014 23:05:11 +0000 Original-Received: from localhost ([127.0.0.1]:42051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCzuX-0006ic-Uv for submit@debbugs.gnu.org; Mon, 10 Feb 2014 18:05:10 -0500 Original-Received: from ipmail06.adl2.internode.on.net ([150.101.137.129]:54774) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCzuT-0006iN-HO for 16679@debbugs.gnu.org; Mon, 10 Feb 2014 18:05:08 -0500 Original-Received: from ppp167-253-181.static.internode.on.net (HELO debian.organictrader.com.au) ([59.167.253.181]) by ipmail06.adl2.internode.on.net with ESMTP; 11 Feb 2014 09:34:58 +1030 Original-Received: from [10.0.2.240] (unknown [10.0.2.240]) by debian.organictrader.com.au (Postfix) with ESMTPSA id 47C1D11A0224; Tue, 11 Feb 2014 10:04:55 +1100 (EST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.23) Gecko/20090812 Lightning/0.9 Thunderbird/2.0.0.23 Mnenhy/0.7.5.0 In-Reply-To: <83ha89wuvp.fsf@gnu.org> (sfid-20140209_011828_219790_12DDF936) X-Enigmail-Version: 1.6 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85330 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --QiPmvCvwC9gu9aCESC2FiNdHlRA3FlEr6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Eli Zaretskii wrote, On 9/02/2014 1:18 AM: >> Date: Sat, 08 Feb 2014 21:05:21 +1100 >> From: Jason Lewis >> CC: 16679@debbugs.gnu.org >> >> Because I like to live life on the edge, I decided to mount my user >> directory from my drive D:, following a procedure much like this one: >> >> http://caskater4.blogspot.com.au/2007/09/moving-your-data-where-you-wa= nt-in.html >> >> something like this: >> >> 1. xcopy /E /H /O /X /Y /I C:\Users D:\Users >> 2. rmdir /S /Q C:\Users >> 3. rmdir "C:\Documents and Settings" >> 4. mklink /J C:\Users D:\Users >> 5. mklink /J "C:\Documents and Settings" D:\Users >> >> I'm not in front of that computer right now but that sounds as though = it >> has something to do with it. > Are you sure every program you use, starting with Emacs, fully > supports directory junction points created like that? > I've not encountered any problems with directory junctions yet. I've been running it like this for at least 6 months. I tested again by trying to creating a file on /cygdrive/c/Temp which is not on the junctioned drive and received the same error. backtrace: Debugger entered--Lisp error: (file-error "Opening output file" stringp n= il) signal(file-error ("Opening output file" stringp nil)) (condition-case error (setq string (epg-encrypt-string context (if (stringp start) (epa-file--encode-coding-string start coding-system) (if start nil (setq start (point-min) end (point-max))) (setq buffer (current-buffer)) (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ... =2E.. ...) (and ... ...))))) (if (or (eq epa-file-select-keys t) (and (null epa-file-select-keys) (not (local-variable-p ... ...)))) (epa-select-keys context "Select recipients for encryption.\nIf no one is selected, symmetric encryption will be performed. " recipients) (if epa-file-encrypt-to (epg-list-keys context recipients))))) (error (if (setq entry (assoc file epa-file-passphrase-alist)) (setcdr entry nil)) (signal (quote file-error) (cons "Opening output file" (cdr error))))) (let* ((coding-system (or coding-system-for-write (if (fboundp (quote select-safe-coding-system)) (let ((buffer-file-name ...)) (select-safe-coding-system (point-min) (point-max))) buffer-file-coding-system))) (context (epg-make-context)) (coding-system-for-write (quote binary)) string entry (recipients (cond ((listp epa-file-encrypt-to) epa-file-encrypt-to) ((stringp epa-file-encrypt-to) (list epa-file-encrypt-to)))) buffer) (epg-context-set-passphrase-callback context (cons (function epa-file-passphrase-callback-function) file)) (epg-context-set-progress-callback context (cons (function epa-progress-callback-function) (format "Encrypting %s" file))) (epg-context-set-armor context epa-armor) (condition-case error (setq string (epg-encrypt-string context (if (stringp start) (epa-file--encode-coding-string start coding-system) (if start nil (setq start (point-min) end (point-max))) (setq buffer (current-buffer)) (let ((temp-buffer ...)) (save-current-buffer (set-buffer temp-buffer) (unwind-protect ... ...)))) (if (or (eq epa-file-select-keys t) (and (null epa-file-select-keys) (not ...))) (epa-select-keys context "Select recipients for encryption.\nIf no one is selected, symmetric encryption will be performed. " recipients) (if epa-file-encrypt-to (epg-list-keys context recipients))))) (error (if (setq entry (assoc file epa-file-passphrase-alist)) (setcdr entry nil)) (signal (quote file-error) (cons "Opening output file" (cdr error))))) (epa-file-run-real-handler (function write-region) (list string nil file append visit lockname mustbenew)) (if (boundp (quote last-coding-system-used)) (setq last-coding-system-used coding-system)) (if (eq visit t) (progn (setq buffer-file-name file) (set-visited-file-modtime)) (if (stringp visit) (progn (set-visited-file-modtime) (setq buffer-file-name visit)))) (if (or (eq visit t) (eq visit nil) (stringp visit)) (message "Wrote %s" buffer-file-name))) epa-file-write-region(nil nil "/cygdrive/c/Temp/test.gpg" nil t) apply(epa-file-write-region (nil nil "/cygdrive/c/Temp/test.gpg" nil t)= ) (if op (apply op args) (epa-file-run-real-handler operation args)) (let ((op (get operation (quote epa-file)))) (if op (apply op args) (epa-file-run-real-handler operation args))) (progn (let ((op (get operation (quote epa-file)))) (if op (apply op args) (epa-file-run-real-handler operation args)))) (unwind-protect (progn (let ((op (get operation (quote epa-file)))) (if op (apply op args) (epa-file-run-real-handler operation args)))) (set-match-data save-match-data-internal (quote evaporate))) (let ((save-match-data-internal (match-data))) (unwind-protect (progn (let ((op (get operation (quote epa-file)))) (if op (apply op args) (epa-file-run-real-handler operation args)))) (set-match-data save-match-data-internal (quote evaporate)))) epa-file-handler(write-region nil nil "/cygdrive/c/Temp/test.gpg" nil t= ) write-region(nil nil "/cygdrive/c/Temp/test.gpg" nil t "/cygdrive/c/Temp/test.gpg") basic-save-buffer-2() basic-save-buffer-1() basic-save-buffer() save-buffer(1) #(save-buffer nil nil) funcall(# save-buffer nil nil) (with-no-warnings (funcall ad--addoit-function function record-flag key= s)) (setq ad-return-value (with-no-warnings (funcall ad--addoit-function function record-flag keys))) (let ((ido-ubiquitous-next-override (ido-ubiquitous-get-command-override function))) (setq ad-return-value (with-no-warnings (funcall ad--addoit-function function record-flag keys)= ))) (ido-ubiquitous-with-override (ido-ubiquitous-get-command-override function) (setq ad-return-value (with-no-warnings (funcall ad--addoit-function function record-flag keys)))) (let (ad-return-value) (ido-ubiquitous-with-override (ido-ubiquitous-get-command-override function) (setq ad-return-value (with-no-warnings (funcall ad--addoit-function function record-flag keys)))) ad-return-value) ad-Advice-call-interactively(# save-buffer nil nil) apply(ad-Advice-call-interactively # (save-buffer nil nil)) call-interactively(save-buffer nil nil) command-execute(save-buffer) --=20 Jason Lewis http://emacstragic.net --QiPmvCvwC9gu9aCESC2FiNdHlRA3FlEr6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (MingW32) iQIcBAEBCAAGBQJS+VsWAAoJEPpXHsdQXnZO7hEP/j5FYqt0e8OpwrKQI/7to0vN IoxiZBwWpjZM75PKirm8HSHGsGjRmvL7ERjM7j8F5hGzi262zoQZgxHX/uzdAadj MTVdZm61+dUViETaIXdq+qqEUybYNPqUoitnGcb0s9UsY9CUT7RS0hlZS9F/qylC GkAF8UNwnR0bd7s5xYrahFpJi7k04FjwTkk/+eSduVLftRCuWsK66zmomFNDlSBT angk0BrckJ3e49N16/65QXnBJyjTDaLPE6GkpAAlfpBvxwkRSurSph2W5MNj0uxZ nWSNVcnD4uNYeM+iO4Qik0qj8zGEzcwwFoSxu3BMAm/X1suiScs4NZQWxftbTaCm nzMHjgSb+Z3Nts6OyVhfKvTsK57fuIfuHU9wVnvLS11Qd1hYNSctypZUW6qx6ea3 iAvVAaQ851nAEcApLgRa4fNuIoaaZQH3071gPe01pUcS1TfBMYmq7ANO6lHno3oF 8gPj107uSbtvSEtLFnCajYkgIY+9QYgZLmB6CjcbozD6FbQ4ooLQeWWrHHpsN/46 T3uJ0XMqbC3iSb1QSFaW8gbR/Emtb+dNSobj7SGghXa6bU5QCnZYFkUSFcDkE4s7 a38MHaILdgXpU962QfRdJZZPjP9VLPcc1Al/qrIv52gpO/+tZffU46b0iFtNYABX 9t6BJtsq1deOiV0Vec5A =NDxu -----END PGP SIGNATURE----- --QiPmvCvwC9gu9aCESC2FiNdHlRA3FlEr6--