[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Weird behaviour when entering the filename
From: |
Francis Moreau |
Subject: |
Re: Weird behaviour when entering the filename |
Date: |
Tue, 26 Jan 2010 18:24:43 +0100 |
On Tue, Jan 26, 2010 at 4:49 PM, Michael Albinus <address@hidden> wrote:
> Francis Moreau <address@hidden> writes:
>
>>> These files are read by ls, determining which colors to present.
>>> dircolors is just a tool supporting you to set $LS_COLORS. When it is
>>> not present, it does not mean that ls does not read those files.
>>>
>>
>> Ok. then I have none of the files you previously mentioned.
>
> I've checked the documentation on busybox.net. There is no obvious way
> to configure coloring :-(
>
> Well, so I have added a check for "--color=never" to the ls command,
> here is the patch (line numbers might differ):
>
> --8<---------------cut here---------------start------------->8---
> *** /mnt/src/tramp/lisp/tramp.el.~2.765.~ 2010-01-23 11:00:19.000000000
> +0100
> --- /mnt/src/tramp/lisp/tramp.el 2010-01-26 16:33:24.000000000 +0100
> ***************
> *** 8018,8026 ****
> (let ((dl (tramp-get-remote-path vec))
> result)
> (while (and dl (setq result (tramp-find-executable vec cmd dl t t)))
> ! ;; Check parameter.
> (when (zerop (tramp-send-command-and-check
> vec (format "%s -lnd /" result)))
> (throw 'ls-found result))
> (setq dl (cdr dl))))))
> (tramp-error vec 'file-error "Couldn't find a proper `ls' command"))))
> --- 8018,8029 ----
> (let ((dl (tramp-get-remote-path vec))
> result)
> (while (and dl (setq result (tramp-find-executable vec cmd dl t t)))
> ! ;; Check parameters.
> (when (zerop (tramp-send-command-and-check
> vec (format "%s -lnd /" result)))
> + (when (zerop (tramp-send-command-and-check
> + vec (format "%s --color=never /" result)))
> + (setq result (concat result " --color=never")))
> (throw 'ls-found result))
> (setq dl (cdr dl))))))
> (tramp-error vec 'file-error "Couldn't find a proper `ls' command"))))
> --8<---------------cut here---------------end--------------->8---
>
> Please exit Emacs, and remove the file ~/.emacs.d/tramp before
> restarting. Otherwise, cached values will be reused.
>
I gave it a try, the --color option is now passed to ls(1) as expected.
BUT, tramp still cannot open the file :( I still have the message
"File exists but cannot be read" or similar.
I attached the new tramp trace in case you still want to look at this issue ;)
Thanks
--
Francis
tramp.trace
Description: Binary data
- Re: Weird behaviour when entering the filename, (continued)
- Re: Weird behaviour when entering the filename, Michael Albinus, 2010/01/26
- Re: Weird behaviour when entering the filename, Francis Moreau, 2010/01/26
- Re: Weird behaviour when entering the filename, Michael Albinus, 2010/01/26
- Re: Weird behaviour when entering the filename, Francis Moreau, 2010/01/26
- Re: Weird behaviour when entering the filename, Michael Albinus, 2010/01/26
- Re: Weird behaviour when entering the filename, Francis Moreau, 2010/01/26
- Re: Weird behaviour when entering the filename, Michael Albinus, 2010/01/26
- Re: Weird behaviour when entering the filename, Francis Moreau, 2010/01/26
- Re: Weird behaviour when entering the filename, Michael Albinus, 2010/01/26
- Re: Weird behaviour when entering the filename, Francis Moreau, 2010/01/26
- Re: Weird behaviour when entering the filename,
Francis Moreau <=
- Re: Weird behaviour when entering the filename, Michael Albinus, 2010/01/26
- Re: Weird behaviour when entering the filename, Francis Moreau, 2010/01/26
- Re: Weird behaviour when entering the filename, Michael Albinus, 2010/01/27
- Re: Weird behaviour when entering the filename, Francis Moreau, 2010/01/27
- Re: Weird behaviour when entering the filename, Michael Albinus, 2010/01/27
- Re: Weird behaviour when entering the filename, Francis Moreau, 2010/01/27
- Re: Weird behaviour when entering the filename, Michael Albinus, 2010/01/27
- Re: Weird behaviour when entering the filename, Francis Moreau, 2010/01/27
- Re: Weird behaviour when entering the filename, Michael Albinus, 2010/01/27
- Message not available
- Re: Weird behaviour when entering the filename, Francis Moreau, 2010/01/27