From unknown Sat Jun 21 10:27:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#7027 <7027@debbugs.gnu.org> To: bug#7027 <7027@debbugs.gnu.org> Subject: Status: 24.0.50; Dired error (wrong-type-arg stringp nil) with cons arg with wildcard in name Reply-To: bug#7027 <7027@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:27:12 +0000 retitle 7027 24.0.50; Dired error (wrong-type-arg stringp nil) with cons ar= g with wildcard in name reassign 7027 emacs submitter 7027 "Drew Adams" severity 7027 normal tag 7027 easy moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 12 18:06:54 2010 Received: (at submit) by debbugs.gnu.org; 12 Sep 2010 22:06:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuuhK-00051T-En for submit@debbugs.gnu.org; Sun, 12 Sep 2010 18:06:54 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuuhI-00051K-6E for submit@debbugs.gnu.org; Sun, 12 Sep 2010 18:06:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OuujN-0005p7-73 for submit@debbugs.gnu.org; Sun, 12 Sep 2010 18:09:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:58744) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuujM-0005ov-FL for submit@debbugs.gnu.org; Sun, 12 Sep 2010 18:09:01 -0400 Received: from [140.186.70.92] (port=46741 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OuujK-00087f-12 for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2010 18:08:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OuujH-0005nx-9l for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2010 18:08:56 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:28612) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuujH-0005nd-2H for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2010 18:08:55 -0400 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o8CM8qOI025274 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 12 Sep 2010 22:08:53 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o8CJ5iDZ003796 for ; Sun, 12 Sep 2010 22:08:52 GMT Received: from abhmt016.oracle.com by acsmt353.oracle.com with ESMTP id 598189291284329309; Sun, 12 Sep 2010 15:08:29 -0700 Received: from dradamslap1 (/10.159.222.122) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 12 Sep 2010 15:08:28 -0700 From: "Drew Adams" To: Subject: 24.0.50; Dired error (wrong-type-arg stringp nil) with cons arg with wildcard in name Date: Sun, 12 Sep 2010 15:08:23 -0700 Message-ID: <3F599FB93CFD4CA1BDAA1A6E038C7B9F@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: ActSxwRzl3a9GAmHRJiGHC1klJIzFw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) emacs -Q 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) The problem is in `ls-lisp-insert-directory': (defun ls-lisp-insert-directory (file switches time-index wildcard-regexp full-directory-p) "..." (if (or wildcard-regexp full-directory-p) (let* ((dir (file-name-as-directory file)) ...)))) 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. A proper message should be shown (but no error raised) saying, as for any non-existent file, "b*.el: doesn't exist or is inaccessible". And processing should then continue, displaying Dired with all of the existing files that correspond to the names in the cons arg (e.g. 111.el in this case). In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-09-06 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include' From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 11 20:22:24 2017 Received: (at control) by debbugs.gnu.org; 12 Jun 2017 00:22:24 +0000 Received: from localhost ([127.0.0.1]:41591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKD7g-0004JS-Kz for submit@debbugs.gnu.org; Sun, 11 Jun 2017 20:22:24 -0400 Received: from mail-io0-f174.google.com ([209.85.223.174]:34948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKD7e-0004JD-LC for control@debbugs.gnu.org; Sun, 11 Jun 2017 20:22:23 -0400 Received: by mail-io0-f174.google.com with SMTP id k93so49334682ioi.2 for ; Sun, 11 Jun 2017 17:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=P9AsXYRUzc7RWlMJ1zjiOMSkpc8fTd//Ef+HrJFDdrw=; b=KbfJlSh4OEC/o6qevN7ia58OEUxrM3qbx0Q0ocPNPZFNupO4aJy5azEAxLRRBaIw6p VkZ55t/sab8rV6bHyN88kLDqWXD8lE8f7Wx0w8x2BzHf0OvkASbS8Z+rH0FLew9lURx5 Lw6QzzJQ7OWxJgKXBcxBIwYDE637dNAd4TNeVEMY6Irow+7m1wLCxwxU8w4dhfu37A+z ZG0gk+jtk/Ypdon7tjbU5NgsSQ5q7N3A8sOcjSEW9HGzyAquRp58AjZgn7tksL5mP9hJ Ntm4xo0f9KA36qKOUsW5FcDApd3C+q5hyi9MWj2jxCmPgeP5WYoAdoVRTuqHGl1nxSRf ZpHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=P9AsXYRUzc7RWlMJ1zjiOMSkpc8fTd//Ef+HrJFDdrw=; b=mhY+qi1tbWJGujZKo1PDLNoxKHse6oYX9JRjavGkEGl66qA4dbD8x0iaI9pPFZNXtp BMnTxs0LuvgMVQQo77fi6KiYXnX2ouN9SDUVFl8iSc4vT+Xl7zJMetM8Trs8gw1cg+eO 0M5CbKEfcKfCMUFCsDilo/Ig7FhwbosTUpPXXznI/YnhgI919uRpaSg4WaX0Y8RBjtgI BAZzAhm/1e20sH1/AD4dPEQobla0NHVk7SC9Y+yfA8RT4RZcps1ARL2051qIkcTV5im0 8z1P3fmVoxQu1Cy4jvP2fSNIcQ9T1rGt1/WipMKgRiE3UF73y7dSdrCues0j8DkgbccG Teog== X-Gm-Message-State: AODbwcDZOGhdzWi1WYvEp+dljmCKKuOt0myjD//DjVprAZi8dJXi+h9/ mzVQBV/Ddm6PNM8f X-Received: by 10.107.164.219 with SMTP id d88mr40268256ioj.157.1497226937155; Sun, 11 Jun 2017 17:22:17 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id e12sm5512356itd.0.2017.06.11.17.22.16 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Jun 2017 17:22:16 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #7027 Date: Sun, 11 Jun 2017 20:23:55 -0400 Message-ID: <877f0iuk84.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 7027 + easy quit From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 01 15:59:44 2019 Received: (at 7027) by debbugs.gnu.org; 1 Oct 2019 19:59:44 +0000 Received: from localhost ([127.0.0.1]:34875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFOJE-0000Mo-0h for submit@debbugs.gnu.org; Tue, 01 Oct 2019 15:59:44 -0400 Received: from quimby.gnus.org ([80.91.231.51]:59300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFOJB-0000Ma-Iz for 7027@debbugs.gnu.org; Tue, 01 Oct 2019 15:59:42 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iFOJ7-0007SU-De; Tue, 01 Oct 2019 21:59:39 +0200 From: Lars Ingebrigtsen To: "Drew Adams" Subject: Re: bug#7027: 24.0.50; Dired error (wrong-type-arg stringp nil) with cons arg with wildcard in name References: <3F599FB93CFD4CA1BDAA1A6E038C7B9F@us.oracle.com> Date: Tue, 01 Oct 2019 21:59:37 +0200 In-Reply-To: <3F599FB93CFD4CA1BDAA1A6E038C7B9F@us.oracle.com> (Drew Adams's message of "Sun, 12 Sep 2010 15:08:23 -0700") Message-ID: <87r23ww82e.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 7027 Cc: 7027@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "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. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 01 15:59:50 2019 Received: (at control) by debbugs.gnu.org; 1 Oct 2019 19:59:50 +0000 Received: from localhost ([127.0.0.1]:34878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFOJK-0000NH-8w for submit@debbugs.gnu.org; Tue, 01 Oct 2019 15:59:50 -0400 Received: from quimby.gnus.org ([80.91.231.51]:59316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFOJI-0000N6-7o for control@debbugs.gnu.org; Tue, 01 Oct 2019 15:59:48 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iFOJF-0007Sf-EI for control@debbugs.gnu.org; Tue, 01 Oct 2019 21:59:47 +0200 Date: Tue, 01 Oct 2019 21:59:45 +0200 Message-Id: <87pnjgw826.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #7027 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 7027 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 7027 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 17 06:22:37 2020 Received: (at 7027-done) by debbugs.gnu.org; 17 Apr 2020 10:22:37 +0000 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 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==; 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 From: Stefan Kangas To: Lars Ingebrigtsen Subject: Re: bug#7027: 24.0.50; Dired error (wrong-type-arg stringp nil) with cons arg with wildcard in name In-Reply-To: <87r23ww82e.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 01 Oct 2019 21:59:37 +0200") References: <3F599FB93CFD4CA1BDAA1A6E038C7B9F@us.oracle.com> <87r23ww82e.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Fri, 17 Apr 2020 12:22:25 +0200 Message-ID: <87y2qutnry.fsf@stefankangas.se> MIME-Version: 1.0 Content-Type: text/plain 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-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 7027-done Cc: 7027-done@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From unknown Sat Jun 21 10:27:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 15 May 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator