* lisp/dired-x.el (dired-mark-sexp): Unbreak for systems where ls
authorGlenn Morris <rgm@gnu.org>
Tue, 10 Sep 2013 01:28:01 +0000 (21:28 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 10 Sep 2013 01:28:01 +0000 (21:28 -0400)
returns "alternate access method" in mode (eg "-rw-r--r--.").

It's still pretty broken though, eg
http://debbugs.gnu.org/13575

lisp/ChangeLog
lisp/dired-x.el

index a7cb40f..a89b4fb 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-10  Glenn Morris  <rgm@gnu.org>
+
+       * dired-x.el (dired-mark-sexp): Unbreak for systems where ls
+       returns "alternate access method" in mode (eg "-rw-r--r--.").
+
 2013-09-08  Glenn Morris  <rgm@gnu.org>
 
        * saveplace.el (load-save-place-alist-from-file):
index c6ecbf1..c15f3b5 100644 (file)
@@ -1459,6 +1459,9 @@ to mark all zero length files."
                   s nil))
           (setq mode (buffer-substring (point) (+ mode-len (point))))
           (forward-char mode-len)
+          ;; Skip any extended attributes marker ("." or "+").
+          (or (looking-at " ")
+              (forward-char 1))
           (setq nlink (read (current-buffer)))
           ;; Karsten Wenger <kw@cis.uni-muenchen.de> fixed uid.
           (setq uid (buffer-substring (1+ (point))