From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Modifying Emacs to use the Mac OS X Keychain Services Date: Sat, 28 May 2011 21:38:05 +0200 Message-ID: <87hb8e8vky.fsf@gmx.de> References: <8762ov84k3.fsf@gmx.de> <87aae67v6e.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1306611502 12118 80.91.229.12 (28 May 2011 19:38:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 May 2011 19:38:22 +0000 (UTC) Cc: tzz@lifelogs.com, Emacs-devel@gnu.org To: Ben Key Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 28 21:38:18 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 1QQPKx-0000yQ-Tq for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 21:38:16 +0200 Original-Received: from localhost ([::1]:37572 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQPKx-0005Rm-IH for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 15:38:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQPKu-0005Re-Lg for Emacs-devel@gnu.org; Sat, 28 May 2011 15:38:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQPKt-0003Ye-H5 for Emacs-devel@gnu.org; Sat, 28 May 2011 15:38:12 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:41597) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QQPKt-0003YN-4P for Emacs-devel@gnu.org; Sat, 28 May 2011 15:38:11 -0400 Original-Received: (qmail invoked by alias); 28 May 2011 19:38:08 -0000 Original-Received: from p57BB9187.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.145.135] by mail.gmx.net (mp015) with SMTP; 28 May 2011 21:38:08 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18MeKQcf5kM0GXFvd9eXt0T24z1wmR0kwmPJdCREt gsiI6TPoe0TauV In-Reply-To: (Ben Key's message of "Sat, 28 May 2011 12:16:53 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.23 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:139849 Archived-At: Ben Key writes: > Some information on the Keychain Services API can be found at the > Keychain Services Tasks for Mac OS X page found at > http://developer.apple.com/library/mac/#documentation/Security/Conceptual= /keychainServConcepts/03tasks/tasks. > html.=C2=A0 More detailed information can be found at the Keychain Servic= es > Reference page found at > http://developer.apple.com/library/mac/#documentation/Security/Reference/= keychainservices/Reference/reference. > html. Thanks, I'll have a look on it. > Once the functions are defined in C, we can later decide how to call > them from Lisp.=C2=A0 We can decide to call them from secrets.el by having > each of the functions use the following psudeo code > > (if (fboundp 'ns-{func}) > =C2=A0 call ns-{func} > use dbus) What about when there will be a Secrets Services API implementation on OS X? > Perhaps I should just focus on writing the ns- equivalents of each of > the secrets.el functions and we can decide later how to call them.=C2=A0 > What do you think? Yes, that might be a starting point.