help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to discard return value of a function?


From: jpkotta
Subject: Re: How to discard return value of a function?
Date: Mon, 20 Aug 2012 12:47:57 -0700 (PDT)
User-agent: G2/1.0

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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]