From: rpd <richard@dickinson350.freeserve.co.uk>
To: Help-gnu-emacs@gnu.org
Subject: Re: elisp syntax for .emacs code beginners help (inserting "" marks example)
Date: Fri, 4 Sep 2009 00:22:22 -0700 (PDT) [thread overview]
Message-ID: <25288843.post@talk.nabble.com> (raw)
In-Reply-To: <xkly6owwicp.fsf@netikka.fi>
Hi Anders
Thanks for your helpful reply. Your suggestion works...
This code: (insert "[Event \"\"]\n") does show the quotation marks &
outputs:
[Event ""] <<<which is what I wanted ie quotation marks showing.
Then I wanted to insert whitespace between the quotation marks. Again I
cannot find documentation for doing this but this code:
(insert "[Event \" \ \ \ \"]\n") does output spaces between the quotation
marks ie it outputs:
[Event " "]
(using space-backslash escaped syntax)
Is there clear documentation in any lisp/elisp or emacs help manuals
anywhere to help one learn this syntax?
Anyway I have sorted this by trial & error & through the help forum. Thanks
very much for your help, regards
Anders Wirzenius-2 wrote:
>
> rpd <richard@dickinson350.freeserve.co.uk> 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
>
>
--
View this message in context: http://www.nabble.com/elisp-syntax-for-.emacs-code-beginners-help-%28inserting-%22%22-marks-example%29-tp25271571p25288843.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
next prev parent reply other threads:[~2009-09-04 7:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.5929.1251965649.2239.help-gnu-emacs@gnu.org>
2009-09-03 8:19 ` elisp syntax for .emacs code beginners help (inserting "" marks example) Anders Wirzenius
2009-09-04 7:22 ` rpd [this message]
2009-09-04 10:26 ` Sean Sieger
2009-09-04 20:43 ` rpd
2009-09-05 16:37 ` Tyler Smith
2009-09-03 8:14 rpd
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=25288843.post@talk.nabble.com \
--to=richard@dickinson350.freeserve.co.uk \
--cc=Help-gnu-emacs@gnu.org \
/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.