unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how to use "if" in lisp
@ 2007-11-15 18:01 Teng Wang
  2007-11-15 18:08 ` Mirko
  2007-11-15 18:30 ` Joel J. Adamson
  0 siblings, 2 replies; 11+ messages in thread
From: Teng Wang @ 2007-11-15 18:01 UTC (permalink / raw)
  To: help-gnu-emacs


Hi there,

I just began to learn lisp a couple of weeks ago. It is easy to use,
but sometimes it is really hard to know what variables are in
lisp. And today I want to write a code doing the function as below:

(if (_the major mode is something_)
    (some function)
    (another funcion))

But I don't know how to write down the condition. 

Any suggestions. Thank you all in advance.

---

Teng 

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

end of thread, other threads:[~2007-11-17  4:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-15 18:01 how to use "if" in lisp Teng Wang
2007-11-15 18:08 ` Mirko
2007-11-15 18:30 ` Joel J. Adamson
2007-11-15 18:37   ` Joel J. Adamson
2007-11-15 19:05     ` Teng Wang
2007-11-15 19:16       ` Teng Wang
2007-11-16  1:04       ` Xah Lee
2007-11-16 14:35       ` Joel J. Adamson
2007-11-17  1:19       ` Tim X
2007-11-17  4:56         ` Teng Wang
2007-11-15 19:32     ` Sebastian Tennant

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).