From: Drew Adams <drew.adams@oracle.com>
To: 14714@debbugs.gnu.org
Subject: bug#14714: 24.3.50; `isearch-filter-predicate(s)'
Date: Tue, 25 Jun 2013 10:26:15 -0700 (PDT) [thread overview]
Message-ID: <e19bc3d2-3c30-4bee-a75a-70e90b5ef192@default> (raw)
Problem similar to that of bug #14712, regarding obsolescence, but I
think there is a code problem also.
1. `isearch-filter-predicates' should not be an _alias_ for
`isearch-filter-predicate'. The former cannot just replace the latter.
2. I think one cannot currently use a single predicate as the value of
`isearch-filter-predicates'. There is one place in the code where that
might work, because of this:
(if (consp isearch-filter-predicates)
isearch-filter-predicates
(list isearch-filter-predicates))
(But what if isearch-filter-predicates is nil? You get `(nil)', which I
think is wrong.)
And in other places it should not work at all. E.g.:
(run-hook-with-args-until-failure
'isearch-filter-predicates
(match-beginning 0) (match-end 0))
To make it work throughout, I think you would need to do something like this:
(when (and isearch-filter-predicates
(atom isearch-filter-predicates))
(setq isearch-filter-predicates (list isearch-filter-predicates)))
IOW, at the outset, convert an atomic (and non-nil) value to a cons.
In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
of 2013-06-20 on ODIEONE
Bzr revision: 113100 eliz@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'
next reply other threads:[~2013-06-25 17:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-25 17:26 Drew Adams [this message]
2013-06-25 18:46 ` bug#14714: 24.3.50; `isearch-filter-predicate(s)' Stefan Monnier
2013-06-25 20:18 ` Drew Adams
2013-06-26 0:20 ` Stefan Monnier
2013-06-26 2:34 ` Drew Adams
2013-06-26 13:08 ` Stefan Monnier
2013-06-26 14:19 ` Drew Adams
2013-06-26 14:36 ` Stefan Monnier
2013-06-26 21:31 ` Juri Linkov
2013-06-27 1:32 ` Stefan Monnier
2013-06-27 23:39 ` Juri Linkov
2013-07-04 0:26 ` Stefan Monnier
2013-08-04 7:45 ` Stefan Monnier
2013-08-05 18:07 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e19bc3d2-3c30-4bee-a75a-70e90b5ef192@default \
--to=drew.adams@oracle.com \
--cc=14714@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.