[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20645: sxml xpath exports "filter"

From: Mark H Weaver
Subject: bug#20645: sxml xpath exports "filter"
Date: Thu, 11 Feb 2016 01:57:17 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux)

Matt Wette <address@hidden> writes:

> This is a very annoying "bug".  The (sxml xpath) “filter” procedure overrides 
> the builtin guile “filter”.
> 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 “filter” with “node-filter”

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]