[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Robustness problem in tramp.el
From: |
christian.lynbech |
Subject: |
Robustness problem in tramp.el |
Date: |
Tue, 25 May 2010 14:12:02 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.96 (gnu/linux) |
I have stumbled across a slight problem in `tramp-handle-insert-directory' in
tramp.el.
When operating against a system where `ls' support "--dired", there is
some code to iterate across the line of data tagged with
//DIRED//. However, after seeing the tag (with `looking-at') it uses
among other things `forward-word' to reposition itself which will fail
if the user has modified the default syntax table in certain ways (which
was what I was doing and then was surprised to see tramp fail).
One could perhaps argue that there are some deeply rooted assumptions
about `/' not being a word constituent character but apart from the fact
that I do not believe I have seen it documented anywhere that one cannot
change the default syntax allocations, it is rather silly to have such a
dependency in tramp when it is so easy to have a more robust solution.
I have attached a diff with a proposal for a fix.
diff
Description: Binary data
------------------------+-----------------------------------------------------
Christian Lynbech | christian #\@ defun #\. dk
------------------------+-----------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
- address@hidden (Michael A. Petonic)
- Robustness problem in tramp.el,
christian.lynbech <=