From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#486: pgg-gpg.el - pgg-gpg-process-region timing problem Date: Sat, 02 Aug 2008 10:51:24 -0400 Message-ID: <87d4krv5ar.fsf@stupidchicken.com> Reply-To: Chong Yidong , 486@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 1217689669 24915 80.91.229.12 (2 Aug 2008 15:07:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Aug 2008 15:07:49 +0000 (UTC) Cc: 486@emacsbugs.donarmstrong.com To: "ken manheimer" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 02 17:08:39 2008 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 1KPIig-0002kf-NT for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Aug 2008 17:08:35 +0200 Original-Received: from localhost ([127.0.0.1]:60280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KPIhl-0004M7-VZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Aug 2008 11:07:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KPIhe-0004L8-5F for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2008 11:07:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KPIhb-0004K0-1a for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2008 11:07:29 -0400 Original-Received: from [199.232.76.173] (port=41282 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KPIha-0004Jv-Tu for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2008 11:07:26 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43771) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KPIhZ-0005Lu-FK for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2008 11:07:25 -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 m72F7L0R023820; Sat, 2 Aug 2008 08:07:22 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m72F03xv020367; Sat, 2 Aug 2008 08:00:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 02 Aug 2008 15:00:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 486 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 486-submit@emacsbugs.donarmstrong.com id=B486.121768869218737 (code B ref 486); Sat, 02 Aug 2008 15:00:03 +0000 Original-Received: (at 486) by emacsbugs.donarmstrong.com; 2 Aug 2008 14:51:32 +0000 Original-Received: from furry (c-24-63-201-57.hsd1.ma.comcast.net [24.63.201.57]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m72EpTMk018731 for <486@emacsbugs.donarmstrong.com>; Sat, 2 Aug 2008 07:51:30 -0700 Original-Received: by furry (Postfix, from userid 1000) id 46933C056; Sat, 2 Aug 2008 10:51:24 -0400 (EDT) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sat, 02 Aug 2008 11:07:29 -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:18964 Archived-At: > i am not sure how to proceed with this problem. as demonstrated by > the pggprob.el script, i consistently get encryption and decryption > problems without the contrived delay in my pgg-gpg-process-region > patch. (the problem does not happen if i just do a regular > pgg-decrypt - i think the crucial thing is that a symmetric passphrase > is being passed into pgg-gpg-process-region.) I haven't been able to reproduce this problem, so let me make sure I understand your recipe correctly. First, I create a buffer with the following contents (setq passphrase "a" verifier "-----BEGIN PGP MESSAGE----- Version: GnuPG v1.4.6 (GNU/Linux) jA0EAwMCo72fNGB1rNxgySv+rxdkPv46nVxQ5fg4yT78ldgVcDseD7Mre4Fhjifn VTA1/PdmetVfFb9+ =MXF6 -----END PGP MESSAGE-----" count 0) (defun decrypt (passphrase text) (with-current-buffer (get-buffer-create "*pgg-test*") (erase-buffer) (insert text) (pgg-decrypt nil nil passphrase))) Then, I eval the buffer with M-x eval-buffer. Finally, I do M-: (decrypt passphrase verifier) RET This consistently gives me the message `208' in the echo area. I don't see a nil result, but that's what you see, correct?