;;; batch-exit.el --- test batch exit values ;;; Evaluating the next line gives the expected exit status (erro): ;;(compilation-start "emacs -Q -batch -f no-fun") ;;; Evaluating this line gives the expected exit status (error) if ;;; debug-on-error is nil, otherwise the exit status after the ;;; traceback is shown is success. ;;(compilation-start "emacs -Q -batch -l batch-exit.el") ;; If debug-on-error is set then emacs exit with 0 instead of 1 (setq debug-on-error t) (nofun)