From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ben Key Newsgroups: gmane.emacs.devel Subject: Re: Modifying Emacs to use the Mac OS X Keychain Services Date: Sat, 11 Jun 2011 21:28:19 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1307845749 5189 80.91.229.12 (12 Jun 2011 02:29:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Jun 2011 02:29:09 +0000 (UTC) To: Emacs Development , Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 12 04:29:05 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QVaQC-000736-NY for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2011 04:29:04 +0200 Original-Received: from localhost ([::1]:51066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVaQB-0008Ko-I5 for ged-emacs-devel@m.gmane.org; Sat, 11 Jun 2011 22:29:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVaPr-0008K2-Uo for Emacs-devel@gnu.org; Sat, 11 Jun 2011 22:28:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVaPq-0005xJ-KL for Emacs-devel@gnu.org; Sat, 11 Jun 2011 22:28:43 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:35214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVaPq-0005xB-6n for Emacs-devel@gnu.org; Sat, 11 Jun 2011 22:28:42 -0400 Original-Received: by bwz17 with SMTP id 17so3830031bwz.0 for ; Sat, 11 Jun 2011 19:28:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=MvhGsOgU/SpfzvDi5vagyiqfIOMvpfJSgzMEuvRcT40=; b=ChCqb32cy0EAvbjzi9SfukC+ISSgLkBIlEAlOP7nva6kidsVsXRwf/kEGIwrkgurOw yv7S2p041NI1ZYm/uhjWxpisaAU2ixJ3cb1ErtwM56NQDH1Ron9cZ8U1fdd72lon+I5B 2J+NDPYMf92GSSOKLv/amZABeeSJV4Cy/w3fs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=YTDzm6U3EKuILzOnplYQFTkPKJ1OsvJQaisAE1cKHS842Qz3zy+xc6hoG7Zl6cZ29k 5AHpBdTOsiTMn7uoJKmu81WJ2LsojXSA/0P56gmXr0fmJMTRg0Fbr+tejHdRcY6+3gY1 /JzZPwNcVMZeJo110p7RhOy0v2UiFrwaiSCGo= Original-Received: by 10.204.19.3 with SMTP id y3mr3245101bka.180.1307845720319; Sat, 11 Jun 2011 19:28:40 -0700 (PDT) Original-Received: by 10.204.59.212 with HTTP; Sat, 11 Jun 2011 19:28:19 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140389 Archived-At: Ted Zlatanov wrote: > Provide a `ns-keychain-open' and a `ns-keychain-create' (plus a > `ns-keychain-create-or-open' convenience function if you wish, and a > `ns-keychain-delete' if you think it's safe). I had planed to allow each of the ns-keychain functions to take a keychain parameter that was a string and open or create the keychain automatically. But the design you recommend will actually make things easier. This is the design I will use then. Note that to avoid resource leaks, I will also have to provide a ns-keychain-close function.