From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: Problems setting dired-listing-switches variable Date: Wed, 11 Apr 2007 15:45:10 -0700 Organization: None Message-ID: References: <583vseF2evqtkU1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1176334574 6233 80.91.229.12 (11 Apr 2007 23:36:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2007 23:36:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 12 01:36:13 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HbmMG-0004fo-BP for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Apr 2007 01:36:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbmQM-0005tj-2Y for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Apr 2007 19:40:26 -0400 Original-Path: shelby.stanford.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: xoc2.stanford.edu Original-X-Trace: news.Stanford.EDU 1176331510 24885 171.64.109.31 (11 Apr 2007 22:45:10 GMT) Original-X-Complaints-To: news@news.stanford.edu X-Spook: 1 October double agent armor gold bullion Farabundo Marti X-Ran: W-3uQ`LLbS,ZbAsa`HG[1(VSM&TT=\Y\-.CL'1)uk0\WZ*ROj4Ga6+Wu{cjROZCbf=XZr. X-Hue: green X-Attribution: GM Mail-Copies-To: nobody User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cancel-Lock: sha1:VT8zODGfwzYAN140NpW+/yiNdbA= Original-Xref: shelby.stanford.edu gnu.emacs.help:146993 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42597 Archived-At: "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.