Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!bloom-beacon!ptt.lcs.mit.edu!markl From: markl@PTT.LCS.MIT.EDU Newsgroups: comp.emacs Subject: Re: Is there a GO command in Emacs Lisp? Message-ID: <8801252018.AA01225@PTT.LCS.MIT.EDU> Date: 25 Jan 88 20:18:16 GMT Sender: daemon@bloom-beacon.MIT.EDU Reply-To: markl@PTT.LCS.MIT.EDU Lines: 28 To: nntp-poster@PTT.LCS.MIT.EDU Repository: PTT Originating-Client: thyme From: dana@softg.UUCP (Eric Dana) Keywords: GO Date: 22 Jan 88 15:17:57 GMT Organization: Softech Inc., Waltham, Ma. Is there (gulp!) a GO function in EMACS lisp to transfer control to a label (probably specified by a PROG)? I know goto's aren't usually used in LISP, but this just one of those times... Thanks in advance... Eric Dana Not that I know of. Why on earth do you need a goto? Try looking at the documentation for the functions "unwind-protect" and "condition-case". They allow you to transfer control up through several stack frames without having to return from each one. They are typically used for signal handling, but by invention of your own signals you could probably simulate a goto fairly well. markl Internet: markl@ptt.lcs.mit.edu Mark L. Lambert MIT Laboratory for Computer Science Distributed Systems Group ----------