emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modifying Emacs to use the Mac OS X Keychain Services


From: Ted Zlatanov
Subject: Re: Modifying Emacs to use the Mac OS X Keychain Services
Date: Sun, 12 Jun 2011 17:23:14 -0500
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

On Sun, 12 Jun 2011 19:40:16 +0300 Eli Zaretskii <address@hidden> wrote: 

>> From: Ben Key <address@hidden>
>> Date: Sat, 11 Jun 2011 23:18:22 -0500
>> 
>> I need some advice.  Now that I am providing a `ns-keychain-open'
>> function and a `ns-keychain-create' function  I need to know how to
>> store a pointer to a SecKeychainRef object in a Lisp_Object variable.
>> Can I simply use a type cast?

EZ> It's tempting, but I don't think it's TRT.  I think we generally use
EZ> pseudovectors for this.  The advantage is that you can then use
EZ> standard macros to access it, and developers can use commands in
EZ> .gdbinit to debug the code that involves these objects.

Another approach is to do what frames do; see `frame-parameters' for
instance.

Ted




reply via email to

[Prev in Thread] Current Thread [Next in Thread]