all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Harry Putnam'" <reader@newsguy.com>, <help-gnu-emacs@gnu.org>
Subject: RE: conditionals in elisp
Date: Mon, 26 Oct 2009 18:03:31 -0700	[thread overview]
Message-ID: <14A45A8A6D3A42A7ADA56DE8DB68C74E@us.oracle.com> (raw)
In-Reply-To: <87iqe1og0i.fsf@newsguy.com>

> I'm hoping someone will be kind enough to demonstrate a couple of
> brief conditionals in elisp... if and if else.

We are plenty kind enough. Kindness is not the problem.

> This may be a chintzy way to do it but I really do not want to pound
> away at elisp intro and the elisp manual for hours. 

You're exaggerating. Did you even try "pounding away" at it for the 2 minutes it
took you to write your question and mail it?

> That's when I bumped into my ignorance, realizing I had no idea how to
> write simple conditionals that would do this: (over verbosified for
> clarity)
>
>   (load-library "server")
>   (setq server-name "name")
>   if (! server-mode-enabled){  
>      (server-mode)
>   }

There's no shame in ignorance. Laziness is another matter.

1. Don't waste people's time here if you are unwilling to even look up `if' or
`conditional' in the Elisp manual. That's ridiculous.

2. Learn to find your way around Emacs _before_ trying to learn Emacs Lisp. This
means learning, at a minimum, `C-h i', then `i' in a manual to look things up in
the index.

3. There is no substitute for this. No matter how much people here try to "help"
you, you will waste your _own_ time if you don't learn how to _ask Emacs_. And
sooner or later, people here will tire of answering, if they see you making zero
effort.

Here's how hard it is:

1. `C-h i'
2. Click the link to the `Elisp' manual.
3. `i', then `if', then Enter.
4. Read one page of doc about `Conditionals'.

Can you handle that?

If you only partially understand what you read, try something based on what you
think you understand: `M-:', then type some expression you think might work,
from what you read. Emacs and Emacs Lisp are 100% interactive - you get
immediate feedback. Best way to learn.

If you don't understand what you read at all, and you need more help, ask here.
There's no shame in asking, ever. But for your _own_ sake, learn to interact
with Emacs itself. You will not regret it.

The best rule, for _you_, is this: _ask Emacs_. It's the best rule in the long
run, because it will mean that your questions here will be more informed, which
means people will be more willing to help you.

HTH.





  parent reply	other threads:[~2009-10-27  1:03 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-27  0:08 conditionals in elisp Harry Putnam
2009-10-27  0:25 ` Richard Riley
2009-10-27  1:03 ` Drew Adams [this message]
2009-10-27  5:33   ` Harry Putnam
2009-10-27  7:37     ` Drew Adams
2009-10-28  9:10       ` Thien-Thi Nguyen
2009-10-28 14:03         ` Drew Adams
     [not found]         ` <mailman.9621.1256738653.2239.help-gnu-emacs@gnu.org>
2009-10-28 15:42           ` LanX
2009-10-28 20:42             ` Harry Putnam
2009-10-28 16:19         ` Harry Putnam
     [not found]         ` <mailman.9630.1256746811.2239.help-gnu-emacs@gnu.org>
2009-11-02 19:31           ` Joseph Brenner
2009-10-27  5:50 ` tomas
     [not found] <mailman.9533.1256602126.2239.help-gnu-emacs@gnu.org>
2009-10-27  0:19 ` Pascal J. Bourguignon
2009-10-27  2:52 ` LanX
2009-10-27 10:36   ` Pascal J. Bourguignon
2009-10-27 12:09     ` Richard Riley
2009-10-27 17:03       ` Sean Sieger
2009-10-28 12:07         ` Richard Riley
     [not found]     ` <mailman.9555.1256645401.2239.help-gnu-emacs@gnu.org>
2009-10-27 12:31       ` Pascal J. Bourguignon
2009-10-27 13:02         ` Richard Riley
     [not found]         ` <mailman.9557.1256648714.2239.help-gnu-emacs@gnu.org>
2009-10-27 16:04           ` Pascal J. Bourguignon
2009-10-27 17:26         ` Harry Putnam
     [not found]         ` <mailman.9572.1256664440.2239.help-gnu-emacs@gnu.org>
2009-10-27 18:37           ` Pascal J. Bourguignon
2009-10-27 19:40             ` Harry Putnam
     [not found]             ` <mailman.9577.1256672457.2239.help-gnu-emacs@gnu.org>
2009-10-27 21:14               ` Pascal J. Bourguignon
2009-10-28 14:05                 ` David Kastrup
2009-10-28 15:55                   ` Harry Putnam
2009-10-28 17:45                   ` Pascal J. Bourguignon

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=14A45A8A6D3A42A7ADA56DE8DB68C74E@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=reader@newsguy.com \
    /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.