GNU bug report logs -
#20645
sxml xpath exports "filter"
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20645 in the body.
You can then email your comments to 20645 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#20645
; Package
guile
.
(Sun, 24 May 2015 15:36:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Matt Wette <mwette <at> alumni.caltech.edu>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Sun, 24 May 2015 15:36:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
sxml xpath exports "filter" which is incompatible with the common procedure of the same name.
I suggest renaming unless it breaks a lot of code.
I use
#:use-module ((sxml xpath)
#:renamer (lambda (s) (if (eq? s 'filter) 'xp-filter s)))
but would rather other agree that renaming in sxml/xpath.scm is better.
Matt
Information forwarded
to
bug-guile <at> gnu.org
:
bug#20645
; Package
guile
.
(Tue, 09 Feb 2016 04:04:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 20645 <at> debbugs.gnu.org (full text, mbox):
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”
Matt
Information forwarded
to
bug-guile <at> gnu.org
:
bug#20645
; Package
guile
.
(Tue, 09 Feb 2016 14:17:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 20645 <at> debbugs.gnu.org (full text, mbox):
On Mon, Feb 8, 2016 at 11:03 PM, Matt Wette <mwette <at> alumni.caltech.edu> wrote:
> 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”
Is this really a bug? The module system allows names to have
different meanings without conflicting in a global namespace. When
importing a module, you can choose which symbols to import, or prefix
all of the symbols with something.
- Dave
Information forwarded
to
bug-guile <at> gnu.org
:
bug#20645
; Package
guile
.
(Thu, 11 Feb 2016 06:58:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 20645 <at> debbugs.gnu.org (full text, mbox):
Matt Wette <mwette <at> alumni.caltech.edu> 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?
Mark
Reply sent
to
Mark H Weaver <mhw <at> netris.org>
:
You have taken responsibility.
(Thu, 23 Jun 2016 16:44:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Matt Wette <mwette <at> alumni.caltech.edu>
:
bug acknowledged by developer.
(Thu, 23 Jun 2016 16:44:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 20645-done <at> debbugs.gnu.org (full text, mbox):
Mark H Weaver <mhw <at> netris.org> writes:
> Matt Wette <mwette <at> alumni.caltech.edu> 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?
Having not heard back for 19 weeks, I'm closing this bug now.
Mark
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 22 Jul 2016 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 25 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.