From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yasuhiro Kimura Newsgroups: gmane.emacs.bugs Subject: bug#55386: 29.0.50; check-declare-directory doesn't work on Windows Date: Fri, 13 May 2022 02:35:30 +0900 (JST) Message-ID: <20220513.023530.164806185269303998.yasu@utahime.org> References: <20220513.002244.1042559713148422728.yasu@utahime.org> <878rr6ycaa.fsf@gnus.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6699"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55386@debbugs.gnu.org To: larsi@gnus.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 12 20:28:37 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npDYC-0001a1-Md for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 20:28:36 +0200 Original-Received: from localhost ([::1]:35152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npDYB-0007uX-Hw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 14:28:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npCkI-00037J-Hq for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 13:37:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48312) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npCkI-0006ld-8V for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 13:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npCkI-0005qw-5O for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 13:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yasuhiro Kimura Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 May 2022 17:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55386 X-GNU-PR-Package: emacs Original-Received: via spool by 55386-submit@debbugs.gnu.org id=B55386.165237699722461 (code B ref 55386); Thu, 12 May 2022 17:37:02 +0000 Original-Received: (at 55386) by debbugs.gnu.org; 12 May 2022 17:36:37 +0000 Original-Received: from localhost ([127.0.0.1]:42209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npCjs-0005qD-GG for submit@debbugs.gnu.org; Thu, 12 May 2022 13:36:36 -0400 Original-Received: from gate.home.utahime.org ([111.108.18.121]:44505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npCjq-0005q0-B7 for 55386@debbugs.gnu.org; Thu, 12 May 2022 13:36:35 -0400 Original-Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by gate.home.utahime.org (Postfix) with ESMTPS id A124320124; Fri, 13 May 2022 02:36:30 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1652376990; bh=6tgVCLklXNIsKFHdnr5zt6yvaDdiHbaN8N01K0pDo8A=; h=Date:To:Cc:Subject:From:In-Reply-To:References; b=Fzfayan/AljBH1JjfwUCIvTEiEr95a2x8w9Bskedr3PT5g7C/PHjxxfkatKvj3gXr gqCfKrjqaxchw5cXph7aNqPiG6dh2AXtFKqkzCGoGnLm9Dk3KZebLOoSyfqFGVw5dQ QTolK5utvDUo1Dc0ZZWkXoNkga4PxHjcQIez92sS8mJwy/1ypOzcQoXxmfc6rwyBfB xIzrgDT1c/DVEO4Bpq+/ZJMxPCFyMCYBKlqvBpXS23q1wuYJKc440qbTfF0OKTnxNx 5XPxT8ANTK8W74j8hsngQXlTA84nQw+Abl/t3GtRdDZKzUIS+qcLv1V0nQzaS+2ocQ e6b7oJpEmAe1w== Original-Received: from localhost (half.home.utahime.org [192.168.174.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id CBDFE30A24; Fri, 13 May 2022 02:36:29 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.105.0 at eastasia.home.utahime.org In-Reply-To: <878rr6ycaa.fsf@gnus.org> X-Mailer: Mew version 6.8 on Emacs 29.0.50 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:232092 Archived-At: From: Lars Ingebrigtsen Subject: Re: bug#55386: 29.0.50; check-declare-directory doesn't work on Windows Date: Thu, 12 May 2022 17:57:01 +0200 > 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 Thanks for reply. And sorry, it seems I misunderstood the problem. At first I faced the error of check-declare-directory when I tried to build and install some 3rd party elisp applications. Recently they start to use the function at their build process and it causes build error as following. (MINGW64)yasu@half[1018]% make lisp make[1]: Entering directory '/c/Users/yasu/Work/Emacs/with-editor/lisp' Compiling with-editor.el Creating with-editor-autoloads.el Checking function declarations Error: file-error ("Opening input file" "Invalid argument" "c:/usr/bin/find: paths must precede expression: `with-editor.el'") mapbacktrace(#f(compiled-function (evald func args flags) #)) debug-early-backtrace() debug-early(error (file-error "Opening input file" "Invalid argument" "c:/usr/bin/find: paths must precede expression: `with-editor.el'")) insert-file-contents("/usr/bin/find: paths must precede expression: `with-editor.el'") check-declare-scan("/usr/bin/find: paths must precede expression: `with-editor.el'") check-declare-files("/usr/bin/find: paths must precede expression: `with-editor.el'" "/usr/bin/find: possible unquoted pattern after predicate `-name'?") apply(check-declare-files ("/usr/bin/find: paths must precede expression: `with-editor.el'" "/usr/bin/find: possible unquoted pattern after predicate `-name'?")) check-declare-directory("~/Work/Emacs/with-editor/lisp/") eval((check-declare-directory default-directory) t) command-line-1(("--eval" "(setq with-editor-emacsclient-executable nil)" "-L" "../../compat" "-L" "../../vterm" "-L" "." "--eval" "(check-declare-directory default-directory)")) command-line() normal-top-level() Opening input file: Invalid argument, c:/usr/bin/find: paths must precede expression: `with-editor.el' make[1]: *** [Makefile:14: check-declare] Error 127 make[1]: Leaving directory '/c/Users/yasu/Work/Emacs/with-editor/lisp' make: *** [Makefile:25: lisp] Error 2 (MINGW64)yasu@half[1019]% In this case I executed make.exe from shell of MSYS2. So find.exe and grep.exe of MSYS2 are used. But when I directly evaluated check-declare-directory from *scratch* buffer, I executed emacs from command prompt of Windows. And in this case there is neither find.exe nor grep.exe in my PATH directories. So check-declare-directory fails differently. And I wrongly reported it as the bug of Emacs. Actually if I execute emacs from shell of MSYS2, then steps of original bug report mail results in expected behavior. I don't know why above build error happens. But probably it is bug of the elisp applications in question. So I'll report it to the author of them. Best Regards. --- Yasuhiro KIMURA