unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: Simple elisp problem with equal
@ 2005-04-27 18:47 exits funnel
  2005-04-27 18:59 ` Peter Dyballa
  0 siblings, 1 reply; 8+ messages in thread
From: exits funnel @ 2005-04-27 18:47 UTC (permalink / raw)
  Cc: help-gnu-emacs

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 

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <mailman.3210.1114627946.2895.help-gnu-emacs@gnu.org>]
[parent not found: <mailman.3114.1114558674.2895.help-gnu-emacs@gnu.org>]
* Simple elisp problem with equal
@ 2005-04-26 23:35 exits funnel
  2005-04-27  8:03 ` Ismael Valladolid Torres
  2005-04-27  8:28 ` Peter Dyballa
  0 siblings, 2 replies; 8+ messages in thread
From: exits funnel @ 2005-04-26 23:35 UTC (permalink / raw)


Hello,

I'm trying to add some code to my .emacs which will
allow me to share the file across my windows and linux
boxes.  To make a long story short, I want this:

(equal system-type "gnu/linux")

to evaluate to true but instead it evaluates to nil. 
C-h v system-type indicates its value is "gnu/linux". 
I've spent a fair amount of time reading the lisp
manual which has been very informative, but I still
can't get this simple issue sorted out :)

One other (less important) question.  Why does:

(princ system-type)

evaluate to "gnu/linuxgnu/linux" rather than just
"gnu/linux"?  

Thanks in advance for any replies.

-exits

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-04-27 19:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-27 18:47 Simple elisp problem with equal exits funnel
2005-04-27 18:59 ` Peter Dyballa
     [not found] <mailman.3210.1114627946.2895.help-gnu-emacs@gnu.org>
2005-04-27 19:05 ` David Kastrup
     [not found] <mailman.3114.1114558674.2895.help-gnu-emacs@gnu.org>
2005-04-27  0:54 ` David Hansen
2005-04-27  1:00 ` Thien-Thi Nguyen
  -- strict thread matches above, loose matches on Subject: below --
2005-04-26 23:35 exits funnel
2005-04-27  8:03 ` Ismael Valladolid Torres
2005-04-27  8:28 ` Peter Dyballa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).