From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: How to discard return value of a function?
Date: Wed, 22 Aug 2012 11:04:12 -0400 [thread overview]
Message-ID: <jwvzk5nvul4.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: 5030b345$0$6553$9b4e6d93@newsspool4.arcor-online.net
> I'm trying to write a skeleton with (search-forward) in it. But
> (search-forward) always returns the point and skeleton inserts it as a
> string in the buffer, which of course is not what I want.
C-h f skeleton-insert RET says:
Quoted Lisp expressions are evaluated for their side-effects.
Other Lisp expressions are evaluated and the value treated as above.
so you can use '(search-forward ...) in your skeleton to tell skeleton
that the return value should be ignored.
Otherwise, you can also use (ignore (search-forward ...)) since `ignore'
always returns nil.
Stefan
prev parent reply other threads:[~2012-08-22 15:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-19 9:35 How to discard return value of a function? Plamen Tanovski
2012-08-19 9:52 ` Leo
[not found] ` <mailman.7236.1345369957.855.help-gnu-emacs@gnu.org>
2012-08-20 19:47 ` jpkotta
2012-08-21 0:13 ` Barry Margolin
2012-08-21 15:59 ` jpkotta
2012-08-22 15:04 ` Stefan Monnier [this message]
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=jwvzk5nvul4.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--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.