all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* dired without -l, wdired fails
@ 2010-02-15 12:55 Andreas Roehler
  2010-02-15 13:10 ` Tassilo Horn
  0 siblings, 1 reply; 25+ messages in thread
From: Andreas Roehler @ 2010-02-15 12:55 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

if `dired' is called without the `-l' switch,
wdired... no longer works, buffer isn't editable.

Think should file a bug-report. Just asking here first, maybe
I miss something.

Thanks

Andreas




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

* Re: dired without -l, wdired fails
  2010-02-15 12:55 Andreas Roehler
@ 2010-02-15 13:10 ` Tassilo Horn
  2010-02-15 13:38   ` Andreas Roehler
       [not found]   ` <mailman.1279.1266241033.14305.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 25+ messages in thread
From: Tassilo Horn @ 2010-02-15 13:10 UTC (permalink / raw)
  To: Andreas Roehler; +Cc: help-gnu-emacs

Andreas Roehler <andreas.roehler@online.de> writes:

Hi Andreas,

> if `dired' is called without the `-l' switch,
> wdired... no longer works, buffer isn't editable.

Does dired work without -l?  At least the docs say it MUST contain -l.

,----[ C-h v dired-listing-switches RET ]
| dired-listing-switches is a variable defined in `dired.el'.
| Its value is "-aDlh"
| 
| Documentation:
| Switches passed to `ls' for Dired.  MUST contain the `l' option.
| May contain all other options that don't contradict `-l';
| may contain even `F', `b', `i' and `s'.  See also the variable
| `dired-ls-F-marks-symlinks' concerning the `F' switch.
| On systems such as MS-DOS and MS-Windows, which use `ls' emulation in Lisp,
| some of the `ls' switches are not supported; see the doc string of
| `insert-directory' in `ls-lisp.el' for more details.
`----

Bye,
Tassilo




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

* Re: dired without -l, wdired fails
  2010-02-15 13:10 ` Tassilo Horn
@ 2010-02-15 13:38   ` Andreas Roehler
  2010-02-15 14:43     ` Tassilo Horn
       [not found]   ` <mailman.1279.1266241033.14305.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 25+ messages in thread
From: Andreas Roehler @ 2010-02-15 13:38 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: help-gnu-emacs

Tassilo Horn wrote:
> Andreas Roehler <andreas.roehler@online.de> writes:
> 
> Hi Andreas,
> 
>> if `dired' is called without the `-l' switch,
>> wdired... no longer works, buffer isn't editable.
> 
> Does dired work without -l?  At least the docs say it MUST contain -l.
> 
> ,----[ C-h v dired-listing-switches RET ]
> | dired-listing-switches is a variable defined in `dired.el'.
> | Its value is "-aDlh"
> | 
> | Documentation:
> | Switches passed to `ls' for Dired.  MUST contain the `l' option.
> | May contain all other options that don't contradict `-l';
> | may contain even `F', `b', `i' and `s'.  See also the variable
> | `dired-ls-F-marks-symlinks' concerning the `F' switch.
> | On systems such as MS-DOS and MS-Windows, which use `ls' emulation in Lisp,
> | some of the `ls' switches are not supported; see the doc string of
> | `insert-directory' in `ls-lisp.el' for more details.
> `----
> 
> Bye,
> Tassilo
> 


Hi Tassilo,

you are right. It's a convenience-bug anyway IMO.

IIRC `dired' basically displays the output of
shell-command `ls [options]' in a buffer, afterwards working
with, send it back to the shell.

From this I never understood this limitation, which looks
inconvenient in many respects.

Thanks

Andreas





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

* Re: dired without -l, wdired fails
  2010-02-15 13:38   ` Andreas Roehler
