From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55386: 29.0.50; check-declare-directory doesn't work on Windows Date: Thu, 12 May 2022 19:43:36 +0300 Message-ID: <835ymapupz.fsf@gnu.org> References: <20220513.002244.1042559713148422728.yasu@utahime.org> <878rr6ycaa.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28681"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yasu@utahime.org, 55386@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 12 18:44:16 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 1npBvD-0007Ji-CR for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 18:44:15 +0200 Original-Received: from localhost ([::1]:52406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npBvC-0007ET-6U for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 12:44:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npBv0-0007Ca-Pb for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 12:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48204) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npBv0-0006An-EA for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 12:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npBv0-0002AR-AT for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 12:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 May 2022 16:44: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.16523738208290 (code B ref 55386); Thu, 12 May 2022 16:44:02 +0000 Original-Received: (at 55386) by debbugs.gnu.org; 12 May 2022 16:43:40 +0000 Original-Received: from localhost ([127.0.0.1]:42101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npBue-00029e-CA for submit@debbugs.gnu.org; Thu, 12 May 2022 12:43:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npBuc-00029P-7b for 55386@debbugs.gnu.org; Thu, 12 May 2022 12:43:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npBuW-00063h-Hp; Thu, 12 May 2022 12:43:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=tJqSnTZcHUQE9N1MSImuNO7UXJVKxIqp6qMDlVsXmuU=; b=WKIkDQbcOrkrzRi95Ekg jZtKFAQWalVJIi34aBDl/pHoGElZStxSFWMXcmf+oLAny6ycrnCCELv4428TyKkVA5kC/OiY9DM+Q qByhNMQmIDlce6+KcvKnaM2w+iIVrSV8WlPDHL98Fmdlonkff0y37tplSoFfLQ1Gq8HeHwVdUuNcA J2SdgFeyd6gIU8EsZKjkNkgklpWSRZIUmSg9uPZrSco7k52BCDdrI5L/C/yJlTIruJsLA5FOF/B6I or9g3KYnJaVoHY29U4BkCKxINFyx01ttL9pB2egg3kcSREYPOVUHQgR8MyQmxAwLmS6KQdoWnBqc6 BXtsuUei56293w==; Original-Received: from [87.69.77.57] (port=2450 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npBuW-000150-16; Thu, 12 May 2022 12:43:32 -0400 In-Reply-To: <878rr6ycaa.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 12 May 2022 17:57:01 +0200) 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:232067 Archived-At: > Cc: 55386@debbugs.gnu.org > From: Lars Ingebrigtsen > Date: Thu, 12 May 2022 17:57:01 +0200 > > > 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: Why are you surprised? > (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? Here, it produces a long list of *.el files. The string "ファイルが見つかりません" translates from Japanese as "File not found". So I suspect the OP doesn't have a port of GNU Find on Path before the Windows program of the same name (which does something completely different), or maybe the version of Find or Grep the OP has don't support non-ASCII characters encoded in the OP's locale's codepage. Basically, that command tries to tell us that some (or all) of the files were not found. I wonder whether it could be a good idea to replace the find/grep command by something that traverses the files in Lisp, like dired-do-search or somesuch? This would resolve any problems with file names and incompatible versions of Find and Grep.