From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: imagemagick format detection code Date: Tue, 13 Aug 2013 20:14:39 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376417709 25027 80.91.229.3 (13 Aug 2013 18:15:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Aug 2013 18:15:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 13 20:15:12 2013 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 1V9J7f-0000tr-DW for ged-emacs-devel@m.gmane.org; Tue, 13 Aug 2013 20:15:11 +0200 Original-Received: from localhost ([::1]:55816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9J7e-00080x-Tr for ged-emacs-devel@m.gmane.org; Tue, 13 Aug 2013 14:15:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9J7W-0007mr-4I for emacs-devel@gnu.org; Tue, 13 Aug 2013 14:15:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9J7M-0001Qi-J5 for emacs-devel@gnu.org; Tue, 13 Aug 2013 14:15:02 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:35309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9J7M-0001QI-DM for emacs-devel@gnu.org; Tue, 13 Aug 2013 14:14:52 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1V9J7A-0003rm-EK; Tue, 13 Aug 2013 20:14:40 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUiHx4+OjlpZWNTT03R zsual5WxrquCfnwqBOUMAAACY0lEQVQ4jV1TQW7jMAykkQ9I0aHXjYyFrpGJRT/g9QOClfUBW7kr UPX9HdJuUZRALJsUOcMhQymVJcF6D71XL8bOOk977imntewSzb2tpZQ1vSzBmzJuhp7KNostCJVM BVd67z58iLts4kV2pxVVUDzArdXSriU7dbW2zUivFa8prRLSAIghXXA1qRQJyKmWti9scAcGfPL5 6T9jOx2fe4/B87SWryghPpeH+0VXQ3SNVxBZz8CeX/fLfXi/O+NoMAP7j7YtlHqo7fn74T9q8C2+ 3y5u/APONP+w1FL/V/cHlbIsP4N/1/wiCAvGB5ltkR+6rGMkEfzoUPSbtVVIVSFJbiLPWj4tFcyo EiY2Bh+86oerIInHuouIXgVWzVsSRPQ8U28tnUJuOtWcs6hHh87LBq/OdG8YnUjyTTc1zEu2RWSf dc4yg5G9kGhlfVyJfQ8gnPs4MlvrLMyF542QWUe2ZNWIBjuhAXsTupGwedhDlIYURK4yznBsi+6m r9i8aOjteWNgBKDtO1zjEfV2uLYXvRhUOjouWReaAXFHPcqVeZSQbCRODQoSvqvWCH0tnWGgzTHS hDVPVerhesrilQD4D5ZD6vVwhKxv0WKX0Ojk0eQYrWU0jYnm7iOxCOTV7Vi6lP9bb5lYlBA0y9PI hzAGd8BrILXB3SENTwJhFOJUD/INfLBDIvSD2HgZcMfg1iR+4A3EfJZFsmHRaxodIlJKbkR7MdG4 0VdRRGoLlvMxxguxEZeRAgP60L4U3QLfRp0thoKMGxwnZclngTV0EKZvppM35zuZ4/hm5nxq/07R 1fUf0vgS7HtPlp0AAAAASUVORK5CYII= X-Now-Playing: Axel =?iso-8859-1?Q?D=F6rner=2C?= Mark Sanders's _Stonecipher_: "Stonecipher I" X-Hashcash: 1:23:130813:monnier@iro.umontreal.ca::1TLKmKfAxL2j5gva:0000000000000000000000000000000000000RIzx X-Hashcash: 1:23:130813:emacs-devel@gnu.org::21RnHQF9v0JJLS0Y:000000000000000000000000000000000000000000n5Ym In-Reply-To: (Stefan Monnier's message of "Tue, 13 Aug 2013 10:23:32 -0400") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1V9J7A-0003rm-EK MailScanner-NULL-Check: 1377022480.54131@0sjjZ1vMIC3ULFUKTcNQwA X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 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:162674 Archived-At: Stefan Monnier writes: > This said, it's probably no worse than hacking up our own > classification, so... yes, I guess it's a good plan. But please make > them be symbols rather than strings: > > '((image/x-icon . "ico")) I've now committed an attempt at this. That is, it works, and one can now use duckduckgo.com and get nice images in the search results in eww, but I'm not sure about the implementation. Perhaps the rummaging around in the alist should have been done on the elisp side instead of in C. I always feel that I'm doing something not quite... good... when I'm writing Lisp in C: suffix = Fcar (Fcdr (Fassq (content_type, Fsymbol_value (symbol)))); Anyway. >>> We currently have a bit of a mess wrt to use of "format" and "type" >>> since they're both used currently to refer to the same thing, which is >>> not really the type or format of the image but rather something like the >>> rendering library used. >> Yes. This will add to the general confusion in this area. > > We should at least rework the doc to use "type" everywhere, so we can > use :format for the new notion. Yup. -- (domestic pets only, the antidote for overdose, milk.) No Gnus T-Shirt for sale: http://ingebrigtsen.no/no.php and http://lars.ingebrigtsen.no/2013/08/twenty-years-of-september.html