Subject: bug#61107: 29.0.60; directory creation regression due to eglot and/or project

From: Dmitry Gutov <[email-masked]>
Date: Sat, 28 Jan 2023 03:27:28 +0200

Hi!

On 28/01/2023 02:45, Eric Gillespie wrote:
> (This seems to be a project bug, not eglot, but I've never used
> proejct directly, only through eglot.  It's easy enough to trigger).
> 
> Steps to reproduce:
> 1. emacs -Q --eval "(require 'eglot)"
> 2. C-x C-f ../directory-that-does-not-exist/new-file.c
> 
> Expected:
> - new-file.c buffer in c-mode appears
> - M-x make-directory RET RET creates the missing directory
> 
> Actual:
> - current buffer is unchanged rather than switching to new-file.c
> - M-x make-directory offers to create CURRENT directory
>    (likely nothing but the natural effectd of the buffer not switching)
> - C-x b new-file.c RET shows the new-file.c buffer in fundamental-mode
> 
> Bisect suggests the bug was introduced in
> commit 785fa801596ad7bb9f838cac865f00de29e253d1.

Thanks for the report, should be fixed now in commit 128a999bfe7.