[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Simple elisp problem with equal
From: |
exits funnel |
Subject: |
Re: Simple elisp problem with equal |
Date: |
Wed, 27 Apr 2005 11:47:04 -0700 (PDT) |
Many thanks to David, Peter, Ismael and Thien-Thi.
One additional question: I'm still a little confused
about the difference between 'foo and foo. I've read
most or all of the stuff in the lisp manual about
symbols. If anyone could provide a pointer to the
relevent info section I'd really apprciate it.
-exits
--- Peter Dyballa <Peter_Dyballa@Web.DE> wrote:
>
> Am 27.04.2005 um 01:35 schrieb exits funnel:
>
> > (equal system-type "gnu/linux")
> >
>
> Since system-type is a symbol, I think its correct
> use is something
> like that:
>
> (string= (symbol-name system-type) "gnu/linux")
>
> I don't know how commutative Elisp is (commutative
> means that (1+2) is
> the same as (2+1)), I've mostly seen statements like
> that:
>
> (string= "gnu/linux" (symbol-name system-type))
>
> --
> Greetings
>
> Pete
>
> "There's no place like 127.0.0.1"
> origin unknown
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com