all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Damon Permezel <dap@zepherin.com>
Cc: 37236@debbugs.gnu.org
Subject: bug#37236: 25.1; dired fails on pCloud drive
Date: Fri, 30 Aug 2019 18:20:48 +0300	[thread overview]
Message-ID: <83blw6addb.fsf@gnu.org> (raw)
In-Reply-To: <8EC3EC77-26FE-4AC8-9A7D-0F56A09935C6@zepherin.com> (message from Damon Permezel on Fri, 30 Aug 2019 18:14:03 +1000)

> From: Damon Permezel <dap@zepherin.com>
> Date: Fri, 30 Aug 2019 18:14:03 +1000
> 
> M-x dired ~/pCloud\ Drive
> 
> Debugger entered--Lisp error: (wrong-type-argument consp nil)
>   ls-lisp-sanitize(((".VolumeIcon.icns" nil 1 "dap" "wheel" (23900 56314 0 0) (23900 56314 0 0) (23900 56314 0 0) 1708546 "-r--r--r--" t 53210 855638019) (".DS_Store" nil 1 "dap" "staff" (23911 33443 0 0) (23911 33443 0 0) (23911 33443 0 0) 8196 "-rw-r--r--" t 53136 855638019) ("Getting started with pCloud.pdf" nil 1 "dap" "staff" (23894 11575 0 0) (23894 11575 0 0) (23894 11575 0 0) 22442353 "-rw-r--r--" t 53209 855638019) ("Public Folder" t 2 "dap" "staff" (23911 34577 0 0) (23911 34577 0 0) (23911 34577 0 0) 4096 "drwxr-xr-x" t 53208 855638019) ("Crypto Folder" t 3 "dap" "staff" (23912 55020 0 0) (23912 55020 0 0) (23912 55020 0 0) 4096 "drwxr-xr-x" t 53112 855638019) ("CryptoMator" t 3 "dap" "staff" (23899 61629 0 0) (23899 61629 0 0) (23899 61629 0 0) 4096 "drwxr-xr-x" t 53107 85563
 8019) ("rclone" t 5 "dap" "staff" (23894 12721 0 0) (23894 12721 0 0) (23894 12721 0 0) 4096 "drwxr-xr-x" t 308 855638019) ("My Videos" t 2 "dap" "staff" (23894 11575 0 0) (23894 11575 0 0) (23894 11575 0 0) 4096 "drwxr-xr-x" t 53207 855638019) ("My Pictures" t 2 "dap" "staff" (23894 11575 0 0) (23894 11575 0 0) (23894 11575 0 0) 4096 "drwxr-xr-x" t 53206 855638019) ("My Music" t 2 "dap" "staff" (23894 11575 0 0) (23894 11575 0 0) (23894 11575 0 0) 4096 "drwxr-xr-x" t 53205 855638019) ("." t 9 "dap" "staff" (23911 34577 0 0) (23911 34577 0 0) (23911 34577 0 0) 4096 "drwxr-xr-x" t 1 855638019)))
>   ls-lisp-insert-directory("/Users/dap/pCloud Drive/" (97 108) nil nil t)
>   ls-lisp--insert-directory(#[...

ls-lisp isn't prepared for a situation where a directory has a "."
entry, but doesn't have a ".." entry.

Does the patch below fix the problem?

diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el
index e802c24..8491181 100644
--- a/lisp/ls-lisp.el
+++ b/lisp/ls-lisp.el
@@ -517,7 +517,8 @@ ls-lisp-sanitize
 are copied from the \".\" entry, if they are non-nil.  Otherwise,
 the offending element is removed from the list, as are any
 elements for other directory entries with nil attributes."
-  (if (and (null (cdr (assoc ".." file-alist)))
+  (if (and (consp (assoc ".." file-alist))
+           (null (cdr (assoc ".." file-alist)))
 	   (cdr (assoc "." file-alist)))
       (setcdr (assoc ".." file-alist) (cdr (assoc "." file-alist))))
   (rassq-delete-all nil file-alist))





  reply	other threads:[~2019-08-30 15:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-30  8:14 bug#37236: 25.1; dired fails on pCloud drive Damon Permezel
2019-08-30 15:20 ` Eli Zaretskii [this message]
2019-08-31  6:41   ` Damon Permezel
2019-08-31  6:56     ` Eli Zaretskii
2019-08-31  6:58       ` Damon Permezel

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=83blw6addb.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=37236@debbugs.gnu.org \
    --cc=dap@zepherin.com \
    /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.