Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: gpg.el still not working
Date: Tue, 24 Sep 2002 13:22:53 +0200	[thread overview]
Message-ID: <ilu4rcfaaya.fsf@latte.josefsson.org> (raw)
In-Reply-To: <86bs6ope64.fsf@duchess.twilley.org> (Jack Twilley's message of "Mon, 23 Sep 2002 14:52:03 -0700")

Jack Twilley <jmt+usenet@twilley.org> writes:

> Signaling: (wrong-type-argument number-char-or-marker-p nil)
>   >(nil 0)
>   (or (stringp res) (> res 0))
>   (if (or (stringp res) (> res 0)) (with-current-buffer result (insert ...) nil) t)
>   (let* ((msg-file ...) (cmd ...) (args ...) res) (with-temp-file msg-file (buffer-disable-undo) (apply ... ...)) (setq res (apply ... ... ... cmd nil result nil args)) (if (or ... ...) (with-current-buffer result ... nil) t))
>   (progn (gpg-with-temp-files-create 1) (let* (... ... ... res) (with-temp-file msg-file ... ...) (setq res ...) (if ... ... t)))
>   (unwind-protect (progn (gpg-with-temp-files-create 1) (let* ... ... ... ...)) (gpg-with-temp-files-delete))
>   (let ((gpg-temp-files)) (unwind-protect (progn ... ...) (gpg-with-temp-files-delete)))
>   (gpg-with-temp-files 1 (let* (... ... ... res) (with-temp-file msg-file ... ...) (setq res ...) (if ... ... t)))
>   gpg-verify-cleartext(#<buffer " *mm-uu*<2>"> #<buffer "*MML2015 Result*">)

`call-process-region' seem to return nil, but according to the
documentation for that function it should never do this unless buffer
was NIL, which wasn't the case here.  Maybe you can strip down the
code and make a bug report (or discover why this happens)?

> Simon> "grep -e pgp -e gpg -e mailcrypt -e mc .emacs" shows the
> Simon> following for me (I have both gpg.el and mailcrypt installed,
> Simon> and Gnus prefers gpg.el if it finds it, which it does):
>
> Those symbols are only found in my .gnus, not in my .xemacs/init.el:

Ah, I don't have a .gnus, so what I posted was all I used.

>  gnus-use-installed-mailcrypt nil

I don't think that variable exists.

>  gnus-use-mailcrypt nil

Neither does this one.

> (require 'gpg)

This is not necessary if you have gpg in your load-path.

> (require 'bbdb-pgp)
>  bbdb/pgp-default-action 'sign
>  bbdb/pgp-ask nil
> ;(remove-hook 'message-send-hook 'bbdb/pgp-hook-fun)
> ;(add-hook 'message-send-mail-hook 'bbdb/pgp-hook-fun)
> ;					   (mml-secure-message-sign-pgpmime)))))
>    ; (gnus-demon-scan-pgp 180 t)
>  gnus-treat-strip-pgp 'last
>  gpg-command-default-alist '((gpg . "gpg")
> 			     (gpg-2comp . "pgpgpg"))

Hm, are gpg and pgppg in PATH?  Maybe call-process-region returns nil
if the commands aren't found?  For me in Emacs it triggers an error
though, which seems correct.

>  gpg-passphrase-timeout 5
>  gpg-temp-directory "~/.gnupg/tmp"
>  mml2015-use 'gpg

Gpg is the default for mml2015 if it is found, so this shouldn't be
necessary either.




  reply	other threads:[~2002-09-24 11:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-23  2:18 Jack Twilley
2002-09-23 10:31 ` Simon Josefsson
2002-09-23 12:45   ` Kai Großjohann
2002-09-23 21:52   ` Jack Twilley
2002-09-24 11:22     ` Simon Josefsson [this message]
2002-09-24 14:58       ` Josh Huber
2002-09-24 17:06         ` Jack Twilley
2002-09-24 17:27           ` Josh Huber
2002-09-24 18:54             ` Jack Twilley
2002-09-24 20:17               ` Josh Huber
2002-09-25  0:55                 ` Jack Twilley

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=ilu4rcfaaya.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).