all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: Andreas Roehler <andreas.roehler@online.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: dired without -l, wdired fails
Date: Mon, 15 Feb 2010 15:43:20 +0100	[thread overview]
Message-ID: <871vgmftkn.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <4B794E72.1080309@online.de> (Andreas Roehler's message of "Mon,  15 Feb 2010 14:38:58 +0100")

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




  reply	other threads:[~2010-02-15 14:43 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-15 12:55 dired without -l, wdired fails Andreas Roehler
2010-02-15 13:10 ` Tassilo Horn
2010-02-15 13:38   ` Andreas Roehler
2010-02-15 14:43     ` Tassilo Horn [this message]
     [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
     [not found] <mailman.1277.1266238414.14305.help-gnu-emacs@gnu.org>
2010-02-16  6:01 ` Tim X

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=871vgmftkn.fsf@thinkpad.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=andreas.roehler@online.de \
    --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.