unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: 8686@debbugs.gnu.org
Subject: bug#8686: 24.0.50; `re-search-backward' does not respect `search-invisible'
Date: Tue, 17 May 2011 15:09:28 -0700	[thread overview]
Message-ID: <A4CECCCA1EB44071ABA548CD88257AEF@us.oracle.com> (raw)

My impression is that `re-search-backward' and `*-forward' do not
respect `search-invisible'.  This makes it difficult if not impossible
to use them in code to not find matches in hidden text.  Why would this
variable be respected only in the Isearch Lisp code?  What am I missing?
 
My use case at the moment is to make Imenu (conditionally) not count
definitions that are commented out, by temporarily hiding commented
code.  I bind `search-invisible' to nil, but that has no effect on
`re-search-backward', which is called by the Imenu code
(e.g. `imenu--generic-function').  The code finds commented out
definitions, in spite of `search-invisible'.
 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-05-16 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt --cflags
-Ic:/build/include'
 






             reply	other threads:[~2011-05-17 22:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-17 22:09 Drew Adams [this message]
2011-05-18  0:05 ` bug#8686: 24.0.50; `re-search-backward' does not respect `search-invisible' Stefan Monnier
2011-05-18  0:38   ` Drew Adams
2011-05-18  0:51     ` Stefan Monnier
2011-05-18  1:15       ` Lennart Borgman
2011-05-18  2:18       ` Drew Adams
2011-05-18  9:57         ` Lennart Borgman
2011-05-18 12:13         ` Stefan Monnier
2011-05-18 13:12           ` Lennart Borgman
2011-05-18 14:32           ` Drew Adams
2016-04-28 10:48 ` Lars Ingebrigtsen
2016-04-28 13:51   ` Drew Adams

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A4CECCCA1EB44071ABA548CD88257AEF@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=8686@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).