unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* FW: test whether init file loaded without error
@ 2008-03-30 18:19 Drew Adams
  0 siblings, 0 replies; only message in thread
From: Drew Adams @ 2008-03-30 18:19 UTC (permalink / raw)
  To: emacs-devel

Resending -

----
From: Drew Adams Sent: Friday, March 21, 2008 9:49 AM
Is there an easy way for Lisp code to test whether a user's
init file was loaded without error? I imagine that it could
try to use `after-init-hook' in some way (not sure how,
though), but is there some straightforward way to test this?

For example: A user's init file might use code that sets up
`kill-emacs-hook' to save some custom variable. But it might
be inappropriate to do that if the init file was not loaded
successfully. The init file might, for example, define
`custom-file' at the end, and if an error were raised during
load, before the `custom-file' definition, then exiting
Emacs would cause `kill-emacs-hook' to write the
customization (incorrectly) to the init file instead of the
`custom-file'.










^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-30 18:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-30 18:19 FW: test whether init file loaded without error Drew Adams

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).