From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47620 Path: main.gmane.org!not-for-mail From: Jorge Godoy Newsgroups: gmane.emacs.gnus.general Subject: Re: PGG and 'pgg-sign' command. Date: Sun, 10 Nov 2002 11:53:14 -0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036936479 17334 80.91.224.249 (10 Nov 2002 13:54:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 10 Nov 2002 13:54:39 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18AsXu-0004VS-00 for ; Sun, 10 Nov 2002 14:54:38 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18AsYk-0006sb-00; Sun, 10 Nov 2002 07:55:30 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 10 Nov 2002 07:56:16 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id HAA28870 for ; Sun, 10 Nov 2002 07:56:01 -0600 (CST) Original-Received: (qmail 2479 invoked by alias); 10 Nov 2002 13:55:08 -0000 Original-Received: (qmail 2474 invoked from network); 10 Nov 2002 13:55:08 -0000 Original-Received: from panda.sul.com.br (HELO ns.sul.com.br) (200.219.150.4) by gnus.org with SMTP; 10 Nov 2002 13:55:08 -0000 Original-Received: from wintermute.casa (3-216.ctame701-5.telepar.net.br [200.181.180.216]) by ns.sul.com.br (8.11.6/8.11.6) with ESMTP id gAADu9D42953 for ; Sun, 10 Nov 2002 11:56:12 -0200 (BRST) (envelope-from godoy@ieee.org) Original-Received: by wintermute.casa (Postfix, from userid 550) id 9D5144C112; Sun, 10 Nov 2002 11:53:14 -0200 (BRST) Original-To: ding@gnus.org X-URL: Mail-Copies-To: nobody X-Disclaimer: Unless explicitly stated, opinions on this message are strictly mine In-Reply-To: (Simon Josefsson's message of "Sun, 10 Nov 2002 09:06:59 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-conectiva-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47620 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47620 Simon Josefsson writes: > Jorge Godoy writes: > >> I'm trying to use 'pgg-sign', but although it makes the screen blink >> and repositions the cursor at the beginning of the screen, nothing >> happens and the message isn't signed. When I use pgg-sign-region with >> a marked region, everything works just fine. > > The patch below should fix it, but it is ugly and the same solution > doesn't work for pgg-encrypt. Elisp Q: How do I interactively call a > function specifying the parameters directly? > > --- pgg.el.~6.9.~ 2002-10-30 19:40:41.000000000 +0100 > +++ pgg.el 2002-11-10 09:06:30.000000000 +0100 > @@ -228,7 +228,10 @@ > If optional arguments START and END are specified, only sign data > within the region." > (interactive "") > - (pgg-sign-region (or start (point-min)) (or end (point-max)) cleartext)) > + (save-excursion > + (set-mark (or start (point-min))) > + (goto-char (or end (point-max))) > + (call-interactively 'pgg-sign-region))) > > ;;;###autoload > (defun pgg-verify-region (start end &optional signature fetch) I guess that the solution pointed out by Josh Hubber (<87znsil4pb.fsf@mail.paradoxical.net>) solves the problem and even make this command useless... I know that you added them because of some prior message of mine, but what do you think about mapping 'pgg-sign' and 'pgg-encrypt' to those mml- equivalent options? See you, -- Godoy.