From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Daiki Ueno" Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: New Emacs facilities from Gnus Date: Fri, 2 Nov 2007 01:16:14 +0900 Message-ID: <54a15d860711010916g6996c8e2r6ed22e45be65d9a2@mail.gmail.com> References: <87zly3y4ru.fsf@catnip.gol.com> <87odejy30k.fsf@catnip.gol.com> <873avqnhsz.fsf@mocca.josefsson.org> 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 1193933795 6197 80.91.229.12 (1 Nov 2007 16:16:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Nov 2007 16:16:35 +0000 (UTC) Cc: Miles Bader , ding@gnus.org, emacs-devel@gnu.org To: "Simon Josefsson" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 01 17:16:37 2007 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 1Incie-0005mP-Ol for ged-emacs-devel@m.gmane.org; Thu, 01 Nov 2007 17:16:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InciU-0003x9-QJ for ged-emacs-devel@m.gmane.org; Thu, 01 Nov 2007 12:16:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1InciQ-0003uW-Nc for emacs-devel@gnu.org; Thu, 01 Nov 2007 12:16:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1InciP-0003rs-2J for emacs-devel@gnu.org; Thu, 01 Nov 2007 12:16:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InciO-0003rf-QJ for emacs-devel@gnu.org; Thu, 01 Nov 2007 12:16:16 -0400 Original-Received: from el-out-1112.google.com ([209.85.162.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1InciO-0000b1-Fr for emacs-devel@gnu.org; Thu, 01 Nov 2007 12:16:16 -0400 Original-Received: by el-out-1112.google.com with SMTP id s27so148629ele for ; Thu, 01 Nov 2007 09:16:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; 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=q1LUcivx7rinwdD5rCdhC6o0rRJn3DDM0Pp7XEW+0ks=; b=E/fptSH9VMydULhgJaYQoCBoTy9TktkO04ex0qSypQz7CUXWniv3Dj0RopEDSnMO+jydD7eOM+vREnPUC7ZtpmTPAVJxTcZno1x2bm1WQ+921lpTxqCYaoE5xLZQVBoi/X7b4aRGMn7SOpZfCL3cmIkuh2sjMBaJ1gsd6nul8K0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=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; b=JP/Fb3wjSe6It7Yh/oKXWebISVHDTJKcvmySK7ljbsJbCmYvDcsUYaVd5Cg8DNtTMoiRxLuTM838yUNuOiT4PTrj0QceaLaI+bf5hIHYBIGoMAv6efzphbBJbpy7bd4A2H5sSKT4TaMQpm0259C+ZGmtrqUGWr7apznUyArh6rI= Original-Received: by 10.142.131.18 with SMTP id e18mr189500wfd.1193933774855; Thu, 01 Nov 2007 09:16:14 -0700 (PDT) Original-Received: by 10.142.213.14 with HTTP; Thu, 1 Nov 2007 09:16:14 -0700 (PDT) In-Reply-To: <873avqnhsz.fsf@mocca.josefsson.org> Content-Disposition: inline X-Google-Sender-Auth: 2f0d5fc009c62dd0 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 (Google crawlbot) 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:82299 gmane.emacs.gnus.general:65522 Archived-At: 2007/11/1, Simon Josefsson : > > * password.el: > > I don't care strongly about it, but it was created as a consequence of > finding duplicated code in various places that did something similar. I > think those code duplications are still present. In that case, I'd suggest that the low-level libraries which need passphrase input should provide a callback mechanism for reading passphrases. For instance, though epg.el does not cache passphrase by itself, application programmers can add their own cache mechanisms in the caller side as they desire: (let ((c (epg-make-context))) (epg-context-set-passphrase-callback c (lambda (context handback) ...passphrase caching code...)) (epg-encrypt-string c "test" nil)) If all the libraries support this, application programmers can put these code in the single place, and library programmers will never be troubled with the default behavior of passphrase caching ;-) Regards, -- Daiki Ueno