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: imgur.el and small packages to interface with commercial services Date: Wed, 20 Jul 2016 09:13:30 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8760s0bgg5.fsf@lifelogs.com> References: <8760sqlec9.fsf@lifelogs.com> <87ziq0j3to.fsf@lifelogs.com> <87eg78izip.fsf@lifelogs.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1469020478 9058 80.91.229.3 (20 Jul 2016 13:14:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jul 2016 13:14:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 20 15:14:30 2016 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 1bPrKX-0000IE-1i for ged-emacs-devel@m.gmane.org; Wed, 20 Jul 2016 15:14:29 +0200 Original-Received: from localhost ([::1]:34515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPrKR-0005sQ-35 for ged-emacs-devel@m.gmane.org; Wed, 20 Jul 2016 09:14:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPrJs-0005T9-G0 for emacs-devel@gnu.org; Wed, 20 Jul 2016 09:13:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPrJn-0000Co-PB for emacs-devel@gnu.org; Wed, 20 Jul 2016 09:13:47 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:39655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPrJn-0000Cd-Hz for emacs-devel@gnu.org; Wed, 20 Jul 2016 09:13:43 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bPrJm-0008Gf-0Q for emacs-devel@gnu.org; Wed, 20 Jul 2016 15:13:42 +0200 Original-Received: from c-98-229-60-157.hsd1.ma.comcast.net ([98.229.60.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Jul 2016 15:13:41 +0200 Original-Received: from tzz by c-98-229-60-157.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Jul 2016 15:13:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-60-157.hsd1.ma.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.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:pByoqP9nk+TvD2pNGGuROj5A7/0= 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.21 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" Xref: news.gmane.org gmane.emacs.devel:205865 Archived-At: On Wed, 20 Jul 2016 13:55:41 +0200 Lars Ingebrigtsen wrote: LI> Ted Zlatanov writes: >> On Sat, 02 Jul 2016 20:06:31 -0400 Richard Stallman wrote: >> RS> If it's feasible to support multiple sites with the same code, I RS> have nothing against it. >> >> OK. Lars? Would you consider a patch? Or do you want me to package it up >> and maintain it? Either way, the name change is your choice, I'm just >> proposing that it shouldn't be a reference to a specific commercial >> service. LI> Yes, having a general "upload image" package would be very nice. LI> However, they all seem to rely on access keys (and the like). For LI> instance, imgur.el comes with a token that's connected to my account LI> (but images are uploaded as "public", so they're not tied to me once LI> they're uploaded). LI> And that feels kinda odd for a general package, but might be acceptable LI> for a specific package. LI> Ideally the distributed access key would be registered to the FSF or LI> GNU, but I'm not sure anybody would be interested... Well, whether you make a specialized or a generic package, the tokens need to be supplied somehow. I think you shouldn't supply your own unless the upload site agrees to that, and even then maybe it should be just a one-time choice (the user may not want to use your API token). I suggest making the token automatic, stored in auth-source and generated on demand (so it will be local to the user). The auth-source code supports that case, except for the actual token generation. The default choice can be a generic token for each service, but I doubt the FSF/GNU team wants to maintain such a thing, and it would be easy to abuse it. Ted