From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: How to discard return value of a function? Date: Mon, 20 Aug 2012 20:13:35 -0400 Organization: A noiseless patient Spider Message-ID: References: <5030b345$0$6553$9b4e6d93@newsspool4.arcor-online.net> <88a339ab-f737-40d1-8f3a-7cd6b66c585e@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1345508120 26707 80.91.229.3 (21 Aug 2012 00:15:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2012 00:15:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 21 02:15:21 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 1T3c7p-0005TU-Ne for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Aug 2012 02:15:17 +0200 Original-Received: from localhost ([::1]:55141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3c7o-0000Lt-5X for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Aug 2012 20:15:16 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Injection-Info: barmar.motzarella.org; posting-host="78fb7125a45724f15e21604c94a7d968"; logging-data="32256"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wQam94JaEjvyzwr0V/U8i" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:FAOUT9RD51gV89kVC/6w8j9lC9E= Original-Xref: usenet.stanford.edu gnu.emacs.help:194073 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:86439 Archived-At: In article <88a339ab-f737-40d1-8f3a-7cd6b66c585e@googlegroups.com>, jpkotta wrote: > On Sunday, August 19, 2012 4:52:21 AM UTC-5, Leo wrote: > > (progn (YOURFUNCTION ...) nil) > > You can also use advice, but (progn ... nil) is probably preferable. > > (defun foo () > (interactive) > t) > > (defadvice foo (after modify-return-value activate) > (setq ad-return-value nil)) If he advised search-forward to return nil, that would break lots of other things. He just wants to ignore the return value in one particular place where he calls it. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***