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:21:06 -0500
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

On Sat, 11 Jun 2011 21:28:19 -0500 Ben Key <address@hidden> wrote: 

BK> Note that to avoid resource leaks, I will also have to provide a
BK> ns-keychain-close function.

Will it get cleaned up properly when Emacs exits if you don't close
explicitly?  If not, maybe it's nice to provide a helper macro,
something like this:

(defmacro with-ns-keychain (keychain &rest body)
  `(unwind-protect (progn
                    (ns-keychain-open ,keychain)
                    ,@body)
                   (ns-keychain-close ,keychain)))

...but that's easy to add.

Ted




reply via email to

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