From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46674 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: gpg.el still not working Date: Tue, 24 Sep 2002 13:22:53 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <86znu9v46q.fsf@duchess.twilley.org> <86bs6ope64.fsf@duchess.twilley.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032866678 1911 127.0.0.1 (24 Sep 2002 11:24:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 24 Sep 2002 11:24:38 +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 17tnnx-0000Ug-00 for ; Tue, 24 Sep 2002 13:24:37 +0200 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 17tnmd-0003Tl-00; Tue, 24 Sep 2002 06:23:15 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 24 Sep 2002 06:23:54 -0500 (CDT) 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 GAA10371 for ; Tue, 24 Sep 2002 06:23:40 -0500 (CDT) Original-Received: (qmail 18913 invoked by alias); 24 Sep 2002 11:22:56 -0000 Original-Received: (qmail 18908 invoked from network); 24 Sep 2002 11:22:56 -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; 24 Sep 2002 11:22:56 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) by yxa.extundo.com (8.12.6/8.12.6) with ESMTP id g8OBMrn2011958 for ; Tue, 24 Sep 2002 13:22:53 +0200 Original-To: ding@gnus.org Mail-Copies-To: nobody X-Hashcash: 0:020924:ding@gnus.org:12a20469c8bd4d35 In-Reply-To: <86bs6ope64.fsf@duchess.twilley.org> (Jack Twilley's message of "Mon, 23 Sep 2002 14:52:03 -0700") Original-Lines: 59 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-debian-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46674 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46674 Jack Twilley 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(#"> #) `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.