* PGG and 'pgg-sign' command.
@ 2002-11-09 11:47 Jorge Godoy
2002-11-09 23:10 ` Josh Huber
2002-11-10 8:06 ` Simon Josefsson
0 siblings, 2 replies; 6+ messages in thread
From: Jorge Godoy @ 2002-11-09 11:47 UTC (permalink / raw)
Hi!
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.
Is there something I can do to try fixing this? I'm not a LISP coder,
so I can only help from the user side of the problem.
Thanks in advance,
--
Godoy. <godoy@ieee.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PGG and 'pgg-sign' command.
2002-11-09 11:47 PGG and 'pgg-sign' command Jorge Godoy
@ 2002-11-09 23:10 ` Josh Huber
2002-11-10 12:52 ` Jorge Godoy
2002-11-10 8:06 ` Simon Josefsson
1 sibling, 1 reply; 6+ messages in thread
From: Josh Huber @ 2002-11-09 23:10 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 774 bytes --]
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.
Why are you trying to use this function?
> Is there something I can do to try fixing this? I'm not a LISP
> coder, so I can only help from the user side of the problem.
Well, what do you want to use it for? If you just want to sign a
message, use something like mml-secure-sign-pgpmime (C-c C-m s p)
When the message gets processed before sending the secure tag at the
top of the body will get turned into the proper signed parts, etc.
--
Josh Huber
[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PGG and 'pgg-sign' command.
2002-11-09 23:10 ` Josh Huber
@ 2002-11-10 12:52 ` Jorge Godoy
0 siblings, 0 replies; 6+ messages in thread
From: Jorge Godoy @ 2002-11-10 12:52 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]
Josh Huber <huber@alum.wpi.edu> 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.
>
> Why are you trying to use this function?
Which one? pgg-sign or pgg-sign-region?
I'm trying pgg-sign because the message contains no attachment, only
text, and I want it all signed. It's the fastest way --- theoretically
--- because I don't have to mark any region before applying the
command.
I'm using pgg-sign-region because it works.
>> Is there something I can do to try fixing this? I'm not a LISP
>> coder, so I can only help from the user side of the problem.
>
> Well, what do you want to use it for? If you just want to sign a
> message, use something like mml-secure-sign-pgpmime (C-c C-m s p)
With PGG?
I'm trying it on this message.
> When the message gets processed before sending the secure tag at the
> top of the body will get turned into the proper signed parts, etc.
I hope so.
Thanks in advance,
--
Godoy. <godoy@ieee.org>
[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PGG and 'pgg-sign' command.
2002-11-09 11:47 PGG and 'pgg-sign' command Jorge Godoy
2002-11-09 23:10 ` Josh Huber
@ 2002-11-10 8:06 ` Simon Josefsson
2002-11-10 13:53 ` Jorge Godoy
1 sibling, 1 reply; 6+ messages in thread
From: Simon Josefsson @ 2002-11-10 8:06 UTC (permalink / raw)
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)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PGG and 'pgg-sign' command.
2002-11-10 8:06 ` Simon Josefsson
@ 2002-11-10 13:53 ` Jorge Godoy
2002-11-11 5:21 ` Simon Josefsson
0 siblings, 1 reply; 6+ messages in thread
From: Jorge Godoy @ 2002-11-10 13:53 UTC (permalink / raw)
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... 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. <godoy@ieee.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PGG and 'pgg-sign' command.
2002-11-10 13:53 ` Jorge Godoy
@ 2002-11-11 5:21 ` Simon Josefsson
0 siblings, 0 replies; 6+ messages in thread
From: Simon Josefsson @ 2002-11-11 5:21 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-11-11 5:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-09 11:47 PGG and 'pgg-sign' command 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 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).