From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: `compare-strings' style question Date: Fri, 20 Nov 2009 07:47:21 +0100 Message-ID: <20091120064721.GA30194@tomas> References: <878we2kakq.fsf@lola.goethe.zz> <20091119152713.GA8204@tomas> <87ws1m70i8.fsf@fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1258700129 30625 80.91.229.12 (20 Nov 2009 06:55:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Nov 2009 06:55:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andreas Politz Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 20 07:55:22 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NBNOn-0007ga-Bw for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Nov 2009 07:55:17 +0100 Original-Received: from localhost ([127.0.0.1]:38286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBNOm-0007hs-PZ for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Nov 2009 01:55:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBNOF-0007hd-AL for help-gnu-emacs@gnu.org; Fri, 20 Nov 2009 01:54:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBNOA-0007h7-9s for help-gnu-emacs@gnu.org; Fri, 20 Nov 2009 01:54:42 -0500 Original-Received: from [199.232.76.173] (port=57919 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBNOA-0007h4-64 for help-gnu-emacs@gnu.org; Fri, 20 Nov 2009 01:54:38 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:42054 helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBNO9-00032z-O6 for help-gnu-emacs@gnu.org; Fri, 20 Nov 2009 01:54:37 -0500 Original-Received: by www.elogos.de (Postfix, from userid 1000) id 5C56D90048; Fri, 20 Nov 2009 07:47:21 +0100 (CET) Content-Disposition: inline In-Reply-To: <87ws1m70i8.fsf@fh-trier.de> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69960 Archived-At: -----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))) >=20 > I defined this function in one of my elisp files. Why don't you do jus= t > 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=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFLBjt5Bcgs9XrR2kYRAnDxAJ9ZM4v+NAe7sZCiIWNo5dur3mRmlgCfQraq 0GgKinA5QJZConXQ77GIh/o=3D =3DuMlU -----END PGP SIGNATURE-----