unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: emacs-devel@gnu.org
Subject: Re: eshell lisp errors
Date: Wed, 25 Sep 2024 21:19:24 +0200	[thread overview]
Message-ID: <87v7yjtubn.fsf@dataswamp.org> (raw)
In-Reply-To: 87h6a3sgcw.fsf@librehacker.com

Christopher Howard wrote:

> That is fine, I suppose, but I was wondering: In eshell, is
> there some way to do something with the exception, rather
> than just report it, or trap it in the debugger? Some hook,
> maybe...? It would be neat, e.g., if I could examine the
> error, then decide if I wanted to continue on with the rest
> of the script, or abort.

But then won't people start to loose respect for errors? ;)

When you say "in eshell", you mean something else than
in Elisp

(condition-case nil
    (funcall next)
  (error (goto-char end)))

?

-- 
underground experts united
https://dataswamp.org/~incal




  reply	other threads:[~2024-09-25 19:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-25 19:06 eshell lisp errors Christopher Howard
2024-09-25 19:19 ` Emanuel Berg [this message]
2024-09-26 15:00   ` Christopher Howard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v7yjtubn.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).