From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#20645: sxml xpath exports "filter" Date: Thu, 11 Feb 2016 01:57:17 -0500 Message-ID: <87ziv7n38y.fsf@netris.org> References: <58CFEC81-0925-474C-973A-40AA746844AC@alumni.caltech.edu> <9F844ED2-BD66-4422-A616-297AAC34E696@alumni.caltech.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1455173898 11887 80.91.229.3 (11 Feb 2016 06:58:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Feb 2016 06:58:18 +0000 (UTC) Cc: 20645@debbugs.gnu.org To: Matt Wette Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Feb 11 07:58:09 2016 Return-path: Envelope-to: guile-bugs@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 1aTlCa-0004Ln-S1 for guile-bugs@m.gmane.org; Thu, 11 Feb 2016 07:58:08 +0100 Original-Received: from localhost ([::1]:46878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTlCa-0003O4-8a for guile-bugs@m.gmane.org; Thu, 11 Feb 2016 01:58:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTlCX-0003Ns-AM for bug-guile@gnu.org; Thu, 11 Feb 2016 01:58:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTlCU-0006U4-4p for bug-guile@gnu.org; Thu, 11 Feb 2016 01:58:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTlCU-0006U0-1D for bug-guile@gnu.org; Thu, 11 Feb 2016 01:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aTlCT-00040d-Ky for bug-guile@gnu.org; Thu, 11 Feb 2016 01:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 11 Feb 2016 06:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20645 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 20645-submit@debbugs.gnu.org id=B20645.145517385215375 (code B ref 20645); Thu, 11 Feb 2016 06:58:01 +0000 Original-Received: (at 20645) by debbugs.gnu.org; 11 Feb 2016 06:57:32 +0000 Original-Received: from localhost ([127.0.0.1]:35629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aTlC0-0003zv-GB for submit@debbugs.gnu.org; Thu, 11 Feb 2016 01:57:32 -0500 Original-Received: from world.peace.net ([50.252.239.5]:42489 ident=hope4) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aTlBy-0003zl-T9 for 20645@debbugs.gnu.org; Thu, 11 Feb 2016 01:57:31 -0500 Original-Received: from [10.1.10.78] (helo=jojen) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aTlBs-0001L7-81; Thu, 11 Feb 2016 01:57:24 -0500 In-Reply-To: <9F844ED2-BD66-4422-A616-297AAC34E696@alumni.caltech.edu> (Matt Wette's message of "Mon, 8 Feb 2016 20:03:11 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7957 Archived-At: Matt Wette writes: > This is a very annoying "bug". The (sxml xpath) =E2=80=9Cfilter=E2=80=9D= procedure overrides the builtin guile =E2=80=9Cfilter=E2=80=9D. > > I believe the fix can be implemented with the following changes to (sxml = xpath): > 1) (define node-filter filter) > 2) In the #:export list, replace =E2=80=9Cfilter=E2=80=9D with =E2=80=9Cn= ode-filter=E2=80=9D We can't do this because it would break existing code that uses 'filter' from (sxml xpath), and also introduce a Guile-specific change to the API of a portable library. However, you can rename 'filter' at import time as follows: (use-modules ((sxml xpath) #:select ((filter . node-filter)))) Does this work for you? Mark