Questions tagged [error-handling]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
41
votes
2answers
7k views

What do I do when Emacs is frozen? [duplicate]

What should I do when Emacs stops responding? My current "emacs-is-frozen" protocol looks like this: Spam C-g (it sometimes works) Wait for a while. pkill -9 emacs What alternate steps could I try ...
15
votes
3answers
3k views

Show line number on error

Say that emacs throws some error that I don't understand. Or maybe the error says "Symbol's value as variable is void: modes", but there are many occurrences of the symbol modes in my code, so I need ...
5
votes
1answer
562 views

Capturing stderr of subprocesses

I'm trying to capture stderr separately from stdout for a (synchronous) process run from emacs. I've found one way of doing it based on some code copied from emacs' shell-command function (I don't ...
9
votes
2answers
287 views

Rethrowing an error in Emacs Lisp

I need to call a function and perform a cleanup only if the function fails, and then relaunch the error. Here is the pseudo-code: (condition-case err (call-function) (error (cleanup) ;; ...