From: Glenn Morris <rgm+news@stanford.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Problems setting dired-listing-switches variable
Date: Wed, 11 Apr 2007 15:45:10 -0700 [thread overview]
Message-ID: <xh8xcywmx5.fsf@xoc2.stanford.EDU> (raw)
In-Reply-To: 583vseF2evqtkU1@mid.individual.net
"Paul Batt" wrote:
> I'd like to set the dired listing in such a way that all those
> filenames starting with a point don't show up. But the ..-directory
> should be there, otherwise I see no way to move along the directory
> tree. In the bash shell ls-parameters -al --ignore='.??*' do exactly
> that. The --ignore part of the parameter does not work however, when
> set to the dired-listing-switches variable.
Firstly, use:
(setq dired-listing-switches "-al --ignore=.??*")
Note the absence of '' in the ignore argument. You use these in bash
to protect the argument from expansion by the shell before it is ever
seen by the ls program. When called from Emacs (via call-process),
this does not apply, so if you have '' they will be interpreted
literally.
Secondly, if you are on Windows, this might not work because Emacs
uses ls emulation in lisp, which does not understand all the same
switches as "real" ls. See the doc of the function insert-directory to
see which ls Emacs is using. See also the variable
ls-lisp-use-insert-directory-program.
next prev parent reply other threads:[~2007-04-11 22:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-11 11:42 Problems setting dired-listing-switches variable Paul Batt
2007-04-11 12:01 ` Stein Arild Strømme
2007-04-11 15:59 ` Paul Batt
2007-04-11 22:07 ` Peter Dyballa
2007-04-11 12:52 ` Peter Dyballa
2007-04-11 22:45 ` Glenn Morris [this message]
2007-04-12 15:38 ` Paul Batt
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xh8xcywmx5.fsf@xoc2.stanford.EDU \
--to=rgm+news@stanford.edu \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.