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: Moving files from lisp/gnus/ to lisp/net/? Date: Mon, 12 Nov 2007 17:54:19 +0900 Message-ID: <54a15d860711120054q51016525nc1c875a40a923cb4@mail.gmail.com> References: <54a15d860711071646u2c200961y69e7d684c7418a7a@mail.gmail.com> <54a15d860711081633k364caf30r3b75464be8a060fa@mail.gmail.com> <87hcjtfy0s.fsf@broken.deisui.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 1194857678 723 80.91.229.12 (12 Nov 2007 08:54:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Nov 2007 08:54:38 +0000 (UTC) Cc: simon@josefsson.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 12 09:54:42 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 1IrV45-0004pW-NG for ged-emacs-devel@m.gmane.org; Mon, 12 Nov 2007 09:54:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrV3t-0002PT-Es for ged-emacs-devel@m.gmane.org; Mon, 12 Nov 2007 03:54:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IrV3q-0002NV-3y for emacs-devel@gnu.org; Mon, 12 Nov 2007 03:54:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IrV3n-0002NJ-ND for emacs-devel@gnu.org; Mon, 12 Nov 2007 03:54:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrV3n-0002NG-Gu for emacs-devel@gnu.org; Mon, 12 Nov 2007 03:54:23 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IrV3m-0000bu-Gl for emacs-devel@gnu.org; Mon, 12 Nov 2007 03:54:22 -0500 Original-Received: from nz-out-0506.google.com ([64.233.162.229]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IrV3l-0000n4-FW for emacs-devel@gnu.org; Mon, 12 Nov 2007 03:54:21 -0500 Original-Received: by nz-out-0506.google.com with SMTP id f1so812171nzc for ; Mon, 12 Nov 2007 00:54:20 -0800 (PST) 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=YWDhoVbSEE+JrBI6n08u3ugxzj9dWXME7S8jfxkrtuk=; b=OgYObc5ePWNHzxMZ6fIM35jc75efbcd01YN/3djkpBIftq9gPwtsbGURWoqd4LwrwY7qzQr++QUxUxj3H5DbnEfcNK/0iBn3wKnvwF1DSuQSTzy6TxlrPyqpIiT9VeWWunNzMMq9bo+BEQO6EpQUHcv0bvoHRQnqDFJDqkrtGag= 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=lIWUuxulSOvK3QzOTkm57SVdW0WV1h6+j0hpXNdKYIGQFzMNhN83VtcfgOrBL/9wVLWPFVlosUlllMgnvIUTGYANi6c09FEkR/fg/OV7PJDiPRA/o5RY/OUSHA9k/pdA6JYuIz37ctVmXMqezq1AYI7JRhyx3Smk9FGWyd4R6/g= Original-Received: by 10.142.201.3 with SMTP id y3mr31337wff.1194857659222; Mon, 12 Nov 2007 00:54:19 -0800 (PST) Original-Received: by 10.142.237.3 with HTTP; Mon, 12 Nov 2007 00:54:19 -0800 (PST) In-Reply-To: Content-Disposition: inline X-Google-Sender-Auth: 4f5623518edf7823 X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:83034 Archived-At: 2007/11/12, Richard Stallman : > If the only desired operation is to read a password and see if it is > in the cache, then I think we should give `read-passwd' an optional > KEY argument and make it just check the cache, not add. That won't > lead to the previously described code-copying problem, because the > cache will not have passwords for the new application unless it also > has calls to add to the cache. Exactly. But I'm still in doubt that it is worth adding an optional KEY argument to `read-passwd'. It will indeed reduces the code from: (let ((password (or (password-read-from-cache key) (read-passwd "Password: " confirm default)))) ... use PASSWORD, and/or check its validity ... (if password-should-be-cached (password-cache-add key password))) to: (let ((password (read-passwd "Password: " confirm default key))) ... use PASSWORD, and/or check its validity ... (if password-should-be-cached (password-cache-add key password))) This will help programmers only a little, and speaking of this kind of "risky" code, we should rather require programmers to type more letters than ordinary code, I think. Regards, -- Daiki Ueno