Subject: Re: [bug#44086] [PATCH] gnu: emacs-evil: Add info page.
From: Oleg Pykhalov <[email-masked]>
To: Michael Rohleder <[email-masked]>
Cc: [email-masked]
Date: Tue, 20 Oct 2020 09:42:11 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Michael Rohleder <[email-masked]> writes:

> * gnu/packages/emacs-xyz.scm (emacs-evil): Add info page.
> [arguments]: Add phase make-info.
> [native-inputs]: Add texinfo.
> ---
>  gnu/packages/emacs-xyz.scm | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
[…]

Pushed to master with "with-directory-excursion" instead of "chdir":
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 41f76132a6..aab3f26e8b 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -9395,9 +9395,9 @@ news items, openrc and runscripts.")
              #t))
          (add-before 'install 'make-info
            (lambda _
-             (chdir "doc/build/texinfo")
-             (invoke "makeinfo" "--no-split"
-                     "-o" "evil.info" "evil.texi"))))))
+             (with-directory-excursion "doc/build/texinfo"
+                 (invoke "makeinfo" "--no-split"
+                         "-o" "evil.info" "evil.texi")))))))
     (build-system emacs-build-system)
     (native-inputs `(("texinfo" ,texinfo)))
     (home-page "https://github.com/emacs-evil/evil")

Oleg.