From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.help Subject: Re: Learn Emacs Lisp in 15 minutes Date: Thu, 25 Jul 2013 22:23:11 +0200 Message-ID: <87txjigzio.fsf@bzg.ath.cx> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374783851 9336 80.91.229.3 (25 Jul 2013 20:24:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jul 2013 20:24:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: notbob Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 25 22:24:13 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V2S56-0001UD-Pf for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jul 2013 22:24:12 +0200 Original-Received: from localhost ([::1]:54264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2S56-0005wz-A4 for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jul 2013 16:24:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2S4A-0005D3-Ti for help-gnu-emacs@gnu.org; Thu, 25 Jul 2013 16:23:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2S48-0006ak-U5 for help-gnu-emacs@gnu.org; Thu, 25 Jul 2013 16:23:14 -0400 Original-Received: from mail-we0-x234.google.com ([2a00:1450:400c:c03::234]:46506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2S48-0006aN-MV for help-gnu-emacs@gnu.org; Thu, 25 Jul 2013 16:23:12 -0400 Original-Received: by mail-we0-f180.google.com with SMTP id p61so901601wes.25 for ; Thu, 25 Jul 2013 13:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=Q3XZDgoOYrXxBRIipanRXMU2pqCga7Mn43Hkrwg8q3g=; b=Z8Q6dE/Ld7X+9xl2JATaPlJTu7d44ukFxuF+RoR5ZTx4KU+eCY9GoIsRbwF1M1wFtR yEANlzNCdw6w/tWOQvH1o5SjsIRWbDeA0VBXlC5i7ga1tdpyedAavJdWuXJluXoZTLYH rZi+SMzbLKjnX7ZfMvTXffjupO5EntQRzQ0DjzhQ+lmydZCa+jSBt5wU1LrzRD0rjCNE T1hzXEtA8PrDQf1h5RGYQmvKIsEN5fNWDIB7zcG4O/hQG9gGbVB3cUYi/PMcu9x0csT8 QK2oN6e80oTIHLp1sEp9zSMVjj/MAgY7+6t9jJV2kxdZB3Vs55pZg56uNux19eM/OGoz oqug== X-Received: by 10.194.87.9 with SMTP id t9mr33666431wjz.39.1374783791993; Thu, 25 Jul 2013 13:23:11 -0700 (PDT) Original-Received: from bzg.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPSA id fs8sm350258wib.0.2013.07.25.13.23.09 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Jul 2013 13:23:10 -0700 (PDT) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id 43B031C21875; Thu, 25 Jul 2013 22:23:11 +0200 (CEST) In-Reply-To: (notbob@nothome.com's message of "25 Jul 2013 15:48:50 GMT") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92430 Archived-At: notbob writes: > On 2013-07-25, Bastien wrote: >> >> Now here is my attempt at playing the "15 minutes" game: >> http://bzg.fr/learn-emacs-lisp-in-15-minutes.html > >> Comments and feedback welcome, enjoy, > > I'm at 15 mins and still only half way! ('course I'm dumb as a > stump) Well, my bad I guess :/ > ";; Use the mouse to go back to the window where you code." > > Doesn't work for me. Using emacs 23.3, but C-x o does the trick. I fixed this by mentioning C-xo and _clicking_ on the window (not only hovering over it.) > OK, I'm at 30 mins and have found another mistake. You instruct: > > " > ;; Now if you don't mind, I'll stop asking you to hit `C-xC-e': do it > ;; for every sexp that follows. > > ;; It's often useful to erase the buffer: > " > > But, you forgot to instruct to return to scratch buffer. So, > entering code in test buffer turn scratch buffer into test buffer, of > which I now have two test buffers which do the same thing. Good catch! Fixed. > This is not a gotchya, jes a example of every programming howto I've > ever read. Somewhere, the author always makes a mistake and then I'm > left confused and lost. Been there too. > Sorry, but the syntax must be perfect and > explained in detail and typically, it is not. It's hard to find the right trade-off: I cannot go into too much details about variables, dynamic variables, etc. > Otherwise, I like your > little tutorial. In yer favor, I learned more in 30 mins than all > previous LISP lessons, including emacs' own. I'll finish it and > bookmark it. Also, I hate coding. I'll never be a programmer and > have no desire to be, but love linux and know I must learn some code. > I also love emacs and try to learn something new every day. In that, > you have succeeded brilliantly. Thank you. ;) Glad this was useful, even in some (yet?) unpredictable ways! > BTW. emacs 23.3 does not open to scratch buffer. Oh, you're right too here, fixed by suggesting to hit `q' to escape the first welcome window. Thanks for the comments! -- Bastien