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

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

Re: Wrapping code in a try/except


From: Kevin Rodgers
Subject: Re: Wrapping code in a try/except
Date: Thu, 04 Nov 2010 00:09:05 -0600
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6

On 11/3/10 4:13 AM, Andrea Crotti wrote:
It would be nice sometimes to be able to wrap multiple lines

istruction1();
istruction2();

in something like

try {
     istruction1();
     istruction2();
} except ...

(condition-case nil
    (progn
      (istruction1)
      (istruction2))
  (error ...))

--
Kevin Rodgers
Denver, Colorado, USA




reply via email to

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