From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/23860 Path: main.gmane.org!not-for-mail From: wmperry@aventail.com (William M. Perry) Newsgroups: gmane.emacs.gnus.general Subject: Re: Pterodactyl Gnus v0.91 is released Date: 05 Jul 1999 05:25:31 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <86vhbzl7fo.fsf@kramer.bp.aventail.com> References: <87908vcfal.fsf@pc-hrvoje.srce.hr> Reply-To: wmperry@aventail.com NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035161516 4277 80.91.224.250 (21 Oct 2002 00:51:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:51:56 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA11239 for ; Mon, 5 Jul 1999 12:07:15 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id LAB04859; Mon, 5 Jul 1999 11:05:03 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 05 Jul 1999 11:05:03 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id LAA10240 for ; Mon, 5 Jul 1999 11:04:47 -0500 (CDT) Original-Received: from newman.aventail.com (root@newman.aventail.com [216.207.80.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA11154 for ; Mon, 5 Jul 1999 12:03:24 -0400 (EDT) Original-Received: from kramer.bp.aventail.com (wmperry@usrpri2-23.kiva.net [206.97.75.88]) by newman.aventail.com (8.8.5/8.8.5) with ESMTP id IAA22897; Mon, 5 Jul 1999 08:23:31 -0700 (PDT) Original-Received: (from wmperry@localhost) by kramer.bp.aventail.com (8.9.3/8.9.3) id FAA25628; Mon, 5 Jul 1999 05:25:32 -0500 Original-To: Hrvoje Niksic X-Face: O~Rn;(l][/-o1sALg4A@xpE:9-"'IR[%;,,!m7 writes: > Neil Crellin writes: > > > A fairly common artifice in mailcaps are things like the following: > > > > audio/*; /usr/bin/play %s > > > > image/*; xv %s > > > > video/*; xanim %s > > > > In the example I was trying, mailcap-possible-viewers on an > > image/gif was found to match no viewer with the above mailcap > > definition when string= replaced string-match. With string-match, > > the viewer was determined to be "xv %s". > > How can that work? string-match works with regexps, not with > wildcards. I imagine lars kept the logic from the original 'mm.el' that converts wildcard matches like that to regular expressions. Something along the lines of: (setq minor (cond ((= ?* (or (char-after save-pos) 0)) ".*") ((= (point) save-pos) ".*") (t (buffer-substring save-pos (point))))) I guess there should be a regexp-quote in there for the last case. I have no idea where this code lives in the currently redesigned 'mm-*' libraries. Lars? -Bill P.