From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Quotes in Dired listing switches Date: Tue, 29 Dec 2009 10:10:49 +0100 Message-ID: <87637q9mcm.fsf@gmx.de> References: <87vdfy5om7.fsf@mail.jurta.org> <87pr61qyfm.fsf@gmx.de> <87637rze4b.fsf@mail.jurta.org> <877hs7jqpt.fsf@gmx.de> <87d41yq01b.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262077875 1221 80.91.229.12 (29 Dec 2009 09:11:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Dec 2009 09:11:15 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 29 10:11:07 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NPY6c-0003aZ-Lh for ged-emacs-devel@m.gmane.org; Tue, 29 Dec 2009 10:11:07 +0100 Original-Received: from localhost ([127.0.0.1]:51361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPY6c-0007VC-M6 for ged-emacs-devel@m.gmane.org; Tue, 29 Dec 2009 04:11:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NPY6X-0007Uu-50 for emacs-devel@gnu.org; Tue, 29 Dec 2009 04:11:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPY6S-0007U0-5Z for emacs-devel@gnu.org; Tue, 29 Dec 2009 04:11:00 -0500 Original-Received: from [199.232.76.173] (port=46470 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPY6R-0007Te-M0 for emacs-devel@gnu.org; Tue, 29 Dec 2009 04:10:55 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:35265) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NPY6Q-000518-MY for emacs-devel@gnu.org; Tue, 29 Dec 2009 04:10:55 -0500 Original-Received: (qmail invoked by alias); 29 Dec 2009 09:10:52 -0000 Original-Received: from p4FC00BE9.dip0.t-ipconnect.de (EHLO arthur.local) [79.192.11.233] by mail.gmx.net (mp050) with SMTP; 29 Dec 2009 10:10:52 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+gaDURK9mgvIKcvE2HlcBZy6lWlAeBnDhvLX+GDq 9KMTe0Bzi+eW9q In-Reply-To: <87d41yq01b.fsf@mail.jurta.org> (Juri Linkov's message of "Mon, 28 Dec 2009 23:08:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118923 Archived-At: Juri Linkov writes: > There is another related problem: Tramp doesn't display the Dired buffer > when an older version of `ls' on the remote machine doesn't support > a new switch supported by the local newer version of `ls'. > > Something like below could handle this situation to remove unsupported > switches before running `ls' on the remote machine: > > (add-hook 'dired-before-readin-hook > (lambda () > (when (file-remote-p default-directory) > (setq dired-actual-switches > (replace-regexp-in-string "--block-size='1" "" > dired-actual-switches))))) > > but this is an ugly hack. Do you have an idea how to handle this problem? There is an idea to introduce server-local environment variables. Then you could keep different settings for `dired-actual-switches', depending on the host Tramp is accessing. See the todo on the end of tramp.el. I haven't started an implementation yet. Best regards, Michael.