[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `compare-strings' style question
From: |
tomas |
Subject: |
Re: `compare-strings' style question |
Date: |
Thu, 19 Nov 2009 16:27:13 +0100 |
User-agent: |
Mutt/1.5.15+20070412 (2007-04-11) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, Nov 19, 2009 at 12:39:33PM +0100, David Kastrup wrote:
> tomas@tuxteam.de writes:
>
> > Hi,
> >
> > In Elisp, I'm trying to test whether a string is a prefix of another.
[...]
> > (when (eq (compare-strings foo 0 5 bar 0 5) t)
> > ...)
> >
> > which looks rather funny. My question: are there better idioms? Am I
> > barking up the wrong function?
>
> (unless (numberp ...
>
> or
>
> (if (symbolp ...
Thanks. Still looks a bit funna, though :-)
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFLBWPRBcgs9XrR2kYRApRJAJ9guSeaRTlxcPeyZWLvuge/cKNcTACePSkC
xRlUc9OmZFWlsvvH7jdoGmM=
=Wv1D
-----END PGP SIGNATURE-----