GNU bug report logs -
#14712
24.3.50; `isearch-filter-visible' obsolescence
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Tue, 25 Jun 2013 16:50:03 UTC
Severity: minor
Tags: notabug
Found in version 24.3.50
Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14712 in the body.
You can then email your comments to 14712 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14712
; Package
emacs
.
(Tue, 25 Jun 2013 16:50:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 25 Jun 2013 16:50:06 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I use `isearch-filter-visible' in my code. Recently, you have made it
obsolete. The `make-obsolete' sexp is not helpful/accurate, AFAICT. It
says only that `isearch-filter-visible' is replaced by
`isearch-invisible':
(make-obsolete 'isearch-filter-visible 'isearch-invisible "24.4")
That is definitely not true. For one thing, the former is a function
and the latter is a variable.
The proper replacement is given in the source code:
(or (eq search-invisible t)
(not (isearch-range-invisible beg end)))
It is that information that needs to be conveyed in the obsolescence
message.
In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
of 2013-06-20 on ODIEONE
Bzr revision: 113100 eliz <at> gnu.org-20130620173624-w9v620tog4yacftk
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
CFLAGS=-O0 -g3 LDFLAGS=-Lc:/Devel/emacs/lib
CPPFLAGS=-Ic:/Devel/emacs/include'
Added tag(s) notabug.
Request was from
Stefan Monnier <monnier <at> IRO.UMontreal.CA>
to
control <at> debbugs.gnu.org
.
(Tue, 25 Jun 2013 18:32:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Stefan Monnier <monnier <at> IRO.UMontreal.CA>
:
You have taken responsibility.
(Tue, 25 Jun 2013 18:32:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Drew Adams <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Tue, 25 Jun 2013 18:32:03 GMT)
Full text and
rfc822 format available.
Message #12 received at 14712-done <at> debbugs.gnu.org (full text, mbox):
tags 14712 notabug
thanks
> The proper replacement is given in the source code:
> (or (eq search-invisible t)
> (not (isearch-range-invisible beg end)))
> It is that information that needs to be conveyed in the obsolescence
> message.
No, the obsolescence message only points to the other
variable/function/feature with which you can obtain similar results.
It's generally not a drop-in replacement.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14712
; Package
emacs
.
(Tue, 25 Jun 2013 18:49:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 14712-done <at> debbugs.gnu.org (full text, mbox):
> > The proper replacement is given in the source code:
>
> > (or (eq search-invisible t)
> > (not (isearch-range-invisible beg end)))
>
> > It is that information that needs to be conveyed in the obsolescence
> > message.
>
> No, the obsolescence message only points to the other
> variable/function/feature with which you can obtain similar results.
> It's generally not a drop-in replacement.
No. There is a bug here - perhaps two.
Either (a) the message produced, itself, is incorrect/misleading (I don't have the message in hand), because it tells you to simply "replace" the one by the other, or (b) the doc string of `make-obsolete' is wrong, because it says that:
"The warning will say that CURRENT-NAME should be used instead."
It is not a simple case of using CURRENT-NAME instead of the obsolete name. This doc string says in effect that this obsolescence operation is simply a renaming (use this name instead of that name), but it is not.
Extremely misleading at the very least. And outright incorrect, by any reasonable reading.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14712
; Package
emacs
.
(Wed, 26 Jun 2013 00:15:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 14712-done <at> debbugs.gnu.org (full text, mbox):
> "The warning will say that CURRENT-NAME should be used instead."
"use dynamite instead of a fishing rod" does not mean that you can just
replace your fishing rod with a stick of dynamite and do everything else
as before.
If it says "use foo, instead", it's pretty clear that you may need to
adjust a few other things accordingly.
Stefan
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 24 Jul 2013 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 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.