unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <11126@debbugs.gnu.org>
Subject: bug#11126: 24.0.94; `customize-apropos' does not seem to work for a list of words
Date: Thu, 29 Mar 2012 13:25:05 -0700	[thread overview]
Message-ID: <11B0BD1B3B6F420EA7DFB67D4D581D9F@us.oracle.com> (raw)
In-Reply-To: <F6646861714D4BAB8558E1A4FBA87C59@us.oracle.com>

> This backtrace shows where the problem is.
> Debugger entered--returning value: nil
>   string-match("\\(emacs\\|avoid\\).*?\\(emacs\\|avoid\\)" "avoid")

So the problem is apparently that the constructed regexp is not something that
is usefully tested against any single symbol name.  The regexp requires at least
two words, for it to match.  Well, yes, because a symbol name can contain
non-word characters, there are some symbols whose names include multiple words.
But that is hardly a general case or something to be expected by reading the
doc.

Is the behavior is intentional?  In that case it is the doc that is wrong
(misleading, to put it mildly).

"If it is a list of words, search for matches for any two (or more) of those
words."

Matches against what?  Against the set of names of customize things?  Or against
only a single such name?

Who would guess that those "words" that the user inputs are matched _not_ as
words but as multiple substrings within a single customize object?

What I expected, and which would be more useful (especially since a user can
already enter a regexp), would be to be able to enter a list of words (or just
strings) and have them matched (either as words or as substrings), together,
against the set of customize objects.  Not against each single such object.

Hence I expected that typing "avoid emacs" would look for all customize objects
matching either "avoid" or "emacs".






  reply	other threads:[~2012-03-29 20:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-29 18:46 bug#11126: 24.0.94; `customize-apropos' does not seem to work for a list of words Drew Adams
2012-03-29 18:50 ` Drew Adams
2012-03-29 20:25   ` Drew Adams [this message]
2014-02-09  4:58     ` Lars Ingebrigtsen
2014-02-10 23:21       ` Drew Adams
2014-02-09  4:53   ` Lars Ingebrigtsen
2014-02-09  4:49 ` Lars Ingebrigtsen
2014-02-09  4:57   ` Lars Ingebrigtsen

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=11B0BD1B3B6F420EA7DFB67D4D581D9F@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=11126@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).