From: John Paul Wallington <jpw@gnu.org>
Subject: ls-lisp, dired and --dired switch problem
Date: Tue, 13 May 2003 14:26:34 +0100 [thread overview]
Message-ID: <E19FZne-0000Rf-00@indigo.shootybangbang.com> (raw)
eval the following:
(setq ls-lisp-use-insert-directory-program nil)
(require 'ls-lisp)
and run `dired'.
The listing isn't good (eg inverted order) because
`dired-insert-directory' heeds `dired-use-ls-dired' and concats
"--dired " on to the switches, and ls-lisp's `insert-directory' isn't
expecting it (and wants one letter args).
Maybe ls-lisp should frob `dired-use-ls-dired'. Or it could remove
the --dired switch in its `insert-directory' like below. WDYT?
*** /build/emacs/lisp/ls-lisp.el.~1.49.~ Thu May 1 15:46:13 2003
--- /build/emacs/lisp/ls-lisp.el Tue May 13 14:21:44 2003
***************
*** 216,221 ****
--- 216,224 ----
(if handler
(funcall handler 'insert-directory file switches
wildcard full-directory-p)
+ ;; remove --dired switch
+ (if (string-match "--dired " switches)
+ (setq switches (replace-match "" nil nil switches)))
;; Convert SWITCHES to a list of characters.
(setq switches (delete ?- (append switches nil)))
(if wildcard
next reply other threads:[~2003-05-13 13:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-13 13:26 John Paul Wallington [this message]
2003-05-14 21:04 ` ls-lisp, dired and --dired switch problem Richard Stallman
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=E19FZne-0000Rf-00@indigo.shootybangbang.com \
--to=jpw@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).