From: Shenghuo ZHU <zsh@cs.rochester.edu>
Subject: Re: mailcap-viewer-lessp is just plain wrong
Date: 03 Nov 1999 15:33:35 -0500 [thread overview]
Message-ID: <5bbt9bfh7k.fsf@brain.cs.rochester.edu> (raw)
In-Reply-To: Mark Buda's message of "02 Nov 1999 08:55:14 -0500"
[-- Attachment #1: Type: text/plain, Size: 647 bytes --]
>>>>> "Mark" == Mark Buda <hermit@clark.net> writes:
[...]
Mark> (cond
Mark> ; if only one is wild, the other one is better
Mark> ((and x-wild (not y-wild))
Mark> nil)
Mark> ((and (not x-wild) y-wild)
Mark> t)
Mark> ; otherwise, if only one is lisp, it is better
Mark> ((and x-lisp (not y-lisp))
Mark> t)
Mark> ((and (not x-lisp) y-lisp)
Mark> nil)
This condition is not necessary.
Mark> ; otherwise, compare them some other arbitrary way
Mark> (t
Mark> (blah blah blah)))
Done. Committed to CVS.
--
Shenghuo ZHU
1999-11-03 15:27:38 Shenghuo ZHU <zsh@cs.rochester.edu>
* mailcap.el (mailcap-viewer-lessp): Fix bug.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 97-121.diff --]
[-- Type: text/x-patch, Size: 673 bytes --]
Index: mailcap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/mailcap.el,v
retrieving revision 5.23
diff -u -r5.23 mailcap.el
--- mailcap.el 1999/07/09 19:28:56 5.23
+++ mailcap.el 1999/11/03 20:29:40
@@ -623,11 +623,11 @@
(x-lisp (not (stringp (or (cdr-safe (assq 'viewer x)) ""))))
(y-lisp (not (stringp (or (cdr-safe (assq 'viewer y)) "")))))
(cond
- ((and x-lisp (not y-lisp))
- t)
- ((and (not y-lisp) x-wild (not y-wild))
- t)
+ ((and x-wild (not y-wild))
+ nil)
((and (not x-wild) y-wild)
+ t)
+ ((and (not y-lisp) x-lisp)
t)
(t nil))))
next prev parent reply other threads:[~1999-11-03 20:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-01 19:42 Mark Buda
1999-11-01 21:24 ` Shenghuo ZHU
1999-11-02 13:55 ` Mark Buda
1999-11-03 20:33 ` Shenghuo ZHU [this message]
1999-11-04 11:17 ` Toby Speight
1999-11-04 15:49 ` Shenghuo ZHU
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=5bbt9bfh7k.fsf@brain.cs.rochester.edu \
--to=zsh@cs.rochester.edu \
/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).