From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jpkotta Newsgroups: gmane.emacs.help Subject: Re: How to discard return value of a function? Date: Tue, 21 Aug 2012 08:59:20 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3f5e65f7-a0b3-4136-a8cf-bdae19905307@googlegroups.com> References: <5030b345$0$6553$9b4e6d93@newsspool4.arcor-online.net> <88a339ab-f737-40d1-8f3a-7cd6b66c585e@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1345565123 6566 80.91.229.3 (21 Aug 2012 16:05:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2012 16:05:23 +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 18:05:24 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 1T3qxF-0004Ev-GC for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Aug 2012 18:05:21 +0200 Original-Received: from localhost ([::1]:57735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3qxD-0004e2-Ux for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Aug 2012 12:05:19 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-NNTP-Posting-Host: 70.97.12.233 Original-X-Trace: posting.google.com 1345564876 20305 127.0.0.1 (21 Aug 2012 16:01:16 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 21 Aug 2012 16:01:16 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.97.12.233; posting-account=EwI0QQoAAADdqmqX_mVfawBNtwyks2YE User-Agent: G2/1.0 Original-Xref: usenet.stanford.edu gnu.emacs.help:194088 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:86454 Archived-At: On Monday, August 20, 2012 7:13:35 PM UTC-5, Barry Margolin wrote: > 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 *** Yeah, I realized that after I posted. I tried to delete the post but I guess it got posted twice for some reason.