unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Problems setting dired-listing-switches variable
@ 2007-04-11 11:42 Paul Batt
  2007-04-11 12:01 ` Stein Arild Strømme
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Paul Batt @ 2007-04-11 11:42 UTC (permalink / raw)
  To: help-gnu-emacs

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. Any help?
Thank you, Paul 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems setting dired-listing-switches variable
  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 12:52 ` Peter Dyballa
  2007-04-11 22:45 ` Glenn Morris
  2 siblings, 1 reply; 7+ messages in thread
From: Stein Arild Strømme @ 2007-04-11 12:01 UTC (permalink / raw)
  To: help-gnu-emacs

[Paul Batt]

| 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. 

Try ^

SA
-- 
Stein Arild Strømme            +47 55584825, +47 95801887
Universitetet i Bergen                  Fax: +47 55589672     
Matematisk institutt, UiB     http://math.uib.no/stromme/         
Johs Brunsg 12, N-5008 BERGEN         stromme@math.uib.no

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems setting dired-listing-switches variable
  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 12:52 ` Peter Dyballa
  2007-04-11 22:45 ` Glenn Morris
  2 siblings, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2007-04-11 12:52 UTC (permalink / raw)
  To: Paul Batt; +Cc: help-gnu-emacs


Am 11.04.2007 um 13:42 schrieb Paul Batt:

> 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

ls -Al ?

--
Mit friedvollen Grüßen

   Pete

"There's no place like 127.0.0.1"
                      origin unknown

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems setting dired-listing-switches variable
  2007-04-11 12:01 ` Stein Arild Strømme
@ 2007-04-11 15:59   ` Paul Batt
  2007-04-11 22:07     ` Peter Dyballa
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Batt @ 2007-04-11 15:59 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 546 bytes --]

"Stein Arild "Strømme"" <stromme@math.uib.no> schrieb im Newsbeitrag 
news:jxuzm5fyva6.fsf@math.uib.no...
> [Paul Batt]
>
> | 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.
>
> Try ^

Yes, that changes to the parent directory. Very helpful, tks.

Still I'd like to know why --ignore= or --hide= in (dired-listing-switches) 
don't work. The emacs manual says they should.

Paul

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems setting dired-listing-switches variable
  2007-04-11 15:59   ` Paul Batt
@ 2007-04-11 22:07     ` Peter Dyballa
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2007-04-11 22:07 UTC (permalink / raw)
  To: Paul Batt; +Cc: help-gnu-emacs


Am 11.04.2007 um 17:59 schrieb Paul Batt:

> Still I'd like to know why --ignore= or --hide= in (dired-listing- 
> switches)
> don't work. The emacs manual says they should.

Could be you're trying to use setq or such to achieve the desired  
effect? The correct way is via the customise interface, i.e. in the  
end of ~/.emacs, starting with

	(custom-set-variables

you can add entries like

	 '(dired-listing-switches "-alN --ignore=PATTERN")

until a final

	)

is encountered. I have no idea what this PATTERN could look like, so  
I had on the command line no success. You can find access to the  
customise system by checking the value of the variable dired-listing- 
switches.

--
Mit friedvollen Grüßen

   Pete

      _o    o         o   o
    _<<     \\_/\_,   \\_ \\_/\_,
   (*)/(*) (*)   (*) (*) `-    (*)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems setting dired-listing-switches variable
  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 12:52 ` Peter Dyballa
@ 2007-04-11 22:45 ` Glenn Morris
  2007-04-12 15:38   ` Paul Batt
  2 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2007-04-11 22:45 UTC (permalink / raw)
  To: help-gnu-emacs

"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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems setting dired-listing-switches variable
  2007-04-11 22:45 ` Glenn Morris
@ 2007-04-12 15:38   ` Paul Batt
  0 siblings, 0 replies; 7+ messages in thread
From: Paul Batt @ 2007-04-12 15:38 UTC (permalink / raw)
  To: help-gnu-emacs

"Glenn Morris" <rgm+news@stanford.edu> schrieb im Newsbeitrag 
news:xh8xcywmx5.fsf@xoc2.stanford.EDU...
>
> Firstly, use:
>
> (setq dired-listing-switches "-al --ignore=.??*")

Bingo! Thank you.
Paul

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-04-12 15:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-04-12 15:38   ` Paul Batt

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).