From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: conditionals in elisp Date: Tue, 27 Oct 2009 19:37:05 +0100 Organization: Informatimago Message-ID: <87eioou1im.fsf@galatea.local> References: <87aazdunrb.fsf@galatea.local> <87skd5t3vp.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256668925 17170 80.91.229.12 (27 Oct 2009 18:42:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Oct 2009 18:42:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 27 19:41:58 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N2qzU-0000ET-3f for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Oct 2009 19:41:56 +0100 Original-Received: from localhost ([127.0.0.1]:50669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2qzT-00035y-MM for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Oct 2009 14:41:55 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 74 Original-X-Trace: individual.net UxrbtFQXg20n5nPImL7gtAfI7r4Ia2gTDDvSU4sXJgGp3qE7lp Cancel-Lock: sha1:NTIwYjY3NDkwZmY2NzZhYzc0MmFmZDkzMTMxNzliNDgyNWEyZjQ2MA== sha1:VEBbW+t+TV1v2VO9k4zVhTkShJs= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin) Original-Xref: news.stanford.edu gnu.emacs.help:174207 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69290 Archived-At: Harry Putnam writes: > pjb@informatimago.com (Pascal J. Bourguignon) writes: > > [...] > >> Whatever. Results 1 - 50 of about 151,000 for emacs lisp >> cheatsheet. (0.58 seconds) ^^^^^^^^^^^^ > > Aside from being horribly lazy, not to mention stupid... I'm also > apparently blind.... I asked about `if else conditionals'... and using > a string I would never have thought of to search for that topic I > repeated your search..finding in a blazing .58 second... exactly 0 > references to that topic (at least in the first two pages). Why can't you see these links on the first page returned by Google? http://steve-yegge.blogspot.com/2008/01/emergency-elisp.html There's even the "Emacs Lisp for Perl Programmers" http://obsidianrook.com/devnotes/elisp-for-perl-programmers.html on it. Granted, contrarily to what I expected, there's no cheat sheet for emacs lisp, just for emacs. This is not bad, since the later would help you know how to get help about the if operator, (typing C-h f if RET). In anycase, you should have been able to find at least the two links above that are accessible from the first page of results given by google. > I'll admit I gave up after the second page... Oh, wait I take it > back, there is mention of your posts on this thread. But then, those > don't mention anything about the topic either. Yes, that's a funny side effect. That's why google search should be done first! ;-) > I wasn't thinking, tutorial either, since, again I've tortured myself > with a few in the past. And a tutorial by its nature will take in a > lot more than what I was after. I wanted examples... and that is what I > posted about. The problem is that you shouldn't have to ask what syntax is if in lisp, if you knew the first thing about lisp. You can realy learn all there is to know about lisp in five minutes. (Of course, then you need a lifetime to ponder the consequences, but nonetheless, five minutes is all you need to know it all). > In fact I see now that looking for something similar to `if else' in > perl or shell scripting is really a mistake. It looks quite different > in elisp (at least syntactically). . I'm not sure I ever would have > recognized it ... had I found examples. > > What I saw was mostly about emacs commands. Something I actually know > a fair bit about after over a decade using emacs.. Maybe not by > standards of this list, but by a wider standard I do. > > Thanks for your input. Pascal, I seem to have reached beyond your > patience level.. this time. But you have provided many helpful posts > to me direct and indirect over the yrs and I thank you for that. Just tell us when you have five minutes to learn all there is to know about lisp ;-) -- __Pascal Bourguignon__