help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where has the rwxr-xr-x gone from dired?


From: John Mastro
Subject: Re: Where has the rwxr-xr-x gone from dired?
Date: Fri, 17 Jun 2016 17:54:06 -0700

Davin Pearson <davin.pearson@gmail.com> wrote:
> When I untar my tarball I get the following file list: (ls -l)
>
> -rw-------  1 Davin Pearson None 1114 Jun 17 10:02 Makefile
> -rw-------  1 Davin Pearson None 4528 Jun 16 14:29 README.txt
> -rwxr-xr-x  1 Davin Pearson None  485 Jun 13 11:53 configure
> drwx------+ 1 Davin Pearson None    0 Jun 18  2016 dlisp
> drwx------+ 1 Davin Pearson None    0 Jun 18  2016 documentation
> drwx------+ 1 Davin Pearson None    0 Jun 17 10:01 install-stuff
>
> But when I view it in Emacs Version 24.5.1 I get the following output:
>
>   c:/home/hairy-lemon/output/davinpearson-com/binaries/java-training-wheels:
>   total used in directory 314 available 63772304
>   drwxrwxrwx  1 Davin Pearson  None             4096 06-17 23:47 .
>   drwxrwxrwx  1 Administrators Administrators 225280 06-17 23:44 ..
>   drwxrwxrwx  1 Davin Pearson  None            65536 2016-06-18  dlisp
>   drwxrwxrwx  1 Davin Pearson  None            16384 2016-06-18  documentation
>   drwxrwxrwx  1 Davin Pearson  None             4096 06-17 10:01 install-stuff
>   -rw-rw-rw-  1 Davin Pearson  None              485 06-13 11:53 configure
>   -rw-rw-rw-  1 Davin Pearson  None             1114 06-17 10:02 Makefile
>   -rw-rw-rw-  1 Davin Pearson  None             4528 06-16 14:29 README.txt
>
> Where has the -rwxr-xr-x gone from the file configure?

On Windows, Emacs by default uses a Lisp implementation of (the
most relevant parts of) ls, since Windows doesn't come with ls. Most
likely, Emacs's `ls-lisp' and your ls binary simply map Windows's
permissions to Unix-like permissions differently.

If that ls binary is on your PATH, you may be able to have Emacs use it
rather than `ls-lisp':

(with-eval-after-load 'ls-lisp
  (setq ls-lisp-use-insert-directory-program t))

That's what I do on Windows, using ls from Cygwin. There are a potential
issues from mixing a native Windows Emacs binary with Cygwin binaries,
but it's worked well enough for me.

There's also a Cygwin build of Emacs that uses a native Windows GUI.
I've been meaning to try it and that may be an option for you too.

        John



reply via email to

[Prev in Thread] Current Thread [Next in Thread]