emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master a1686c0 2/2: Forward declare eshell-buffer-name in project-eshell


From: Dmitry Gutov
Subject: master a1686c0 2/2: Forward declare eshell-buffer-name in project-eshell
Date: Sun, 21 Jun 2020 18:49:28 -0400 (EDT)

branch: master
commit a1686c00d0e4550228673e9f2b95b7c1c0662be8
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Forward declare eshell-buffer-name in project-eshell
    
    * lisp/progmodes/project.el: Forward declare 'eshell-buffer-name' so
    that 'project-eshell' can use dynamically scoping with it.
---
 lisp/progmodes/project.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 5f4bfdf..604882a 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -740,6 +740,7 @@ switch to it.  Otherwise, create a new Eshell buffer.
 With \\[universal-argument] prefix arg, create a new Eshell buffer even
 if one already exists."
   (interactive)
+  (defvar eshell-buffer-name)
   (let* ((default-directory (project-root (project-current t)))
          (eshell-buffer-name
            (concat "*" (file-name-nondirectory



reply via email to

[Prev in Thread] Current Thread [Next in Thread]