From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Modifying Emacs to use the Mac OS X Keychain Services Date: Wed, 15 Jun 2011 19:26:55 -0400 Message-ID: References: <87k4cnt9gv.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308180455 23978 80.91.229.12 (15 Jun 2011 23:27:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2011 23:27:35 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 16 01:27:30 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 1QWzUg-0006pp-6c for ged-emacs-devel@m.gmane.org; Thu, 16 Jun 2011 01:27:30 +0200 Original-Received: from localhost ([::1]:60665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWzUf-0004aY-5G for ged-emacs-devel@m.gmane.org; Wed, 15 Jun 2011 19:27:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWzUB-0004YD-3w for emacs-devel@gnu.org; Wed, 15 Jun 2011 19:27:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWzU9-0004mM-Hu for emacs-devel@gnu.org; Wed, 15 Jun 2011 19:26:58 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:37210 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWzU9-0004mA-8M for emacs-devel@gnu.org; Wed, 15 Jun 2011 19:26:57 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkAHAB8/+U1MCozA/2dsb2JhbABSmBiORniIc8BuhiYEnT+EGw X-IronPort-AV: E=Sophos;i="4.65,372,1304308800"; d="scan'208";a="116415399" Original-Received: from 76-10-140-192.dsl.teksavvy.com (HELO pastel.home) ([76.10.140.192]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 15 Jun 2011 19:26:56 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A688459010; Wed, 15 Jun 2011 19:26:55 -0400 (EDT) In-Reply-To: <87k4cnt9gv.fsf@lifelogs.com> (Ted Zlatanov's message of "Wed, 15 Jun 2011 10:12:16 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:140522 Archived-At: > The Lisp_Misc_Save_Value holds a void pointer and an integer. Just > provide convenience functions for yourself that take a > Lisp_Misc_Save_Value and set the pointer to the SecKeychainRef or > extract it back out. Use the `SAVE_VALUEP' and `XSAVE_VALUE' macros. That only works if you know for sure that this save_value indeed holds a SecKeychainRef, which is only the case if Elisp can never get its hands on it. Stefan