@ 2010-02-15 14:43     ` Tassilo Horn
  0 siblings, 0 replies; 25+ messages in thread
From: Tassilo Horn @ 2010-02-15 14:43 UTC (permalink / raw)
  To: Andreas Roehler; +Cc: help-gnu-emacs

Andreas Roehler <andreas.roehler@online.de> writes:

Hi Andreas,

>>> if `dired' is called without the `-l' switch, wdired... no longer
>>> works, buffer isn't editable.
>> 
>> Does dired work without -l?  At least the docs say it MUST contain
>> -l.
>> 
>> ,----[ C-h v dired-listing-switches RET ]
>> | dired-listing-switches is a variable defined in `dired.el'.
>> | Its value is "-aDlh"
>> | 
>> | Documentation:
>> | Switches passed to `ls' for Dired.  MUST contain the `l' option.
>> | May contain all other options that don't contradict `-l';
>> | may contain even `F', `b', `i' and `s'.  See also the variable
>> | `dired-ls-F-marks-symlinks' concerning the `F' switch.
>> | On systems such as MS-DOS and MS-Windows, which use `ls' emulation in Lisp,
>> | some of the `ls' switches are not supported; see the doc string of
>> | `insert-directory' in `ls-lisp.el' for more details.
>> `----
>
> you are right. It's a convenience-bug anyway IMO.
>
> IIRC `dired' basically displays the output of shell-command `ls
> [options]' in a buffer, afterwards working with, send it back to the
> shell.
>
> From this I never understood this limitation, which looks inconvenient
> in many respects.

By default the switches also contain the -D option, which are described
as follows:

