From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Modifying Emacs to use the Mac OS X Keychain Services Date: Tue, 31 Jul 2012 11:45:21 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87boiwdje6.fsf@lifelogs.com> References: <8739jmso4c.fsf@gmx.de> <87y61ekr8y.fsf@gmx.de> <87tyc0camo.fsf@lifelogs.com> <87lii2ql3x.fsf@lifelogs.com> <87haspid8q.fsf@gmx.de> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1343749550 7492 80.91.229.3 (31 Jul 2012 15:45:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2012 15:45:50 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 31 17:45:51 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SwEdn-0004jW-NJ for ged-emacs-devel@m.gmane.org; Tue, 31 Jul 2012 17:45:47 +0200 Original-Received: from localhost ([::1]:49538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwEdn-0002B6-2U for ged-emacs-devel@m.gmane.org; Tue, 31 Jul 2012 11:45:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwEdf-0001u3-Dm for emacs-devel@gnu.org; Tue, 31 Jul 2012 11:45:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwEdZ-0004Sg-DU for emacs-devel@gnu.org; Tue, 31 Jul 2012 11:45:39 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:52374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwEdZ-0004SU-6m for emacs-devel@gnu.org; Tue, 31 Jul 2012 11:45:33 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SwEdX-0004al-5C for emacs-devel@gnu.org; Tue, 31 Jul 2012 17:45:31 +0200 Original-Received: from c-76-28-40-19.hsd1.vt.comcast.net ([76.28.40.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 Jul 2012 17:45:31 +0200 Original-Received: from tzz by c-76-28-40-19.hsd1.vt.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 Jul 2012 17:45:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 42 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-76-28-40-19.hsd1.vt.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:bxv1slteQnUPRlTEODfsSr/6ae4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:152006 Archived-At: On Mon, 30 Jul 2012 15:34:45 +0200 Michael Albinus wrote: MA> Ted Zlatanov writes: >> I haven't heard from Ben Key (CC-ed on this post) in a year so I figured >> it's simpler to implement this myself. I've pushed something into the >> Gnus repo, which you can test. It doesn't support creation or deletion, >> but searching works. MA> Wouldn't this be a good time to extend auth-source.el by a backend MA> concept? You have mentioned it as todo, and I belive it would pay. These MA> two new backend work only for Mac OS; the Secret Services backend is good MA> for GNU/Linux. It already uses backends; see the following calls: #+begin_src lisp (auth-source-backend-parse "myfile.gpg") (auth-source-backend-parse 'default) (auth-source-backend-parse "secrets:Login") (auth-source-backend-parse 'macos-keychain-internet) (auth-source-backend-parse 'macos-keychain-generic) (auth-source-backend-parse "macos-keychain-internet:/path/here.keychain") (auth-source-backend-parse "macos-keychain-generic:/path/here.keychain") #+end_src The developer pain, at this point, seems to be that 1) each backend has to implement its own treatment of the general search parameters (:source :type :user :host :port :max), and interpret them in its own domain; and 2) I use flat plists but most Emacs developers don't. That's my impression, at least, and perhaps the reason I haven't seen any contributions to auth-source.el besides the `plstore' backend from Daiki Ueno, which was mostly a copy of the `netrc' backend. If you or anyone else has suggestions on redesigning auth-source.el and perhaps changing its call interface, please speak up (with patches or words). Thanks Ted