all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thien-Thi Nguyen <ttn@glug.org>
Subject: Re: Simple elisp problem with equal
Date: Wed, 27 Apr 2005 03:00:40 +0200	[thread overview]
Message-ID: <7ey8b5doef.fsf@ada2.unipv.it> (raw)
In-Reply-To: mailman.3114.1114558674.2895.help-gnu-emacs@gnu.org

exits funnel <exitsfunnel@yahoo.com> writes:

> (equal system-type "gnu/linux")

play w/ `type-of' to see the difference.

(type-of (+ 6 (* 6 6))) => integer

(type-of (type-of (+ 6 (* 6 6)))) => ???

> (princ system-type)
>
> evaluate to "gnu/linuxgnu/linux" rather than just
> "gnu/linux"?

there are two things to look at (for a start ;-),
namely the value of an expression and its side
effects.  one way to separate them for better
understanding is to save the value for examination
later, during the evaluation of the expression:

(setq some-var (princ system-type))

then you can do `C-h v some-var RET' after mulling
the side effects (which cannot be saved in this way).

also, try `C-h c C-j' in the *scratch* buffer.

thi

  parent reply	other threads:[~2005-04-27  1:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3114.1114558674.2895.help-gnu-emacs@gnu.org>
2005-04-27  0:54 ` Simple elisp problem with equal David Hansen
2005-04-27  1:00 ` Thien-Thi Nguyen [this message]
     [not found] <mailman.3210.1114627946.2895.help-gnu-emacs@gnu.org>
2005-04-27 19:05 ` David Kastrup
2005-04-27 18:47 exits funnel
2005-04-27 18:59 ` Peter Dyballa
  -- 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7ey8b5doef.fsf@ada2.unipv.it \
    --to=ttn@glug.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.