unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: 42903@debbugs.gnu.org
Subject: bug#42903: 28.0.50; Emacs doesn't start if the current directory is inaccessible
Date: Mon, 17 Aug 2020 15:16:08 +0200	[thread overview]
Message-ID: <CAArVCkQRPU89_Q5efW82q=RcP4_mVmnB2Snsf14=dDSaDssFZA@mail.gmail.com> (raw)
In-Reply-To: <wvr44kp1ige2.fsf@gmail.com>

Am Mo., 17. Aug. 2020 um 14:53 Uhr schrieb Philipp Stephani
<p.stephani2@gmail.com>:
>
>
> 1. Create a FUSE mount where the FS driver runs in the foreground,
>    e.g. using
>
>    bindfs -f /bin /tmp/foo
>
> 2. In another shell, cd into the new mount point:
>
>    cd /tmp/foo
>
> 3. Kill the bindfs process started in step (1) (e.g. using C-c).
>
> 4. In the shell (2), start Emacs:
>
>    $ emacs -Q
>    Error getting directory: Transport endpoint is not connected
>    Symbol’s value as variable is void: auto-save-list-file-prefix
>
> The "void variable" error is clearly a bug.  In general, Emacs should
> fall back to / or ~ if the current directory is inaccessible.
>
> The Lisp backtrace is
>
> "default-toplevel-value" (0xffffb650)
> "custom-initialize-reset" (0xffffbc00)
> "custom-declare-variable" (0xffffc270)
> "byte-code" (0xffffc740)
> "display-warning" (0xffffcf30)
> "normal-top-level" (0xffffd600)
>
> i.e. it looks like `display-warning' is called too early.

The culprit might be commit 636856faa4de78912bf41eeaf0e639664a323424
(but I haven't checked in detail). In any case, this also happens in
Emacs 27 and appears to be a regression w.r.t. Emacs 26.





  reply	other threads:[~2020-08-17 13:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-17 12:52 bug#42903: 28.0.50; Emacs doesn't start if the current directory is inaccessible Philipp Stephani
2020-08-17 13:16 ` Philipp Stephani [this message]
2020-08-17 23:25 ` Paul Eggert
     [not found]   ` <CAArVCkTD4Fy86KAvO5KAgUwR7CozOzw9d9379_B9oCSexJzdVA@mail.gmail.com>
2022-09-22  3:06     ` Paul Eggert via Bug reports for GNU Emacs, the Swiss army knife of text editors

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CAArVCkQRPU89_Q5efW82q=RcP4_mVmnB2Snsf14=dDSaDssFZA@mail.gmail.com' \
    --to=p.stephani2@gmail.com \
    --cc=42903@debbugs.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 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).