all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#41977: 28.0.50; [PATCH]: eval-when-compile eshell in project.el
@ 2020-06-21 11:33 Theodor Thornhill
  2020-06-21 12:25 ` Basil L. Contovounesios
  0 siblings, 1 reply; 7+ messages in thread
From: Theodor Thornhill @ 2020-06-21 11:33 UTC (permalink / raw)
  To: 41977

[-- Attachment #1: Type: text/plain, Size: 258 bytes --]


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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-project.el-eval-when-compile-eshell.patch --]
[-- Type: text/x-patch; name=0001-project.el-eval-when-compile-eshell.patch, Size: 807 bytes --]

From 4b3f83a4ea36252f7f7552b58529688f6b4c3c9f Mon Sep 17 00:00:00 2001
From: Theodor Thornhill <theo@thornhill.no>
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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-06-21 23:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-21 11:33 bug#41977: 28.0.50; [PATCH]: eval-when-compile eshell in project.el Theodor Thornhill
2020-06-21 12:25 ` Basil L. Contovounesios
2020-06-21 17:44   ` Theodor Thornhill
2020-06-21 17:55     ` Basil L. Contovounesios
2020-06-21 22:52       ` Dmitry Gutov
2020-06-21 23:02         ` Basil L. Contovounesios
2020-06-21 23:07           ` Dmitry Gutov

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.