From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Powe Newsgroups: gmane.emacs.help Subject: Re: multi-line conditionals in elisp Date: Sun, 22 Dec 2002 22:40:57 GMT Organization: The Hospice of the Mind Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1040597135 10598 80.91.224.249 (22 Dec 2002 22:45:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 22 Dec 2002 22:45:35 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18QEqi-0002kY-00 for ; Sun, 22 Dec 2002 23:45:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18QEqe-0003iE-01 for gnu-help-gnu-emacs@m.gmane.org; Sun, 22 Dec 2002 17:45:28 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news.stealth.net!newsread.com!newsprint.netaxs.com!207.8.186.126.MISMATCH!POSTED.newshog.newsread.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Gnus v5.8.8/Emacs 20.7.2 [Linux 2.2.16] X-Home-Page: http://www.trollope.org Original-Lines: 29 Cache-Post-Path: gaspra.spiretech.com!unknown@slip-32-100-239-210.ca.us.prserv.net X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) Original-NNTP-Posting-Host: 207.173.200.229 Original-X-Complaints-To: Abuse Role , We Care Original-X-Trace: newshog.newsread.com 1040596857 207.173.200.229 (Sun, 22 Dec 2002 17:40:57 EST) Original-NNTP-Posting-Date: Sun, 22 Dec 2002 17:40:57 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:108425 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:4954 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4954 >>>>> "Peter" == Peter S Galbraith writes: Peter> Michael Powe wrote: >> this is trivial in other languages, but not, it seems, in >> elisp. (i think it's just a case of, i don't really understand >> the language.) Peter> The latter. >> (if (locate-library "python-mode") (cond((autoload 'python-mode >> "python-mode" "Python editing mode" t) (setq auto-mode-alist >> (cons '("\\.py$" . python-mode) auto-mode-alist)))) (message >> "python library not found")) Peter> (if (locate-library "python-mode") (progn (autoload Peter> 'python-mode "python-mode" "Python editing mode" t) (setq Peter> auto-mode-alist (cons '("\\.py$" . python-mode) Peter> auto-mode-alist))) (message "python library not found")) thanks, i will look into that more closely. mp -- Michael Powe Waterbury, CT ------------------------------------------------------------- "The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in. We're computer professionals. We cause accidents." -- Nathaniel Borenstein