From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Daiki Ueno" Newsgroups: gmane.emacs.devel Subject: Re: EasyPG API and usage questions (was: Suggestion: epa-file-select-keys should show currently selected keys) Date: Sat, 1 Mar 2008 09:38:45 +0900 Message-ID: <54a15d860802291638h3278024fkf84cdca50a3adde5@mail.gmail.com> References: <87d4qiaj3j.fsf@broken.deisui.org> <87skzdi3pw.fsf@bzg.ath.cx> <871w6w1k38.fsf@broken.deisui.org> <8663w7hg1o.fsf_-_@lifelogs.com> <54a15d860802291623m3c9844d1k80515e661f435179@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204331940 1935 80.91.229.12 (1 Mar 2008 00:39:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Mar 2008 00:39:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Ted Zlatanov" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 01 01:39:26 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JVFl7-0004up-Te for ged-emacs-devel@m.gmane.org; Sat, 01 Mar 2008 01:39:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVFkb-0000lw-9e for ged-emacs-devel@m.gmane.org; Fri, 29 Feb 2008 19:38:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JVFkW-0000hM-7n for emacs-devel@gnu.org; Fri, 29 Feb 2008 19:38:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JVFkU-0000eP-Kj for emacs-devel@gnu.org; Fri, 29 Feb 2008 19:38:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVFkU-0000eJ-E3 for emacs-devel@gnu.org; Fri, 29 Feb 2008 19:38:46 -0500 Original-Received: from wf-out-1314.google.com ([209.85.200.173]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JVFkU-0003oI-6s for emacs-devel@gnu.org; Fri, 29 Feb 2008 19:38:46 -0500 Original-Received: by wf-out-1314.google.com with SMTP id 29so4715369wff.24 for ; Fri, 29 Feb 2008 16:38:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=Tlqb/nsVIVhcvrz5caYrL4OXBc9B0tl3UfB7ddWfrAU=; b=anb7iC4mn7yvv6UoUp5qN4PVl81TPzZbXDUzeVE3oOr+9mFZvhX+g9N4lk513v4uXRkD6ObyUHiWQj68z8wH4pSV3Jn/uqQvAXWEH4JLZTSQncsCD+g2KsPooomq+l/oRy1MiPO8ZEnVYpzxmrhn2mTMY2HJxlnUqdd/fAfb2yQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=RoVaO7pLrtCwjOQh7FmoyT+cfUGAItEweXnaCrfXk22143Cuqn2/Q+hvRjjLPEJsOgMFB50a4lNsBYISS2rIMqVojrUIJrwiyuzQxc/AB1N3wX7gFWfmlfOzsG4zRTH+AGhiG0Tl0417xUIWStgy7/AIdQyKCsDe9biR1KKi+2s= Original-Received: by 10.142.72.21 with SMTP id u21mr7420202wfa.65.1204331925243; Fri, 29 Feb 2008 16:38:45 -0800 (PST) Original-Received: by 10.142.241.4 with HTTP; Fri, 29 Feb 2008 16:38:45 -0800 (PST) In-Reply-To: <54a15d860802291623m3c9844d1k80515e661f435179@mail.gmail.com> Content-Disposition: inline X-Google-Sender-Auth: 96fa0685e90f1fba X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90938 Archived-At: 2008/3/1, Daiki Ueno : > > - how do I specify plaintext instead of binary output? > > s/plaintext/ASCII armor/? It can be done with: > > (let ((epg-make-context 'OpenPGP)) > (epg-context-set-armor t) > (epg-encrypt-string context "test test test" nil)) This is apparently wrong. It should be: (let ((context (epg-make-context 'OpenPGP))) (epg-context-set-armor context t) (epg-encrypt-string context "test test test" nil)) Sorry for the noise. -- Daiki Ueno