all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 14731-done@debbugs.gnu.org
Subject: bug#14731: 24.3.50; doc string of `search-invisible'
Date: Thu, 27 Jun 2013 10:31:38 -0700 (PDT)	[thread overview]
Message-ID: <3e740bbc-086d-4286-8740-1dc5dd36fe66@default> (raw)
In-Reply-To: <jwv4ncj5vou.fsf-monnier+emacs@gnu.org>

> > "If t incremental search can match hidden text."
> 
> I don't see any reason why non-nil would be better.
> People using non-nil non-t values are on their own,

Huh?  Did you read the rest of the doc string, which mentions
`open'?  The first line of the doc string should stand on its own.

There are specifically three useful values: nil, t, and `open'.
t and `open' do not behave the same.  And those are the 3 values of
user option `search-invisible'.  `open' is hardly something hidden
from users - they are not "on their own" with `open'.

If you prefer, then say "If nil then incremental search does not
match hidden text."

That is also more correct, because it does not promise more than
is delivered.  `open' does NOT cause isearch to match text that is
hidden using a text property (`invisible').  `open' works only for
only certain kinds of hidden text (from specific kinds of overlays,
not from text properties).

Yes, you can hide behind the ambiguity of the words "CAN match",
but it is clearer to say that nil means isearch does not match
hidden text.

(BTW, this fact is undocumented: t does cause isearch to match such
hidden occurrences.  Unlike `open', t does not require that the text
be hidden using an overlay.)





  reply	other threads:[~2013-06-27 17:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-27 14:52 bug#14731: 24.3.50; doc string of `search-invisible' Drew Adams
2013-06-27 17:08 ` Stefan Monnier
2013-06-27 17:31   ` Drew Adams [this message]
2013-06-27 18:16     ` Stefan Monnier
2013-06-27 20:18       ` Drew Adams
2013-06-27 23:13         ` 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=3e740bbc-086d-4286-8740-1dc5dd36fe66@default \
    --to=drew.adams@oracle.com \
    --cc=14731-done@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.