From: Mirko <mvukovic@nycap.rr.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how to use "if" in lisp
Date: Thu, 15 Nov 2007 10:08:04 -0800 (PST) [thread overview]
Message-ID: <e4be55da-4b21-489a-9167-fe8051c538a8@b32g2000hsa.googlegroups.com> (raw)
In-Reply-To: 878x4zfkwv.fsf@supermath.math.umn
On Nov 15, 1:01 pm, Teng Wang <twang....@gmail.com> wrote:
> 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
The variable mode-name contains the name of the major mode (as a
string)
Mirko
next prev parent reply other threads:[~2007-11-15 18:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-15 18:01 how to use "if" in lisp Teng Wang
2007-11-15 18:08 ` Mirko [this message]
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
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e4be55da-4b21-489a-9167-fe8051c538a8@b32g2000hsa.googlegroups.com \
--to=mvukovic@nycap.rr.com \
--cc=help-gnu-emacs@gnu.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.
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).