all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Devel" <emacs-devel@gnu.org>
Subject: test whether init file loaded without error
Date: Fri, 21 Mar 2008 09:49:22 -0700	[thread overview]
Message-ID: <004301c88b73$840c5600$0600a8c0@us.oracle.com> (raw)

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'.







             reply	other threads:[~2008-03-21 16:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-21 16:49 Drew Adams [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-04-11 19:43 test whether init file loaded without error Drew Adams
2008-04-12  8:48 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004301c88b73$840c5600$0600a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.