From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47617 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: PGG and 'pgg-sign' command. Date: Sun, 10 Nov 2002 09:06:59 +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 1036915657 9261 80.91.224.249 (10 Nov 2002 08:07:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 10 Nov 2002 08:07:37 +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 18An83-0002PA-00 for ; Sun, 10 Nov 2002 09:07:36 +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 18An7u-0004g1-00; Sun, 10 Nov 2002 02:07:26 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 10 Nov 2002 02:08:12 -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 CAA28295 for ; Sun, 10 Nov 2002 02:07:57 -0600 (CST) Original-Received: (qmail 28166 invoked by alias); 10 Nov 2002 08:07:04 -0000 Original-Received: (qmail 28161 invoked from network); 10 Nov 2002 08:07:04 -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; 10 Nov 2002 08:07:04 -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 gAA870Fu017338 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 10 Nov 2002 09:07:01 +0100 Original-To: ding@gnus.org Mail-Copies-To: nobody X-Hashcash: 0:021110:ding@gnus.org:3706cac4cdb45d5c In-Reply-To: (Jorge Godoy's message of "Sat, 09 Nov 2002 09:47:28 -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:47617 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47617 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)