Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: PGG and 'pgg-sign' command.
Date: Mon, 11 Nov 2002 06:21:52 +0100	[thread overview]
Message-ID: <iluel9sof4f.fsf@latte.josefsson.org> (raw)
In-Reply-To: <kplm418rat.fsf@wintermute.casa> (Jorge Godoy's message of "Sun, 10 Nov 2002 11:53:14 -0200")

Jorge Godoy <godoy@ieee.org> writes:

> Simon Josefsson <jas@extundo.com> writes:
>
>> Jorge Godoy <godoy@ieee.org> 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.




      reply	other threads:[~2002-11-11  5:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-09 11:47 Jorge Godoy
2002-11-09 23:10 ` Josh Huber
2002-11-10 12:52   ` Jorge Godoy
2002-11-10  8:06 ` Simon Josefsson
2002-11-10 13:53   ` Jorge Godoy
2002-11-11  5:21     ` Simon Josefsson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iluel9sof4f.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).