Re: error in unless



On Mar 31, 12:16 pm, Gijs Hillenius <gijs.hillen...@xxxxxxxxx> wrote:
On 31 Mar 2008, Holger Schauer wrote:

Gnus is an Emacs application, so your query would be more on-topic in
gnu.emacs.help, but anyway:

I figured I'm having issues with my lisp, not gnus..

Apparently "No song playing" is not string-equal to "no song playing".

Hm. But I read that string-equal is supposed not to regard case. Or?

No, it's case sensitive. See the elisp manual:
http://www.gnu.org/software/emacs/manual/html_node/elisp/Text-Comparison.html#Text-Comparison

For case-insensitive comparison in Emacs lisp, you want to use compare-
strings, eg, (compare-strings track 0 nil "no song playing" 0 nil t)

As an aside, Elisp can be really ugly as far as Lisps go.

.


Quantcast