GNU bug report logs -
#11126
24.0.94; `customize-apropos' does not seem to work for a list of words
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Thu, 29 Mar 2012 19:19:01 UTC
Severity: minor
Found in version 24.0.94
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11126 in the body.
You can then email your comments to 11126 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11126
; Package
emacs
.
(Thu, 29 Mar 2012 19:19:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 29 Mar 2012 19:19:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Doesn't seem to do anything. Just replies:
"No customizable groups matching (A B)"
where A and B are words that should match customized things.
Example: use "emacs" and "editing" for A and B. Those are the names of
two preloaded customize groups, so I would expect to see at least those
two groups in a Customize buffer. Instead, I get just the error
message.
emacs -Q
M-x customize-apropos RET emacs editing RET
In GNU Emacs 24.0.94.1 (i386-mingw-nt5.1.2600)
of 2012-03-19 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
`configure --with-gcc (4.6) --no-opt --enable-checking --cflags
-ID:/devel/emacs/libs/libXpm-3.5.8/include
-ID:/devel/emacs/libs/libXpm-3.5.8/src
-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
-ID:/devel/emacs/libs/giflib-4.1.4-1/include
-ID:/devel/emacs/libs/jpeg-6b-4/include
-ID:/devel/emacs/libs/tiff-3.8.2-1/include
-ID:/devel/emacs/libs/gnutls-3.0.9/include'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11126
; Package
emacs
.
(Thu, 29 Mar 2012 19:23:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 11126 <at> debbugs.gnu.org (full text, mbox):
This backtrace shows where the problem is.
Debugger entered--returning value: nil
string-match("\\(emacs\\|avoid\\).*?\\(emacs\\|avoid\\)" "avoid")
* (if (string-match apropos-regexp (symbol-name symbol)) (progn (if (get symbol
(quote custom-group)) (push (list symbol (quote custom-group)) found)) (if
(custom-facep symbol) (push (list symbol (quote custom-face)) found)) (if (and
(boundp symbol) (eq (indirect-variable symbol) symbol) (or (get symbol (quote
saved-value)) (custom-variable-p symbol) nil)) (push (list symbol (quote
custom-variable)) found))))
* (when (string-match apropos-regexp (symbol-name symbol)) (if (get symbol
(quote custom-group)) (push (list symbol (quote custom-group)) found)) (if
(custom-facep symbol) (push (list symbol (quote custom-face)) found)) (if (and
(boundp symbol) (eq (indirect-variable symbol) symbol) (or (get symbol (quote
saved-value)) (custom-variable-p symbol) nil)) (push (list symbol (quote
custom-variable)) found)))
* (lambda (symbol) (when (string-match apropos-regexp (symbol-name symbol)) (if
(get symbol (quote custom-group)) (push (list symbol (quote custom-group))
found)) (if (custom-facep symbol) (push (list symbol (quote custom-face))
found)) (if (and (boundp symbol) (eq (indirect-variable symbol) symbol) (or (get
symbol (quote saved-value)) (custom-variable-p symbol) nil)) (push (list symbol
(quote custom-variable)) found))))(avoid)
* mapatoms((lambda (symbol) (when (string-match apropos-regexp (symbol-name
symbol)) (if (get symbol (quote custom-group)) (push (list symbol (quote
custom-group)) found)) (if (custom-facep symbol) (push (list symbol (quote
custom-face)) found)) (if (and (boundp symbol) (eq (indirect-variable symbol)
symbol) (or (get symbol (quote saved-value)) (custom-variable-p symbol) nil))
(push (list symbol (quote custom-variable)) found)))))
* (let (found) (mapatoms (\` (lambda (symbol) (when (string-match apropos-regexp
(symbol-name symbol)) (\, (if (not ...) (quote ...))) (\, (if (not ...) (quote
...))) (\, (if (not ...) (\` ...))))))) (if (not found) (error "No %s matching
%s" (if (eq type t) "items" (format "customizable %s" (if (memq type (quote
...)) (symbol-name type) "items"))) pattern) (custom-buffer-create
(custom-sort-items found t custom-buffer-order-groups) "*Customize Apropos*")))
customize-apropos(("avoid" "emacs") nil)
* call-interactively(customize-apropos t nil)
execute-extended-command(nil)
call-interactively(execute-extended-command nil nil)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11126
; Package
emacs
.
(Thu, 29 Mar 2012 20:57:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 11126 <at> debbugs.gnu.org (full text, mbox):
> 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".
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11126
; Package
emacs
.
(Sun, 09 Feb 2014 04:51:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 11126 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> Doesn't seem to do anything. Just replies:
>
> "No customizable groups matching (A B)"
I get
customize-apropos: No customizable nil matching (emacs editing)
which seems even less helpful...
> emacs -Q
> M-x customize-apropos RET emacs editing RET
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11126
; Package
emacs
.
(Sun, 09 Feb 2014 04:55:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 11126 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> This backtrace shows where the problem is.
>
> Debugger entered--returning value: nil
> string-match("\\(emacs\\|avoid\\).*?\\(emacs\\|avoid\\)" "avoid")
> * (if (string-match apropos-regexp (symbol-name symbol)) (progn (if (get symbol
Well, you have a symbol called `avoid', apparently, and that doesn't
match those two words...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11126
; Package
emacs
.
(Sun, 09 Feb 2014 05:00:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 11126 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> I get
>
> customize-apropos: No customizable nil matching (emacs editing)
>
> which seems even less helpful...
Fixed on trunk.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11126
; Package
emacs
.
(Sun, 09 Feb 2014 05:01:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 11126 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> 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?
Against the set of names of customizable things. I think that's pretty
obvious from the context. Closing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
bug closed, send any further explanations to
11126 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 09 Feb 2014 05:01:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11126
; Package
emacs
.
(Mon, 10 Feb 2014 23:22:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 11126 <at> debbugs.gnu.org (full text, mbox):
> > Matches against what? Against the set of names of customize
> > things? Or against only a single such name?
>
> Against the set of names of customizable things. I think that's
> pretty obvious from the context. Closing.
It might be obvious to you, but you would apparently be wrong.
It seems to match against a _single_ thing. Please read the bug
reports.
>> Who would guess that those "words" that the user inputs are
>> matched _not_ as words but as multiple substrings within a
>> single customize object?
^^^^^^^^^^^^^^^^^^^^^^^
And you've confirmed that you, like I, would NOT have guessed
this behavior. You, like I, guessed that matching is against
the set of customizable objects.
This bug is not fixed. Not at all.
Did not alter fixed versions and reopened.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 10 Feb 2014 23:22:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
11126 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Tue, 11 Feb 2014 11:28:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 12 Mar 2014 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 102 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.