Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

testing configuration

0 views
Skip to first unread message

andrea

unread,
Dec 27, 2009, 12:01:03 PM12/27/09
to help-gn...@gnu.org
I was wondering if it would be possible to automatically check if my
emacs configuration is correct.
This can be then put in a post-commit hook to check that whenever I add
some new features or change I don't mess up somethin else

I would only need to:
- load my whole configuration
- exit and returns 0 if everything goes fine, returns another number
otherwise.

Any ideas?

I can already launch a new emacs with certain conf, but how can I get a
return value?

Pascal J. Bourguignon

unread,
Dec 27, 2009, 12:53:08 PM12/27/09
to
andrea <andrea....@gmail.com> writes:

What about:

emacs -q --eval '(condition-case err (progn (load "~/.emacs") (kill-emacs 0)) (error (kill-emacs 1)))'

?

--
__Pascal Bourguignon__ http://www.informatimago.com/

0 new messages