]> git.eshelyaron.com Git - emacs.git/commitdiff
Forward declare eshell-buffer-name in project-eshell
authorTheodor Thornhill <theo@thornhill.no>
Sun, 21 Jun 2020 22:49:20 +0000 (01:49 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 21 Jun 2020 22:49:20 +0000 (01:49 +0300)
* lisp/progmodes/project.el: Forward declare 'eshell-buffer-name' so
that 'project-eshell' can use dynamically scoping with it.

lisp/progmodes/project.el

index 5f4bfdf9b89dbe2d3a9c56fbe334ba9b492165ce..604882af8a509eddbb4c5c5a58cdc03c0690ab72 100644 (file)
@@ -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