From: Eli Zaretskii <eliz@gnu.org>
To: Glenn Morris <rgm@gnu.org>
Cc: rprije@janestreet.com, 13930@debbugs.gnu.org
Subject: bug#13930: Emacs doesn't cope well if it can't access/create .emacs.d
Date: Tue, 12 Mar 2013 18:48:22 +0200 [thread overview]
Message-ID: <83obeok1ih.fsf@gnu.org> (raw)
In-Reply-To: <yfmwu8a8f0.fsf@fencepost.gnu.org>
> From: Glenn Morris <rgm@gnu.org>
> Cc: Robert Prije <rprije@janestreet.com>, 13930@debbugs.gnu.org
> Date: Tue, 12 Mar 2013 12:29:23 -0400
>
> Eli Zaretskii wrote:
>
> >> It does exactly the same thing with --debug-init (says "creating directory:
> >> permission denied...") and supplies no further information.
> >
> > How about running it under GDB with a breakpoint on report_file_error
> > and on xsignal? If you start GDB from the src directory of the Emacs
> > sources, the .gdbinit file there defines a command xbacktrace which
> > will produce a Lisp-level backtrace in addition to the C-level
> > backtrace produced by the "bt" command of GDB.
>
> Why do we need to jump through such hoops, when locate-user-emacs-file,
> which Stefan has just added all over the place, says:
>
> Else return NEW-NAME in `user-emacs-directory', creating the
> directory if it does not exist.
If you mean that remembering this was all you needed to deduce that
locate-user-emacs-file is the culprit, then good for you. I never
remember such details (and this one I think I never knew about in the
first place). A debugger will show the truth even if the problem is
in some other place, so it is (IMO) a more efficient way of finding
the root cause.
IOW, more often than not I find that "jumping through hoops" is the
shortest and most reliable way to solution.
next prev parent reply other threads:[~2013-03-12 16:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-12 1:35 bug#13930: Emacs doesn't cope well if it can't access/create .emacs.d Robert Prije
2013-03-12 3:43 ` Stefan Monnier
2013-03-12 3:52 ` Robert Prije
2013-03-12 5:11 ` Stefan Monnier
2013-03-12 9:01 ` Robert Prije
2013-03-12 16:10 ` Eli Zaretskii
2013-03-12 16:29 ` Glenn Morris
2013-03-12 16:48 ` Eli Zaretskii [this message]
2013-03-12 16:32 ` Sven Joachim
2013-05-12 23:33 ` Robert Prije
2013-05-14 7:30 ` Glenn Morris
2013-05-14 8:46 ` Robert Prije
2013-05-14 16:01 ` Glenn Morris
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=83obeok1ih.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=13930@debbugs.gnu.org \
--cc=rgm@gnu.org \
--cc=rprije@janestreet.com \
/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.