From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Wirzenius Newsgroups: gmane.emacs.help Subject: Re: elisp syntax for .emacs code beginners help (inserting "" marks example) Date: Thu, 03 Sep 2009 08:19:34 GMT Organization: Sonera Customer Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252040561 12389 80.91.229.12 (4 Sep 2009 05:02:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2009 05:02:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 04 07:02:34 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 1MjQwT-0002KR-Pe for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Sep 2009 07:02:34 +0200 Original-Received: from localhost ([127.0.0.1]:58764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjQwS-0007bv-VI for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Sep 2009 01:02:32 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!newsserver.news.garr.it!kanaga.switch.ch!switch.ch!newsfeed2.funet.fi!newsfeed1.funet.fi!newsfeeds.funet.fi!nntp.inet.fi!central1.inet.fi!inet.fi!read4.inet.fi.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:h8KdE0aVvJL+I3JFC4Jxf+vGWPw= Original-Lines: 28 Original-NNTP-Posting-Host: 194.251.142.2 Original-X-Complaints-To: abuse@inet.fi Original-X-Trace: read4.inet.fi 1251965974 194.251.142.2 (Thu, 03 Sep 2009 11:19:34 EEST) Original-NNTP-Posting-Date: Thu, 03 Sep 2009 11:19:34 EEST Original-Xref: news.stanford.edu gnu.emacs.help:172650 X-Mailman-Approved-At: Fri, 04 Sep 2009 01:02:07 -0400 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:67832 Archived-At: rpd writes: > Hi > Anyone know of a good elisp primer/tutorial to learn the syntax? > > As an example I have this code (in a defun command): > (insert "[Event ""]\n") > which when I call this, it outputs [Event ] > BUT what I want is [Event " "] > > So somehow I need the quote marks to show! > I have googled to find out about writing elisp code but haven't got to a > simple tutorial yet (I have a copy of elisp manual but it is quite big!-take > a long time to go through!). > > I will fiddle around with the " " code above (maybe try escaping with \"\ > \"\). > However if anyone can tell me how to do this & point me to a good simple > tutorial as I try to start to write some elisp code for my .emacs file I > would be very grateful. > > I look forward to any helpful reply, thanks try (insert "[Event \" \"]\n") -- Anders