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: Mon, 20 Aug 2012 12:47:57 -0700 (PDT) Message-ID: <88a339ab-f737-40d1-8f3a-7cd6b66c585e@googlegroups.com> References: <5030b345$0$6553$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1345492092 3091 80.91.229.3 (20 Aug 2012 19:48:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2012 19:48:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: gnu.emacs.help@googlegroups.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 20 21:48:13 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 1T3XxJ-0001F0-Qz for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Aug 2012 21:48:09 +0200 Original-Received: from localhost ([::1]:48774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3XxI-0003K8-E8 for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Aug 2012 15:48:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3Xx9-0003D5-Qv for help-gnu-emacs@gnu.org; Mon, 20 Aug 2012 15:48:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3Xx9-00070h-4O for help-gnu-emacs@gnu.org; Mon, 20 Aug 2012 15:47:59 -0400 Original-Received: from mail-iy0-f189.google.com ([209.85.210.189]:33619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3Xx9-00070V-0J for help-gnu-emacs@gnu.org; Mon, 20 Aug 2012 15:47:59 -0400 Original-Received: by iadx2 with SMTP id x2so4420153iad.6 for ; Mon, 20 Aug 2012 12:47:58 -0700 (PDT) Original-Received: by 10.68.201.229 with SMTP id kd5mr2266593pbc.11.1345492077978; Mon, 20 Aug 2012 12:47:57 -0700 (PDT) Original-Path: glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.97.12.233; posting-account=EwI0QQoAAADdqmqX_mVfawBNtwyks2YE Original-NNTP-Posting-Host: 70.97.12.233 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 70.97.12.233 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.189 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:86437 Archived-At: On Sunday, August 19, 2012 4:52:21 AM UTC-5, Leo wrote: > (progn (YOURFUNCTION ...) nil) > > -- > > Sent from my Emacs 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))