From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mortimer Cladwell Newsgroups: gmane.lisp.guile.user Subject: Re: backing out of debugger Date: Wed, 15 Sep 2021 11:40:17 -0400 Message-ID: References: <2KvfuvWJK8YOzfiO0RhREKDcnG6WfLxg0lsTNz0XBeazt1bC_OAdQGVF8TLobwUBYbpt0QJ_lQ3sYft5U4aln9ytZsfP8tz3phmojkzVbMo=@protonmail.com> <87ilz3fcn0.fsf@laura> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8633"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: matt.wette@gmail.com Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Sep 15 17:41:07 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQX22-00022G-Sy for guile-user@m.gmane-mx.org; Wed, 15 Sep 2021 17:41:06 +0200 Original-Received: from localhost ([::1]:55526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQX21-0002Mh-Py for guile-user@m.gmane-mx.org; Wed, 15 Sep 2021 11:41:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQX1T-0002LL-6S for guile-user@gnu.org; Wed, 15 Sep 2021 11:40:32 -0400 Original-Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]:36521) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQX1R-0003RS-Ha for guile-user@gnu.org; Wed, 15 Sep 2021 11:40:30 -0400 Original-Received: by mail-oi1-x230.google.com with SMTP id s20so4750580oiw.3 for ; Wed, 15 Sep 2021 08:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j5xDkUN9pl9RWgs4ROIEgeerzXM/4EuZGogR2RwTkKs=; b=HF4d4fFwZfLtriHhh/10HR5u9+/9GgbkVCrTmQFUyu4IFt15qIdMHt0LA1MdC01+H+ LZ5SKMMt82uYGB2cmwoE/EBYGZziTtpVMcO9XSq/g9KeN2bDRlKeRknhYtCa/JOMaWHz PnARy2Vqs15WJaACf2zrFj46ARlFoye0GWzNRFsh2NRrYfllLr35khVCKz/HSH7ITU+3 IcyJl4jShYxKLjzGi2IHwqccPhZezPx650IT8Bp7wq91M400oGHNukRkxpS07mFhnWPr 8k+m2LhLazP+pIlnnR4Jt5BBReruVQ5SNsg+Q0zD2+DiTnc7vpkfwa5FlbOJxXlLO49y hkzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=j5xDkUN9pl9RWgs4ROIEgeerzXM/4EuZGogR2RwTkKs=; b=O2V+RmY3UevFhiSRdxnRFUR8E3HRKRe16r6UHcFRxJKD3zNp2lbZIxcjLM6RdlH+mS 9S/BirnuHYVXSfKy8An1PLgRdGupjvywpnojN6i5Lqkc4tQWb6FmKJxOYgfZOGiZVGMr KQBPw3jb7W8xDGca6sAyrdh26A/w0/d4/rm8h6FLOkis+L0kTZfIhqFNP0SzQtB/gPDf QLDNY9mSXLlg0jnUYM46Zf/3pLoJ93Vhih72fezI7/cUsDgjNncqecFybf+mIyRYyt8e 74tFDzsltBV/DFViyWGLVFeMA2IPD7hW13jb5xGdePbdLZhQiXTJ+3+olhsG5S7w3I3p 2PSQ== X-Gm-Message-State: AOAM531AKMngFgaPJ6NQERMOHch0IdXttJpnOfSLe6Cs0UzNdT88d+Kb feTeeI+kOFThq3FTXD8hFOnOKOm+Y4gkXKx5Ow0zM+UsYuo= X-Google-Smtp-Source: ABdhPJxrdCQS6aI8d0bD86KhbXjdHqcghAN4ARMZvoXrhGj4bWY2qEA1IyGvx+2hqrw0VOYnhsFA+zN0/p3VboskBhY= X-Received: by 2002:aca:da05:: with SMTP id r5mr5587988oig.30.1631720428126; Wed, 15 Sep 2021 08:40:28 -0700 (PDT) In-Reply-To: <87ilz3fcn0.fsf@laura> Received-SPF: pass client-ip=2607:f8b0:4864:20::230; envelope-from=mbcladwell@gmail.com; helo=mail-oi1-x230.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17741 Archived-At: Thanks Matt. I wrote a Guile utility function and attached to a button using e-lisp: ----Guile----------------------------------------------------------- (define (back-out repl-stack ) (if (null? (cdr repl-stack)) (throw 'quit) (begin (throw 'quit) (back-out (cdr repl-stack))))) ----end guile------------------------------------------------------- ----Emacs Lisp--------------------------------------------------- (defun insert-back-out() (interactive) (insert "(back-out (fluid-ref *repl-stack*))")) (global-set-key (kbd "") 'insert-back-out) ---end-elisp------------------------------------------------------ If I am at scheme@(guile-user) [3]> I must press the button three times. So doesn't quite work as expected. Seems like only one (throw 'quit) can be executed per prompt? Not sure what the problem is. Mortimer On Tue, Sep 14, 2021 at 10:35 AM Olivier Dion wrote: > On Tue, 14 Sep 2021, Luis Felipe wrote: > > On Tuesday, September 14th, 2021 at 1:27 PM, Mortimer Cladwell < > mbcladwell@gmail.com> wrote: > > > >> Thanks Luis. What about in emacs/geiser where Ctrl-D won't work? > > > > The equivalent in Geiser would be C-c C-q, I think. But I don't know > > if that's any better than typing ,q plus Enter :) > > You could define a procedure that calls geiser-repl-exit N time with the > prefix argument. > > Note that geiser-repl-exit already takes a prefix argument, but will > simply kill the process instead of exiting N repl. > > -- > Olivier Dion > Polymtl >