From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47624 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: PGG and 'pgg-sign' command. Date: Mon, 11 Nov 2002 06:21:52 +0100 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 1036992358 17733 80.91.224.249 (11 Nov 2002 05:25:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 11 Nov 2002 05:25:58 +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 18B75A-0004aF-00 for ; Mon, 11 Nov 2002 06:25:56 +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 18B71j-0000EL-00; Sun, 10 Nov 2002 23:22:23 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 10 Nov 2002 23:23:09 -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 XAA00546 for ; Sun, 10 Nov 2002 23:22:52 -0600 (CST) Original-Received: (qmail 7673 invoked by alias); 11 Nov 2002 05:22:00 -0000 Original-Received: (qmail 7665 invoked from network); 11 Nov 2002 05:22:00 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 11 Nov 2002 05:22:00 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.6/8.12.6) with ESMTP id gAB5LsFu000906 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 11 Nov 2002 06:21:55 +0100 Original-To: ding@gnus.org Mail-Copies-To: nobody X-Hashcash: 0:021111:ding@gnus.org:1e87f1736ede245a In-Reply-To: (Jorge Godoy's message of "Sun, 10 Nov 2002 11:53:14 -0200") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.92 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47624 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47624 Jorge Godoy writes: > 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... pgg-encrypt/pgg-decrypt/pgg-sign/pgg-verify should now display output when called interactively. I'm not sure they are useless, users that aren't familiar with Emacs often dislike *-region functions. And it saves power users a key press to set the mark too. > 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? I don't think that is a good idea. PGG should IMHO only be a low-level interface to OpenPGP implementations such as GnuPG. If you need more high-level operations, you can use a more high-level interface like MML.