]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix info-xref-tests
authorEli Zaretskii <eliz@gnu.org>
Sat, 13 Jan 2024 18:38:34 +0000 (20:38 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 20 Jan 2024 16:13:23 +0000 (17:13 +0100)
* doc/lispintro/emacs-lisp-intro.texi (How let Binds Variables):
Fix cross-reference.  (Bug#68428)

* test/lisp/info-xref-tests.el (info-xref-test-write-file): Fix
test on MS-Windows when run from MSYS Bash.

(cherry picked from commit 1f97a8787957e49f1893b9ac73c95228f6ac1a13)

doc/lispintro/emacs-lisp-intro.texi
test/lisp/info-xref-tests.el

index b3fe8ce45898c92d43d15d0c805dff793cce1154..a06822ce539af1887744a936a6bf1ba7aae229bb 100644 (file)
@@ -3769,7 +3769,7 @@ the first line of your Emacs Lisp file:
 ;;; -*- lexical-binding: t -*-
 @end example
 
-For more information about this, @pxref{Selecting Lisp Dialect, , ,
+For more information about this, @pxref{Variable Scoping, , ,
 elisp, The Emacs Lisp Reference Manual}.
 
 @menu
index 72b6706a22ccde1a4411b95bb473c715b99a9c5c..c8eb18501f37053fa5ba345d84c9c9abab710ca4 100644 (file)
@@ -92,7 +92,15 @@ text.
 "
             )
     (write-region nil nil file nil 'silent))
-  (should (equal 0 (call-process "makeinfo" file))))
+  (if (and (eq system-type 'windows-nt)
+           (executable-find "sh"))
+      ;; If we are running from MSYS Bash, makeinfo.bat might find the
+      ;; wrong version of Perl, so make sure to run the shell script
+      ;; named just 'makeinfo' instead, because it names the correct
+      ;; Perl.
+      (should (equal 0 (call-process "sh" nil t nil
+                                     "-c" (format "makeinfo '%s'" file))))
+    (should (equal 0 (call-process "makeinfo" file)))))
 
 (ert-deftest info-xref-test-makeinfo ()
   "Test that info-xref can parse basic makeinfo output."