From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#14892: [PATCH] Enhance Elisp compare functions (< <= > >=) to take var args Date: Fri, 06 Sep 2013 22:28:07 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378520959 20889 80.91.229.3 (7 Sep 2013 02:29:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Sep 2013 02:29:19 +0000 (UTC) Cc: 14892@debbugs.gnu.org To: Barry OReilly Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 07 04:29:20 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VI8H1-0002Yj-2M for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Sep 2013 04:29:19 +0200 Original-Received: from localhost ([::1]:40415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VI8H0-0006Yp-Mr for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Sep 2013 22:29:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VI8Gr-0006Yh-Hg for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2013 22:29:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VI8Gk-0007Tm-8g for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2013 22:29:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VI8Gk-0007Ti-5L for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2013 22:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VI8Gj-0000dl-Rg for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2013 22:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Sep 2013 02:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14892 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 14892-submit@debbugs.gnu.org id=B14892.13785208962400 (code B ref 14892); Sat, 07 Sep 2013 02:29:01 +0000 Original-Received: (at 14892) by debbugs.gnu.org; 7 Sep 2013 02:28:16 +0000 Original-Received: from localhost ([127.0.0.1]:45445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VI8Fz-0000ce-O0 for submit@debbugs.gnu.org; Fri, 06 Sep 2013 22:28:15 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:59086) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VI8Fx-0000cQ-Qy for 14892@debbugs.gnu.org; Fri, 06 Sep 2013 22:28:14 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgQHABK/CFG4rxBo/2dsb2JhbABEvRGBfRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IPAS-Result: AgQHABK/CFG4rxBo/2dsb2JhbABEvRGBfRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="26737576" Original-Received: from 184-175-16-104.dsl.teksavvy.com (HELO pastel.home) ([184.175.16.104]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 06 Sep 2013 22:24:57 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 78B2362CC9; Fri, 6 Sep 2013 22:28:07 -0400 (EDT) In-Reply-To: (Barry OReilly's message of "Fri, 6 Sep 2013 19:02:14 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78083 Archived-At: > Here is a patch to implement this. The tests in the patch pass. Do you have some performance numbers? > I didn't do /=. If I implement /= with Fsort, then it won't behave > quite like in other Lisps. That kind of compatibility is not very important. > In SBCL: > (/= 1 2 3 'foo) signals error > (/= 1 2 1 'foo) evaluates to NIL > To not get an error for the latter, I would want to use a hash map or > tree map. Are either of these ready-available to Emacs C code? We have hash-tables implemented in C, yes. Stefan