emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-descriptive error-message


From: Richard Stallman
Subject: Re: Non-descriptive error-message
Date: Fri, 9 Nov 2001 01:29:33 -0700 (MST)

    Of course, but then I can not signal an error *in the same way* to the
    user. error will pop-up the debugger

`error' signals an error, which may or may not invoke the debugger,
depending on various details, including the error message.

    emacs -q -f eval-print-last-sexp 

    you see only "End of file during parsing" message in the
    echo-area.

This is an error message.  This error may or may not invoke the
debugger, depending on various details.

To signal an error exactly the way the reader does it, you
can do this:

   (signal 'end-of-file
           (if (stringp load-file-name)
               (list load-file-name)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]