From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: How to discard return value of a function? Date: Wed, 22 Aug 2012 11:04:12 -0400 Message-ID: References: <5030b345$0$6553$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1345647918 25585 80.91.229.3 (22 Aug 2012 15:05:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2012 15:05:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 22 17:05:18 2012 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 1T4CUf-0006gP-Og for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Aug 2012 17:05:17 +0200 Original-Received: from localhost ([::1]:37954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4CUe-000547-2Z for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Aug 2012 11:05:16 -0400 Original-Received: by 10.66.89.196 with SMTP id bq4mr3444519pab.26.1345647853487; Wed, 22 Aug 2012 08:04:13 -0700 (PDT) Original-Path: usenet.stanford.edu!g10no2975577pbl.0!news-out.google.com!t10ni19297668pbh.0!nntp.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe14.iad.POSTED!00000000!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) Cancel-Lock: sha1:OtRVJfrWH5Y8AOWjTOyaN+Xc1zs= Original-Lines: 16 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Wed, 22 Aug 2012 15:04:12 UTC X-Received-Bytes: 1284 Original-Xref: usenet.stanford.edu gnu.emacs.help:194109 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:86473 Archived-At: > 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