Subject: Re: bug#15028: 24.3.50; C-u M-x dired Lisp error: (wrong-type-argument stringp nil)

From: Glenn Morris <[email-masked]>
Date: Mon, 05 Aug 2013 16:33:55 -0400

Thomas Weickert wrote:

>   C-u M-x dired
>   with ls options '-alR' for any directory results in:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   file-name-absolute-p(nil)

I can't reproduce this, but I imagine this will fix it:

*** lisp/dired.el	2013-08-05 18:05:46 +0000
--- lisp/dired.el	2013-08-05 20:31:42 +0000
***************
*** 1225,1231 ****
        (save-excursion
  	(goto-char opoint)
  	(when (and (or hdr wildcard)
! 		   (not (and (looking-at-p "^  \\(.*\\):$")
  			     (file-name-absolute-p (match-string 1)))))
  	  ;; Note that dired-build-subdir-alist will replace the name
  	  ;; by its expansion, so it does not matter whether what we insert
--- 1225,1231 ----
        (save-excursion
  	(goto-char opoint)
  	(when (and (or hdr wildcard)
! 		   (not (and (looking-at "^  \\(.*\\):$")
  			     (file-name-absolute-p (match-string 1)))))
  	  ;; Note that dired-build-subdir-alist will replace the name
  	  ;; by its expansion, so it does not matter whether what we insert