From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#7027: 24.0.50; Dired error (wrong-type-arg stringp nil) with cons arg with wildcard in name Date: Fri, 17 Apr 2020 12:22:25 +0200 Message-ID: <87y2qutnry.fsf@stefankangas.se> References: <3F599FB93CFD4CA1BDAA1A6E038C7B9F@us.oracle.com> <87r23ww82e.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="115377"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 7027-done@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 17 12:23:33 2020 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 1jPO9k-000Tvl-6Z for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 12:23:32 +0200 Original-Received: from localhost ([::1]:45096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPO9j-00041X-8O for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 06:23:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37222) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPO9J-0003Za-6u for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 06:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPO9H-0005kX-51 for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 06:23:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56657) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jPO9G-0005k0-UQ for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 06:23:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jPO9G-0001fV-Rn for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 06:23:02 -0400 Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Apr 2020 10:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 7027 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: easy moreinfo Mail-Followup-To: 7027@debbugs.gnu.org, stefan@marxist.se, drew.adams@oracle.com Original-Received: via spool by 7027-done@debbugs.gnu.org id=D7027.15871189576351 (code D ref 7027); Fri, 17 Apr 2020 10:23:02 +0000 Original-Received: (at 7027-done) by debbugs.gnu.org; 17 Apr 2020 10:22:37 +0000 Original-Received: from localhost ([127.0.0.1]:39969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPO8q-0001eM-PG for submit@debbugs.gnu.org; Fri, 17 Apr 2020 06:22:37 -0400 Original-Received: from ted.gofardesign.uk ([67.225.143.91]:45558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPO8o-0001e2-Hh for 7027-done@debbugs.gnu.org; Fri, 17 Apr 2020 06:22:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=WVJ2o7ePp7Qhvlrr0VGJNoz5+6ahu1rr/HLLQUTmc7k=; b=Q7yy9+L5czw+laZwPArFK9VfTw 3IS8fyeOPczXnUXvPixBh6Q2874JtqTTuUu0j92I9NWeDUyW4/LUyW9+vW10c7R8fTqNcq9F8V8vY eFh0HSO9Iw3E6BvrjquEGujmlnMiqoKxabR/VHTgcRt1qw+mFowmu26N5NW9/Qk3b2/agh71u0qK0 5iGK79G1rfNTkA8xcHbwC1yfVSnUFb8Fy/c6QmSV7iVvWDJqbfFp05anBZr4A9EgxY5ifq0Je4cVB 4oHV8CNmIgh+VmJXVkYpSFUDo1rJIBVzeRNxanQiR+E/9RdaQ8h+h3SmbEZldgkitbE1Pnt3aFGbz M5hRr9yA==; Original-Received: from h-4-70-69.a785.priv.bahnhof.se ([155.4.70.69]:34092 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jPO8i-001lTH-8p; Fri, 17 Apr 2020 06:22:28 -0400 In-Reply-To: <87r23ww82e.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 01 Oct 2019 21:59:37 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:178497 Archived-At: Lars Ingebrigtsen writes: > "Drew Adams" writes: > >> Eval this: (dired '("TTTT" "111.el" "b*.el")), assuming there is a file >> 111.el and some file matching b*.el (but no file with name "b*.el", >> i.e. with a literal `*' in the name). >> >> You get this error: (wrong-type-argument stringp nil) > > Can you post the backtrace? > > [...] > >> This gets eval'd (where the ^@ is really a control char): >> >> (ls-lisp-insert-directory nil (97 108) nil "\\`b[^^@]*\\.el\\'" nil) >> >> That happens because of this call: >> >> (insert-directory "b*.el" "-al" nil nil) >> >> which calls (string-match "[[?*]" "b*.el") returning 1 (non-nil). >> >> (file-exists-p "b*.el") then returns nil, >> and (wildcard-to-regexp "b*.el") returns the regexp shown above. > > I tried reproducing with > > (ls-lisp-insert-directory nil '(97 108) nil (wildcard-to-regexp "b*.el") nil) > > but that fails with a different error since FILE can't be nil. More information was requested, but none was given within 28 weeks, so I'm closing this bug. If this is still an issue, please reply to this email (use "Reply to all" in your email client) and we can reopen the bug report. Best regards, Stefan Kangas