[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: |
Fri, 20 Nov 2009 07:47:21 +0100 |
User-agent: |
Mutt/1.5.15+20070412 (2007-04-11) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, Nov 19, 2009 at 08:55:27PM +0100, Andreas Politz wrote:
[...]
> (defun string-prefixp (string prefix &optional ignore-case)
> "Return t if PREFIX is a prefix of STRING."
> (eq t
> (compare-strings string 0 (length prefix)
> prefix 0 (length prefix)
> ignore-case)))
>
> I defined this function in one of my elisp files. Why don't you do just
> the same ? Where is the problem.
Thanks. I'll do something along these lines when I have more than one
use. The problem is mainly with my surprise. I had the feeling I was
doing something wrong.
Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFLBjt5Bcgs9XrR2kYRAnDxAJ9ZM4v+NAe7sZCiIWNo5dur3mRmlgCfQraq
0GgKinA5QJZConXQ77GIh/o=
=uMlU
-----END PGP SIGNATURE-----