GNU bug report logs - #58867
Fwd: 29.0.50; dired-readin: Wrong type argument: arrayp, nil

Previous Next

Package: emacs;

Reported by: Daan Ro <daanturo <at> gmail.com>

Date: Sat, 29 Oct 2022 16:28:01 UTC

Severity: normal

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 58867 <at> debbugs.gnu.org (full text, mbox):

From: daanturo <daanturo <at> gmail.com>
To: 58867 <at> debbugs.gnu.org
Subject: dired-readin: Wrong type argument: arrayp, nil
Date: Sat, 29 Oct 2022 23:50:01 +0700
-    (while (re-search-forward "^  /" nil t 1)
+    (while (re-search-forward
+            (if (memq system-type '(windows-nt ms-dos))
+                "^  \\([a-zA-Z]:/\\|//\\)"
+              "^  /")
+            nil t 1)
       (let ((bound (line-end-position))
             (segment-start (point))
             (inhibit-read-only t)
-            (dir "/"))
+            (dir (substring (match-string 1) 2)))


Substring group #1 doesn't exist for the regexp "^ /", which is the case to
    search for non-Windows environments.

-- 
Daanturo.





This bug report was last modified 2 years and 192 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.