From: wmperry@aventail.com (William M. Perry)
Cc: ding@gnus.org
Subject: Re: Pterodactyl Gnus v0.91 is released
Date: 05 Jul 1999 05:25:31 -0500 [thread overview]
Message-ID: <86vhbzl7fo.fsf@kramer.bp.aventail.com> (raw)
In-Reply-To: Hrvoje Niksic's message of "05 Jul 1999 17:00:34 +0200"
Hrvoje Niksic <hniksic@srce.hr> writes:
> Neil Crellin <neilc@wallaby.cc> 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.
next prev parent reply other threads:[~1999-07-05 10:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-04 6:32 Lars Magne Ingebrigtsen
1999-07-04 7:55 ` Michael Klingbeil
1999-07-05 1:10 ` Neil Crellin
1999-07-05 2:11 ` Neil Crellin
1999-07-05 2:25 ` Neil Crellin
1999-07-05 3:36 ` Lars Magne Ingebrigtsen
1999-07-05 9:32 ` Kai.Grossjohann
1999-07-05 14:54 ` Neil Crellin
1999-07-05 15:00 ` Hrvoje Niksic
1999-07-05 10:25 ` William M. Perry [this message]
1999-07-06 4:09 ` Lars Magne Ingebrigtsen
1999-07-05 15:43 ` Neil Crellin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86vhbzl7fo.fsf@kramer.bp.aventail.com \
--to=wmperry@aventail.com \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).