all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: daanturo <daanturo@gmail.com>
To: 58867@debbugs.gnu.org
Subject: bug#58867: dired-readin: Wrong type argument: arrayp, nil
Date: Sat, 29 Oct 2022 23:50:01 +0700	[thread overview]
Message-ID: <66a74bca-2a0e-fcf1-aba6-0a020b845677@gmail.com> (raw)
In-Reply-To: <CAGNN0nA475Dk=LfSivugPYUhmhDWA_d6PGkKcnCo8RFcBnWJ7Q@mail.gmail.com>

-    (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.






  reply	other threads:[~2022-10-29 16:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-29 14:12 bug#58870: 29.0.50; dired-readin: Wrong type argument: arrayp, nil Taku Tekato
     [not found] ` <CADWEkPfvWM6QruL9YghK6gN17qx_F1AJu6E0SAAK7wV7R6QfQg@mail.gmail.com>
2022-10-29 16:27   ` bug#58867: Fwd: " Daan Ro
2022-10-29 16:50     ` daanturo [this message]
2022-10-29 16:54     ` Eli Zaretskii
2022-11-12 20:34       ` Stefan Kangas
2022-10-29 19:01 ` bug#58870: " Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66a74bca-2a0e-fcf1-aba6-0a020b845677@gmail.com \
    --to=daanturo@gmail.com \
    --cc=58867@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.