[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string-match bug?

From: Colin S. Miller
Subject: Re: string-match bug?
Date: Mon, 07 Dec 2009 15:25:30 +0000
User-agent: Mozilla-Thunderbird (X11/20090706)

Colin S. Miller wrote:

If you want to check if "foo" IS the empty string then do
(string-match "^$" "foo")

Or, of course, use (equal "" "foo").
Don't use (eq ...), it checks if the string-object
is the same, not that they have the same value.

Replace the obvious in my email address with the first three letters of the 
hostname to reply.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]