Subject: bug#41977: 28.0.50; [PATCH]: eval-when-compile eshell in project.el

From: Theodor Thornhill <[email-masked]>
Date: Sun, 21 Jun 2020 11:33:06 +0000

Hi!

I saw a little too late that the latest patch to 'project-eshell' didn't
apply correctly when compiling emacs.  As such you would get old
behavior until you eval 'project-eshell'.

A quick fix as far as I can tell is the below patch.

Theo

From 4b3f83a4ea36252f7f7552b58529688f6b4c3c9f Mon Sep 17 00:00:00 2001
From: Theodor Thornhill <[email-masked]>
Date: Sun, 21 Jun 2020 13:09:42 +0200
Subject: [PATCH] project.el - eval-when-compile eshell

* lisp/progmodes/project.el: eval-when-compile Eshell so we can use
'eshell-buffer-name' in 'project-eshell'
---
 lisp/progmodes/project.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 74495cf07a..b77317b98d 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -91,7 +91,9 @@
 ;;; Code:
 
 (require 'cl-generic)
-(eval-when-compile (require 'subr-x))
+(eval-when-compile
+  (require 'subr-x)
+  (require 'eshell))
 
 (defgroup project nil
   "Operations on the current project."
-- 
2.27.0