Fix info-xref-tests

* 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.
This commit is contained in:
Eli Zaretskii 2024-01-13 20:38:34 +02:00
parent c494a6e879
commit 1f97a87879
2 changed files with 10 additions and 2 deletions

View 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

View 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."