From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs 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 Message-ID: <11B0BD1B3B6F420EA7DFB67D4D581D9F@us.oracle.com> References: <53DDC16715F040F9BB07011518AF3C13@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1333052752 8374 80.91.229.3 (29 Mar 2012 20:25:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2012 20:25:52 +0000 (UTC) To: <11126@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 29 22:25:50 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SDLuk-0000X5-BS for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Mar 2012 22:25:46 +0200 Original-Received: from localhost ([::1]:32949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDLuj-0000al-M9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Mar 2012 16:25:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDLug-0000aC-4k for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2012 16:25:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDLue-0002Ol-8h for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2012 16:25:41 -0400 Original-Received: from [140.186.70.43] (port=38506 helo=debbugs.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDLue-0002Ne-4g for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2012 16:25:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SDMP0-0006Ch-DC for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2012 16:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Mar 2012 20:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11126-submit@debbugs.gnu.org id=B11126.133305460023815 (code B ref 11126); Thu, 29 Mar 2012 20:57:02 +0000 Original-Received: (at 11126) by debbugs.gnu.org; 29 Mar 2012 20:56:40 +0000 Original-Received: from localhost ([127.0.0.1]:45338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDMOd-0006C4-Tp for submit@debbugs.gnu.org; Thu, 29 Mar 2012 16:56:40 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:26519) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDMOc-0006Bx-Dm for 11126@debbugs.gnu.org; Thu, 29 Mar 2012 16:56:39 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q2TKP88b030912 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <11126@debbugs.gnu.org>; Thu, 29 Mar 2012 20:25:08 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q2TKP7kP025678 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <11126@debbugs.gnu.org>; Thu, 29 Mar 2012 20:25:07 GMT Original-Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q2TKP7rF025977 for <11126@debbugs.gnu.org>; Thu, 29 Mar 2012 15:25:07 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 29 Mar 2012 13:25:07 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 thread-index: Ac0N3E44h3iprwrSQVG50BGGxQ2w5QAAFcvwAALINOA= X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A020205.4F74C525.000A,ss=1,re=0.000,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:58299 Archived-At: > 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".