[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: M-x ediff-files doesn't notify user of missing ediff-diff-program
From: |
David Kastrup |
Subject: |
Re: M-x ediff-files doesn't notify user of missing ediff-diff-program |
Date: |
Wed, 25 Oct 2006 17:09:50 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> (condition-case nil
>> (apply 'call-process program nil buffer nil args)
>> ! (error (error "Cannot execute program %S." program)))
>
> BTW, why catch the error and re-raise it immediately? The only
> reason I can think of is to raise a more user-friendly error, but
> I'm not sure the above is more user-friendly, and if it is, then
> maybe call-process's error message should be changed instead.
The above is actually quite programmer-unfriendly, since calling the
debugger on errors will not result in a useful stack trace.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum