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

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

Re: elisp how to return directly from a function


From: Pascal Bourguignon
Subject: Re: elisp how to return directly from a function
Date: Fri, 30 Jun 2006 17:08:05 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"lalit mohan tripathi" <lalit.tripathi@gmail.com> writes:

> Hi Everyone,
> Could anyone explain me how I can directly return from a defun in elisp.

(require 'cl)

(defun* fun ()
  ...
  (return-from fun 10)
  ...)


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

"You question the worthiness of my code? I should kill you where you
stand!"


reply via email to

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