From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/26124 Path: main.gmane.org!not-for-mail From: Mark Buda Newsgroups: gmane.emacs.gnus.general Subject: Re: mailcap-viewer-lessp is just plain wrong Date: 02 Nov 1999 08:55:14 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <871za9ov5p.fsf@pazuzu.eudaemonia.org> References: <87aeoyvw1b.fsf@pazuzu.eudaemonia.org> <5bpuxtoqgm.fsf@giga.cs.rochester.edu> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035163391 17757 80.91.224.250 (21 Oct 2002 01:23:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:23:11 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id IAA11594 for ; Tue, 2 Nov 1999 08:58:31 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id HAB14610; Tue, 2 Nov 1999 07:56:12 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 02 Nov 1999 07:56:00 -0600 (CST) 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 HAA04287 for ; Tue, 2 Nov 1999 07:55:51 -0600 (CST) Original-Received: from pazuzu.eudaemonia.org (cc1018780-a.hwrd1.md.home.com [24.3.62.129]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id IAA11554 for ; Tue, 2 Nov 1999 08:55:18 -0500 (EST) Original-Received: (from hermit@localhost) by pazuzu.eudaemonia.org (8.9.3/8.9.3/Debian/GNU) id IAA09712; Tue, 2 Nov 1999 08:55:14 -0500 Original-To: Shenghuo ZHU In-Reply-To: Shenghuo ZHU's message of "01 Nov 1999 16:24:25 -0500" Original-Lines: 36 User-Agent: Gnus/5.070097 (Pterodactyl Gnus v0.97) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:26124 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:26124 >>>>> "ZSH" == Shenghuo ZHU writes: Mark> Even if mine isn't right, the existing function is just Mark> wrong. How can X be better if only one is wild, regardless Mark> of which one is wild? ZSH> Your argument is right, but I don't think yours function is right. In ZSH> the case that both X and Y are lisp, X is wild, while Y is not wild, ZSH> your function returns 't. How can X be better than Y? ZSH> Another problem is, in the case that X is wild and list, Y is neither ZSH> wild nor list, both evaluations of (mailcap-viewer-lessp x y) and ZSH> (mailcap-viewer-lessp y x) return 't for both the functions. Well, by better I meant that mine produced the correct value in the case I was concerned about :-) Perhaps I miscopied something from my sheet of paper (which I threw out, so I'll never know). This should be right, though. Better, anyway. (cond ; if only one is wild, the other one is better ((and x-wild (not y-wild)) nil) ((and (not x-wild) y-wild) t) ; otherwise, if only one is lisp, it is better ((and x-lisp (not y-lisp)) t) ((and (not x-lisp) y-lisp) nil) ; otherwise, compare them some other arbitrary way (t (blah blah blah))) -- I get my monkeys for nothing and my chimps for free. http://www.clark.net/pub/hermit/