From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79715 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: mailcap-parse-mailcaps does regexp-quote MIME types Date: Tue, 23 Aug 2011 19:43:36 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1314096287 13648 80.91.229.12 (23 Aug 2011 10:44:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Aug 2011 10:44:47 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28009@lists.math.uh.edu Tue Aug 23 12:44:42 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QvoTJ-0006IU-HN for ding-account@gmane.org; Tue, 23 Aug 2011 12:44:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QvoSk-0006OZ-3R; Tue, 23 Aug 2011 05:44:06 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QvoSj-0006OR-3q for ding@lists.math.uh.edu; Tue, 23 Aug 2011 05:44:05 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QvoSh-0006P2-MK for ding@lists.math.uh.edu; Tue, 23 Aug 2011 05:44:04 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QvoSf-0003Cj-Mx for ding@gnus.org; Tue, 23 Aug 2011 12:44:01 +0200 Original-Received: from localhost ([127.0.0.1]:53303) by orlando.hostforweb.net with smtp (Exim 4.69) (envelope-from ) id 1QvoSc-0002Lp-57 for ding@gnus.org; Tue, 23 Aug 2011 05:43:58 -0500 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:cEZ4TxvT2pZOJrE9gCbPoSqCF7o= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79715 Archived-At: --=-=-= I have this entry in my ~/.mailcap file: application/vnd.ms-powerpoint; /cygdrive/c/Program\ Files/Microsoft\ Office/Office12/POWERPNT.EXE "`cygpath --windows %s`" `mailcap-parse-mailcaps' parses it and makes an entry in `mailcap-mime-data' as: (("application" ("vnd\\.ms-powerpoint" (viewer . "/cygdrive/c/Program\\ Files/Microsoft\\ Office/Office12/POWERPNT.EXE \"`cygpath --windows %s`\"") (type . "application/vnd\\.ms-powerpoint")) )) Note that the MIME type is regexp-quote'd. Because of this POWERPNT doesn't run automatically when playing such parts. May I install the patch attached below? Otherwise is there any deep reason r-q is indispensable? --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- mailcap.el~ 2011-04-05 05:00:09.725625000 +0000 +++ mailcap.el 2011-08-23 10:41:18.265625000 +0000 @@ -472,3 +472,3 @@ ((= (point) save-pos) ".*") - (t (regexp-quote (buffer-substring save-pos (point))))))) + (t (buffer-substring save-pos (point)))))) (skip-chars-forward " \t") --=-=-=--