From: Chunyang Xu <mail@xuchunyang.me>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 25485@debbugs.gnu.org
Subject: bug#25485: 25.1; Having trouble setting --time-style in dired-listing-switches
Date: Fri, 20 Jan 2017 01:20:45 +0800 [thread overview]
Message-ID: <m260lbvudu.fsf@xuchunyang.me> (raw)
In-Reply-To: <83inpb6nco.fsf@gnu.org>
Eli Zaretskii writes:
>> From: Chunyang Xu <mail@xuchunyang.me>
>> Date: Thu, 19 Jan 2017 22:34:31 +0800
>>
>> I want to custom the file timestamps used in dired through the option:
>>
>> --time-style='+%_m月 %d %H:%M'
>>
>> then I adjust `dired-listing-switches' accordingly:
>>
>> (setq dired-listing-switches "-al --time-style='+%_m月 %d %H:%M'")
>>
>> However, it doesn't work, it signals an error, here is the Backtrace:
>
> Isn't --time-style a GNU ls extension? You are on Darwin, so do you
> have GNU ls installed? What happens if you use that option from the
> shell prompt?
Yes, and yes, and I have set shell and Emacs to use GNU ls, thus in
shell (via M-x shell) it works like expected:
~$ cd /tmp
/tmp$ ls -al --time-style='+%_m月 %d %H:%M'
total 4
drwxrwxrwt 8 root wheel 272 1月 20 00:49 .
drwxr-xr-x 6 root wheel 204 11月 15 13:17 ..
-rw-rw-rw- 1 xcy wheel 0 1月 16 13:40 .keystone_install_lock
drwx------ 3 xcy wheel 102 1月 16 13:40 com.apple.launchd.404wZSYm30
drwx------ 3 xcy wheel 102 1月 16 13:40 com.apple.launchd.ORTswTb0KX
drwx------ 3 xcy wheel 102 1月 16 13:40 com.apple.launchd.WcFjcyxZ4I
drwx------ 3 xcy wheel 102 1月 16 13:40 com.apple.launchd.g1ImzMVLVC
-rw-r--r-- 1 xcy wheel 985 1月 20 01:10 mail.log
/tmp$
next prev parent reply other threads:[~2017-01-19 17:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-19 14:34 bug#25485: 25.1; Having trouble setting --time-style in dired-listing-switches Chunyang Xu
2017-01-19 16:11 ` Eli Zaretskii
2017-01-19 17:20 ` Chunyang Xu [this message]
2017-01-20 7:43 ` Eli Zaretskii
2017-01-27 13:53 ` Eli Zaretskii
2017-01-28 1:01 ` Chunyang Xu
2017-01-28 7:22 ` Eli Zaretskii
2017-02-04 10:05 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m260lbvudu.fsf@xuchunyang.me \
--to=mail@xuchunyang.me \
--cc=25485@debbugs.gnu.org \
--cc=eliz@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).