,----[ (info "(coreutils)What information is listed") ]
| `-D'
| `--dired'
|      With the long listing (`-l') format, print an additional line after
|      the main output:
| 
|           //DIRED// BEG1 END1 BEG2 END2 ...
| 
|      The BEGN and ENDN are unsigned integers that record the byte
|      position of the beginning and end of each file name in the output.
|      This makes it easy for Emacs to find the names, even when they
|      contain unusual characters such as space or newline, without fancy
|      searching.
`----

That option requires -l, although I don't see why.  But that may be the
cause.

Bye,
Tassilo




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

* Re: dired without -l, wdired fails
       [not found] <mailman.1277.1266238414.14305.help-gnu-emacs@gnu.org>
@ 2010-02-16  6:01 ` Tim X
  0 siblings, 0 replies; 25+ messages in thread
From: Tim X @ 2010-02-16  6:01 UTC (permalink / raw)
  To: help-gnu-emacs

Andreas Roehler <andreas.roehler@online.de> writes:

> Hi,
>
> if `dired' is called without the `-l' switch,
> wdired... no longer works, buffer isn't editable.
>
> Think should file a bug-report. Just asking here first, maybe
> I miss something.
>
> Thanks
>

Not a bug - from the docs 

,----[ C-h v dired-listing-switches RET ]
| dired-listing-switches is a variable defined in `dired.el'.
| Its value is "-l"
| 
| Documentation:
| Switches passed to `ls' for Dired.  MUST contain the `l' option.
| May contain all other options that don't contradict `-l';
| may contain even `F', `b', `i' and `s'.  See also the variable
| `dired-ls-F-marks-symlinks' concerning the `F' switch.
| On systems such as MS-DOS and MS-Windows, which use `ls' emulation in Lisp,
| some of the `ls' switches are not supported; see the doc string of
| `insert-directory' in `ls-lisp.el' for more details.
| 
| You can customize this variable.
| 
| [back]
`----

HTH 

Tim
>
>

-- 
tcross (at) rapttech dot com dot au


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

* Re: dired without -l, wdired fails
       [not found]   ` <mailman.1279.1266241033.14305.help-gnu-emacs@gnu.org>
@ 2010-02-16  6:17     ` Tim X
  2010-02-16 10:41       ` Andreas Röhler
       [not found]       ` <mailman.1323.1266316798.14305.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 25+ messages in thread
From: Tim X @ 2010-02-16  6:17 UTC (permalink / raw)
  To: help-gnu-emacs

Andreas Roehler <andreas.roehler@online.de> writes:

> Tassilo Horn wrote:
>> Andreas Roehler <andreas.roehler@online.de> writes:
>> 
>
> IIRC `dired' basically displays the output of
> shell-command `ls [options]' in a buffer, afterwards working
> with, send it back to the shell.
>
> From this I never understood this limitation, which looks
> inconvenient in many respects.
>
Noting of course taht there is also a lisp version of 'ls', which
provides this functionality on non-unix like platforms and provides some
additional functionality on platforms that do have a shell based 'ls'. 

My guess is that by forcing the -l switch, you get a fairly standard and
easy to parse output, making the code easier to maintain. Without -l,
you have to have more code to handle the parsing of the output and
possibly even more problematic, more code to handle the display and
movement within that display etc. 

Tim



-- 
tcross (at) rapttech dot com dot au


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

* Re: dired without -l, wdired fails
  2010-02-16  6:17     ` Tim X
@ 2010-02-16 10:41       ` Andreas Röhler
  2010-02-17 10:48         ` Bernardo
       [not found]       ` <mailman.1323.1266316798.14305.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 25+ messages in thread
From: Andreas Röhler @ 2010-02-16 10:41 UTC (permalink / raw)
  To: help-gnu-emacs

Tim X wrote:
> Andreas Roehler <andreas.roehler@online.de> writes:
> 
>> Tassilo Horn wrote:
>>> Andreas Roehler <andreas.roehler@online.de> writes:
>>>
>> IIRC `dired' basically displays the output of
>> shell-command `ls [options]' in a buffer, afterwards working
>> with, send it back to the shell.
>>
>> From this I never understood this limitation, which looks
>> inconvenient in many respects.
>>
> Noting of course taht there is also a lisp version of 'ls', which
> provides this functionality on non-unix like platforms and provides some
> additional functionality on platforms that do have a shell based 'ls'. 

Ah, thanks, remember faintly now... :-)


> 
> My guess is that by forcing the -l switch, you get a fairly standard and
> easy to parse output, making the code easier to maintain. Without -l,
> you have to have more code to handle the parsing of the output and
> possibly even more problematic, more code to handle the display and
> movement within that display etc. 

Sometimes I like to see just `ls'-output. Would be great if other dired-functions work than too.

Andreas

> 
> Tim
> 
> 
> 





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

* Re: dired without -l, wdired fails
       [not found]       ` <mailman.1323.1266316798.14305.help-gnu-emacs@gnu.org>
@ 2010-02-16 14:28         ` Stefan Monnier
  2010-02-16 17:57           ` Andreas Röhler
  0 siblings, 1 reply; 25+ messages in thread
From: Stefan Monnier @ 2010-02-16 14:28 UTC (permalink / raw)
  To: help-gnu-emacs

> Sometimes I like to see just `ls'-output. Would be great if other
> dired-functions work than too.

Plain "ls" output is difficult to parse reliably (though an appropriate
"ls --dired" would be fine, of course, and a Lisp implementation would
work as well).  OTOH "ls -1" is OK and should to work just fine with
`dired-virtual'.


        Stefan


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

* Re: dired without -l, wdired fails
  2010-02-16 14:28         ` Stefan Monnier
@ 2010-02-16 17:57           ` Andreas Röhler
  2010-02-16 23:01             ` Stefan Monnier
       [not found]             ` <mailman.1361.1266361317.14305.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 25+ messages in thread
From: Andreas Röhler @ 2010-02-16 17:57 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: help-gnu-emacs

Stefan Monnier wrote:
>> Sometimes I like to see just `ls'-output. Would be great if other
>> dired-functions work than too.
> 
> Plain "ls" output is difficult to parse reliably (though an appropriate
> "ls --dired" would be fine, of course, and a Lisp implementation would
> work as well).  OTOH "ls -1" is OK and should to work just fine with
> `dired-virtual'.
> 
> 
>         Stefan
> 

Hi Stefan, thanks,

should I make a bug report for the issue?

Andreas




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

* Re: dired without -l, wdired fails
  2010-02-16 17:57           ` Andreas Röhler
@ 2010-02-16 23:01             ` Stefan Monnier
  2010-02-17  8:42               ` Andreas Röhler
       [not found]             ` <mailman.1361.1266361317.14305.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 25+ messages in thread
From: Stefan Monnier @ 2010-02-16 23:01 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: help-gnu-emacs

>>> Sometimes I like to see just `ls'-output. Would be great if other
>>> dired-functions work than too.
>> Plain "ls" output is difficult to parse reliably (though an appropriate
>> "ls --dired" would be fine, of course, and a Lisp implementation would
>> work as well).  OTOH "ls -1" is OK and should to work just fine with
>> `dired-virtual'.
> should I make a bug report for the issue?

I don't see a bug in this thread, but maybe it's because I haven't paid
enough attention.


        Stefan




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

* Re: dired without -l, wdired fails
       [not found]             ` <mailman.1361.1266361317.14305.help-gnu-emacs@gnu.org>
@ 2010-02-17  6:34               ` Tim X
  0 siblings, 0 replies; 25+ messages in thread
From: Tim X @ 2010-02-17  6:34 UTC (permalink / raw)
  To: help-gnu-emacs

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>>>> Sometimes I like to see just `ls'-output. Would be great if other
>>>> dired-functions work than too.
>>> Plain "ls" output is difficult to parse reliably (though an appropriate
>>> "ls --dired" would be fine, of course, and a Lisp implementation would
>>> work as well).  OTOH "ls -1" is OK and should to work just fine with
>>> `dired-virtual'.
>> should I make a bug report for the issue?
>
> I don't see a bug in this thread, but maybe it's because I haven't paid
> enough attention.
>
>
>         Stefan
>

I don't believe there is any bug. Possibly a feature request, but no
bug.

Tim
>

-- 
tcross (at) rapttech dot com dot au


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

* Re: dired without -l, wdired fails
  2010-02-16 23:01             ` Stefan Monnier
@ 2010-02-17  8:42               ` Andreas Röhler
  0 siblings, 0 replies; 25+ messages in thread
From: Andreas Röhler @ 2010-02-17  8:42 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: help-gnu-emacs

Stefan Monnier wrote:
>>>> Sometimes I like to see just `ls'-output. Would be great if other
>>>> dired-functions work than too.
>>> Plain "ls" output is difficult to parse reliably (though an appropriate
>>> "ls --dired" would be fine, of course, and a Lisp implementation would
>>> work as well).  OTOH "ls -1" is OK and should to work just fine with
>>> `dired-virtual'.
>> should I make a bug report for the issue?
> 
> I don't see a bug in this thread, but maybe it's because I haven't paid
> enough attention.
> 
> 
>         Stefan
> 


When trying edits in wdired-mode, get an error "Text is read-only" in all cases mentioned above,
while mode-line displays "(Editable Dired...)"

Andreas




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

* Re: dired without -l, wdired fails
  2010-02-16 10:41       ` Andreas Röhler
@ 2010-02-17 10:48         ` Bernardo
  2010-02-17 12:15           ` Andreas Röhler
       [not found]           ` <mailman.1388.1266408803.14305.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 25+ messages in thread
From: Bernardo @ 2010-02-17 10:48 UTC (permalink / raw)
  To: help-gnu-emacs

> 
> Sometimes I like to see just `ls'-output. 

M-x list-directory or M-x ffap-list-directory (C-x C-d) may be of 
interest in this case




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

* Re: dired without -l, wdired fails
  2010-02-17 10:48         ` Bernardo
@ 2010-02-17 12:15           ` Andreas Röhler
       [not found]           ` <mailman.1388.1266408803.14305.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 25+ messages in thread
From: Andreas Röhler @ 2010-02-17 12:15 UTC (permalink / raw)
  To: help-gnu-emacs

Bernardo wrote:
>>
>> Sometimes I like to see just `ls'-output. 
> 
> M-x list-directory or M-x ffap-list-directory (C-x C-d) may be of
> interest in this case
> 
> 
> 

Hhm, thanks reminding me at that.
However, find dired more convenient, as it permits the change of dired-listing-switches with C-u
on the fly.

Setting it to pure `ls' or `ls -1' as Stefan suggested, works fine so far.
It's just, wdired doesn't work then any more.

Andreas





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

* Re: dired without -l, wdired fails
       [not found]           ` <mailman.1388.1266408803.14305.help-gnu-emacs@gnu.org>
@ 2010-02-17 15:01             ` Stefan Monnier
  2010-02-17 18:03               ` Andreas Röhler
                                 ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Stefan Monnier @ 2010-02-17 15:01 UTC (permalink / raw)
  To: help-gnu-emacs

> Setting it to pure `ls' or `ls -1' as Stefan suggested, works fine so far.
> It's just, wdired doesn't work then any more.

If dired indeed works and wdired doesn't, then we indeed have a bug.


        Stefan



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

* Re: dired without -l, wdired fails
  2010-02-17 15:01             ` Stefan Monnier
@ 2010-02-17 18:03               ` Andreas Röhler
       [not found]               ` <mailman.1399.1266429708.14305.help-gnu-emacs@gnu.org>
  2010-02-17 21:36               ` Tim X
  2 siblings, 0 replies; 25+ messages in thread
From: Andreas Röhler @ 2010-02-17 18:03 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: help-gnu-emacs

Stefan Monnier wrote:
>> Setting it to pure `ls' or `ls -1' as Stefan suggested, works fine so far.
>> It's just, wdired doesn't work then any more.
> 
> If dired indeed works and wdired doesn't, then we indeed have a bug.
> 
> 
>         Stefan
> 
> 

OK, filed as M-x report-emacs-bug suggested:

To: emacs-pretest-bug@gnu.org

Subject: 23.1.90; wdired fails with dired ls -1

emacs -q

dired with option `ls -1'
wdired-change-to-wdired-mode

reports error:

wdired-preprocess-symlinks: Search failed: " -> \\(.*\\)$"

Mode-line displays "(Editable Dired...)"
but when I start editing, it's refused saying:

call-interactively: Text is read-only
...
;;;;;;;;;;

Andreas




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

* Re: dired without -l, wdired fails
       [not found]               ` <mailman.1399.1266429708.14305.help-gnu-emacs@gnu.org>
@ 2010-02-17 19:41                 ` Stefan Monnier
  2010-02-17 20:50                   ` Andreas Röhler
  0 siblings, 1 reply; 25+ messages in thread
From: Stefan Monnier @ 2010-02-17 19:41 UTC (permalink / raw)
  To: help-gnu-emacs

>> If dired indeed works and wdired doesn't, then we indeed have a bug.
> OK, filed as M-x report-emacs-bug suggested:

AFAIK, dired does not work in your context, so that wouldn't be a bug.


        Stefan


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

* Re: dired without -l, wdired fails
  2010-02-17 19:41                 ` Stefan Monnier
@ 2010-02-17 20:50                   ` Andreas Röhler
  2010-02-17 21:58                     ` Tassilo Horn
  0 siblings, 1 reply; 25+ messages in thread
From: Andreas Röhler @ 2010-02-17 20:50 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: help-gnu-emacs

Stefan Monnier wrote:
>>> If dired indeed works and wdired doesn't, then we indeed have a bug.
>> OK, filed as M-x report-emacs-bug suggested:
> 
> AFAIK, dired does not work in your context, so that wouldn't be a bug.
> 
> 
>         Stefan
> 

Output of dired with dired-listing-switch `1' as you suggested was fine. Just the docu contradicts,
requiring the `-l' switch. Only wdired- failed. Think it's extentable at this point.

Andreas




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

* Re: dired without -l, wdired fails
  2010-02-17 15:01             ` Stefan Monnier
  2010-02-17 18:03               ` Andreas Röhler
       [not found]               ` <mailman.1399.1266429708.14305.help-gnu-emacs@gnu.org>
@ 2010-02-17 21:36               ` Tim X
  2010-02-18  7:57                 ` Andreas Röhler
  2 siblings, 1 reply; 25+ messages in thread
From: Tim X @ 2010-02-17 21:36 UTC (permalink / raw)
  To: help-gnu-emacs

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Setting it to pure `ls' or `ls -1' as Stefan suggested, works fine so far.
>> It's just, wdired doesn't work then any more.
>
> If dired indeed works and wdired doesn't, then we indeed have a bug.
>
>
>         Stefan
>

Unless I misunderstand, dired and wdired work fine provided you include
the -l switch. Without the -l switch, wdired no longer works. 

As the -l switch is a documented requirement, I don't believe this
constitutes a bug. 

However, Andreas would like to be able to use dired/wdired without the
-l i.e. on a brief and I assume more compact dired/wdired display. Iff
this is the case, I'd argue its a feature request and not a bug report. 

Tim

-- 
tcross (at) rapttech dot com dot au


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

* Re: dired without -l, wdired fails
  2010-02-17 20:50                   ` Andreas Röhler
@ 2010-02-17 21:58                     ` Tassilo Horn
  2010-02-18  8:05                       ` Andreas Röhler
  0 siblings, 1 reply; 25+ messages in thread
From: Tassilo Horn @ 2010-02-17 21:58 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: help-gnu-emacs, Stefan Monnier

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> Stefan Monnier wrote:
>>>> If dired indeed works and wdired doesn't, then we indeed have a bug.
>>> OK, filed as M-x report-emacs-bug suggested:
>> 
>> AFAIK, dired does not work in your context, so that wouldn't be a bug.
>
> Output of dired with dired-listing-switch `1' as you suggested was
> fine.

I tried to reproduce that here (with emacs -Q), but if I remove the -l
and use nothing or plain -1, then the dired output is *not* ok (all
files except the last are indented a bit, and the last's first char has
`dired-mark' face), and no dired commands work anymore.  I cannot
operate on any file, I always get

  dired-get-file-for-visit: No file on this line

> Just the docu contradicts, requiring the `-l' switch. Only wdired-
> failed. Think it's extentable at this point.

Are you really sure that all or at least most dired commands work
without -l?

Bye,
Tassilo




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

* Re: dired without -l, wdired fails
  2010-02-17 21:36               ` Tim X
@ 2010-02-18  7:57                 ` Andreas Röhler
  2010-02-18  9:32                   ` Peter Dyballa
  2010-02-18 13:48                   ` Stefan Monnier
  0 siblings, 2 replies; 25+ messages in thread
From: Andreas Röhler @ 2010-02-18  7:57 UTC (permalink / raw)
  To: Tim X; +Cc: help-gnu-emacs, Tassilo Horn, Stefan Monnier

Tim X wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 
>>> Setting it to pure `ls' or `ls -1' as Stefan suggested, works fine so far.
>>> It's just, wdired doesn't work then any more.
>> If dired indeed works and wdired doesn't, then we indeed have a bug.
>>
>>
>>         Stefan
>>
> 
> Unless I misunderstand, dired and wdired work fine provided you include
> the -l switch. Without the -l switch, wdired no longer works. 
> 
> As the -l switch is a documented requirement, I don't believe this
> constitutes a bug. 
> 
> However, Andreas would like to be able to use dired/wdired without the
> -l i.e. on a brief and I assume more compact dired/wdired display. Iff
> this is the case, I'd argue its a feature request and not a bug report. 
> 
> Tim
> 

Basically agreed, thanks Tim.

BTW where to direct are feature request to?

Andreas




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

* Re: dired without -l, wdired fails
  2010-02-17 21:58                     ` Tassilo Horn
@ 2010-02-18  8:05                       ` Andreas Röhler
  0 siblings, 0 replies; 25+ messages in thread
From: Andreas Röhler @ 2010-02-18  8:05 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: help-gnu-emacs, Stefan Monnier

Tassilo Horn wrote:
> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> 
>> Stefan Monnier wrote:
>>>>> If dired indeed works and wdired doesn't, then we indeed have a bug.
>>>> OK, filed as M-x report-emacs-bug suggested:
>>> AFAIK, dired does not work in your context, so that wouldn't be a bug.
>> Output of dired with dired-listing-switch `1' as you suggested was
>> fine.
> 
> I tried to reproduce that here (with emacs -Q), but if I remove the -l
> and use nothing or plain -1, then the dired output is *not* ok (all
> files except the last are indented a bit, and the last's first char has
> `dired-mark' face),

Well, was happy with that so far already. With long filenames, the output from `-l'
switch is hardly readable sometimes.

Seems you are perfectly right.

 and no dired commands work anymore.

Didn't check that, stopped at the wdired-issue.


I cannot
> operate on any file, I always get
> 
>   dired-get-file-for-visit: No file on this line
> 
>> Just the docu contradicts, requiring the `-l' switch. Only wdired-
>> failed. Think it's extentable at this point.
> 
> Are you really sure that all or at least most dired commands work
> without -l?

Not at all.

Thanks for you attention.

Andreas
> 
> Bye,
> Tassilo
> 





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

* Re: dired without -l, wdired fails
  2010-02-18  7:57                 ` Andreas Röhler
@ 2010-02-18  9:32                   ` Peter Dyballa
  2010-02-18 13:48                   ` Stefan Monnier
  1 sibling, 0 replies; 25+ messages in thread
From: Peter Dyballa @ 2010-02-18  9:32 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Tim X, help-gnu-emacs, Tassilo Horn, Stefan Monnier


Am 18.02.2010 um 08:57 schrieb Andreas Röhler:

> BTW where to direct are feature request to?

Either emacs-devel (at gnu dot org) or the usual list to which you  
send bug reports, this time with a subject beginning with request for  
enhancement or such.

--
Mit friedvollen Grüßen

   Pete

It isn't pollution that's harming the environment. It's the impurities  
in our air and water that are doing it.





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

* Re: dired without -l, wdired fails
  2010-02-18  7:57                 ` Andreas Röhler
  2010-02-18  9:32                   ` Peter Dyballa
@ 2010-02-18 13:48                   ` Stefan Monnier
  2010-02-19  9:12                     ` Andreas Röhler
  1 sibling, 1 reply; 25+ messages in thread
From: Stefan Monnier @ 2010-02-18 13:48 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Tim X, Tassilo Horn, help-gnu-emacs

>> However, Andreas would like to be able to use dired/wdired without the
>> -l i.e. on a brief and I assume more compact dired/wdired display. Iff
>> this is the case, I'd argue its a feature request and not a bug report. 

As mentioned in an earlier message, dired-virtual should work for
"ls -1".


        Stefan




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

* Re: dired without -l, wdired fails
  2010-02-18 13:48                   ` Stefan Monnier
@ 2010-02-19  9:12                     ` Andreas Röhler
  0 siblings, 0 replies; 25+ messages in thread
From: Andreas Röhler @ 2010-02-19  9:12 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Tim X, Peter Dyballa, Tassilo Horn, help-gnu-emacs

Stefan Monnier wrote:
>>> However, Andreas would like to be able to use dired/wdired without the
>>> -l i.e. on a brief and I assume more compact dired/wdired display. Iff
>>> this is the case, I'd argue its a feature request and not a bug report. 
> 
> As mentioned in an earlier message, dired-virtual should work for
> "ls -1".
> 
> 
>         Stefan
> 

Hi Stefan,

can't see how to load this option within the rules given.
dired itself requires the `-l'

extension dired-virtual --a great feature BTW-- depends on dired-rules for me.

How to load the directory in without the mandatory `-l'?

Afterwards I may produce the result of "ls -1" setting the regexp accordingly with dired-virtual.
But that's much more complicated than specifying the switch via C-u M-x dired

Andreas

PS: suggest to leave the bug-thread for the moment, coming back with the result.




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

end of thread, other threads:[~2010-02-19  9:12 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1277.1266238414.14305.help-gnu-emacs@gnu.org>
2010-02-16  6:01 ` dired without -l, wdired fails Tim X
2010-02-15 12:55 Andreas Roehler
2010-02-15 13:10 ` Tassilo Horn
2010-02-15 13:38   ` Andreas Roehler
2010-02-15 14:43     ` Tassilo Horn
     [not found]   ` <mailman.1279.1266241033.14305.help-gnu-emacs@gnu.org>
2010-02-16  6:17     ` Tim X
2010-02-16 10:41       ` Andreas Röhler
2010-02-17 10:48         ` Bernardo
2010-02-17 12:15           ` Andreas Röhler
     [not found]           ` <mailman.1388.1266408803.14305.help-gnu-emacs@gnu.org>
2010-02-17 15:01             ` Stefan Monnier
2010-02-17 18:03               ` Andreas Röhler
     [not found]               ` <mailman.1399.1266429708.14305.help-gnu-emacs@gnu.org>
2010-02-17 19:41                 ` Stefan Monnier
2010-02-17 20:50                   ` Andreas Röhler
2010-02-17 21:58                     ` Tassilo Horn
2010-02-18  8:05                       ` Andreas Röhler
2010-02-17 21:36               ` Tim X
2010-02-18  7:57                 ` Andreas Röhler
2010-02-18  9:32                   ` Peter Dyballa
2010-02-18 13:48                   ` Stefan Monnier
2010-02-19  9:12                     ` Andreas Röhler
     [not found]       ` <mailman.1323.1266316798.14305.help-gnu-emacs@gnu.org>
2010-02-16 14:28         ` Stefan Monnier
2010-02-16 17:57           ` Andreas Röhler
2010-02-16 23:01             ` Stefan Monnier
2010-02-17  8:42               ` Andreas Röhler
     [not found]             ` <mailman.1361.1266361317.14305.help-gnu-emacs@gnu.org>
2010-02-17  6:34               ` Tim X

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.