GNU bug report logs -
#55386
29.0.50; check-declare-directory doesn't work on Windows
Previous Next
Reported by: Yasuhiro Kimura <yasu <at> utahime.org>
Date: Thu, 12 May 2022 15:27:02 UTC
Severity: normal
Found in version 29.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 55386 <at> debbugs.gnu.org (full text, mbox):
Yasuhiro Kimura <yasu <at> utahime.org> writes:
> [How to reproduce the problem]
>
> 1. cd C:/Users/yasu/Temp
> 2. git clone https://git.savannah.gnu.org/git/emacs.git
> 3. Start Emacs with 'emacs -Q'
> 4. Type '(check-declare-directory "C:/Users/yasu/Temp/emacs/lisp")'
> and C-j.
[...]
> Debugger entered--Lisp error: (file-error "Opening input file" "Invalid argument" "c:/Users/yasu/ファイルが見つかりません - \"^[ \11]*(declare-funct...")
> insert-file-contents("ファイルが見つかりません - \"^[ \11]*(declare-function\"")
> check-declare-scan("ファイルが見つかりません - \"^[ \11]*(declare-function\"")
> check-declare-files("ファイルが見つかりません - \"^[ \11]*(declare-function\"")
> apply(check-declare-files "ファイルが見つかりません - \"^[ \11]*(declare-function\"")
check-declare-directory is just a wrapper around `find', and I'm surprised
that this even vaguely works on Windows:
(defun check-declare-directory (root)
[...]
(let ((files (process-lines-ignore-status
find-program root
"-name" "*.el"
"-exec" grep-program
"-l" "^[ \t]*(declare-function" "{}" "+")))
If you run this "manually", what does it output?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 235 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.