From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: dired without -l, wdired fails Date: Mon, 15 Feb 2010 15:43:20 +0100 Message-ID: <871vgmftkn.fsf@thinkpad.tsdh.de> References: <4B794437.6060403@online.de> <87aavafxv6.fsf@thinkpad.tsdh.de> <4B794E72.1080309@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266245048 18512 80.91.229.12 (15 Feb 2010 14:44:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Feb 2010 14:44:08 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andreas Roehler Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 15 15:44:06 2010 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.69) (envelope-from ) id 1Nh2BB-0002TW-Ob for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Feb 2010 15:44:06 +0100 Original-Received: from localhost ([127.0.0.1]:55179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nh2BB-00073q-7e for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Feb 2010 09:44:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nh2AW-0006r0-Q4 for help-gnu-emacs@gnu.org; Mon, 15 Feb 2010 09:43:24 -0500 Original-Received: from [140.186.70.92] (port=40271 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nh2AV-0006pY-2I for help-gnu-emacs@gnu.org; Mon, 15 Feb 2010 09:43:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nh2AU-0002wW-4F for help-gnu-emacs@gnu.org; Mon, 15 Feb 2010 09:43:22 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:6740) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nh2AT-0002wQ-Qs for help-gnu-emacs@gnu.org; Mon, 15 Feb 2010 09:43:22 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 2921E78A3DC7; Mon, 15 Feb 2010 15:43:21 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02763-05; Mon, 15 Feb 2010 15:43:20 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (dhcp14.uni-koblenz.de [141.26.71.14]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 2CBEF78A3DB9; Mon, 15 Feb 2010 15:43:20 +0100 (CET) In-Reply-To: <4B794E72.1080309@online.de> (Andreas Roehler's message of "Mon, 15 Feb 2010 14:38:58 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:71875 Archived-At: Andreas Roehler 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