GNU bug report logs -
#13082
24.3.50; Enhancement request: let `compare-strings', like `string-lessp', accept symbols
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Tue, 4 Dec 2012 18:47:01 UTC
Severity: wishlist
Tags: wontfix
Found in version 24.3.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 13082 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> "Drew Adams" <drew.adams <at> oracle.com> writes:
>
>> Not important, but why not let `compare-strings', like `string-lessp',
>> accept a symbol for either of its string parameters?
>
> I think that makes sense. There's no ambiguity here, and I like being
> able to use symbols more without converting.
Thinking about this for five more years, I don't think extending this
function to take symbols would help that much. The signature is:
(compare-strings STR1 START1 END1 STR2 START2 END2 &optional
IGNORE-CASE)
So the function isn't really for comparing strings, but comparing string
prefixes. Looking at the Emacs tree, comparing symbol name prefixes
doesn't seem to happen a lot, so I think complicating the signature this
way wouldn't yield much extra convenience. Closing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 49 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.