all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* testing configuration
@ 2009-12-27 17:01 andrea
  0 siblings, 0 replies; 2+ messages in thread
From: andrea @ 2009-12-27 17:01 UTC (permalink / raw)
  To: help-gnu-emacs

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?





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: testing configuration
       [not found] <mailman.265.1261933297.18930.help-gnu-emacs@gnu.org>
@ 2009-12-27 17:53 ` Pascal J. Bourguignon
  0 siblings, 0 replies; 2+ messages in thread
From: Pascal J. Bourguignon @ 2009-12-27 17:53 UTC (permalink / raw)
  To: help-gnu-emacs

andrea <andrea.crotti.0@gmail.com> writes:

> 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?

What about:

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

?

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-27 17:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-27 17:01 testing configuration andrea
     [not found] <mailman.265.1261933297.18930.help-gnu-emacs@gnu.org>
2009-12-27 17:53 ` Pascal J. Bourguignon

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.