Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Steve Youngs <youngs@xe...> - 2002-01-03 23:08:30
|
That problem with symlinks that Norbert and I have been talking about will go away if we make Tramp use 'ls -alL' to get the directory listings. But I'm not sure if that is the right thing to do. Listing a directory like that would mean that you would not be able to tell which files/directories were symlinks. They'd all appear as normal files/directories. Opinions? -- |---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---| | XEmacs - It's not just an editor. | | It's a way of life. | |------------------------------------<youngs@...>---| |
From: Norbert Koch <nk@vi...> - 2002-01-04 15:14:56
|
Steve Youngs <youngs@...> writes: > But I'm not sure if that is the right thing to do. Listing a > directory like that would mean that you would not be able to tell > which files/directories were symlinks. They'd all appear as normal > files/directories. > > Opinions? I don't like it, although I don't have any better solution to present. norbert. |
From: Steve Youngs <youngs@xe...> - 2002-01-04 16:46:22
|
|--==> "viteno" == Norbert Koch <nk@...> writes: viteno> Steve Youngs <youngs@...> writes: >>But I'm not sure if that is the right thing to do. Listing a >>directory like that would mean that you would not be able to tell >>which files/directories were symlinks. They'd all appear as normal >>files/directories. >> >>Opinions? viteno> I don't like it, although I don't have any better solution to viteno> present. No I don't like it either. There just _must_ be a better way and I bet it's something really simple. It'll come to me. -- |---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---| | XEmacs - It's not just an editor. | | It's a way of life. | |------------------------------------<youngs@...>---| |
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai ) - 2002-01-04 17:58:18
|
Steve Youngs <youngs@...> writes: > That problem with symlinks that Norbert and I have been talking about > will go away if we make Tramp use 'ls -alL' to get the directory > listings. I think that tramp-handle-file-truename should be fixed first. I've worked on it some more. I've also made it do more debugging output. Please try (file-truename "/[user@...]/path/to/file") for various names. Maybe some filenames relative to the home dir, some containing absolute symlinks, some containing relative symlinks. What do you see? If file-truename works but actually opening the file doesn't, then I'll have to look at it again. kai -- Simplification good! Oversimplification bad! (Larry Wall) |
From: Steve Youngs <youngs@xe...> - 2002-01-05 00:35:43
|
|--=3D=3D> "KG" =3D=3D Kai Gro=DFjohann <Kai.Grossjohann@...= > writes: KG> Please try (file-truename "/[user@...]/path/to/file") for various KG> names. KG> What do you see? Test environment: - "local" is an ssh alias for localhost, logging in as user "root" - 'rel-symlink' is a relative symlink in '/root/' that points to './temp/' - 'abs-symlink' is an absolute symlink in '/root/' that points to '/root/temp/' (the same as 'rel-symlink') (file-truename "/[local]rel-symlink") "/[sm/local]//root/rel-symlink" (file-truename "/[local]abs-symlink") "/[sm/local]//root/abs-symlink" This is another test, not using tramp (so I could see what it should look like :-) ) Test environment: - 'rel-symlink' is a relative symlink in '/home/steve/temp/' that points to './temp/' - 'abs-symlink' is an absolute symlink in '/home/steve/temp/' that points to '/home/steve/temp/temp/' (file-truename "~/temp/rel-symlink") "/home/steve/temp/temp" (file-truename "~/temp/abs-symlink") "/home/steve/temp/temp" KG> If file-truename works but actually opening the file doesn't, then KG> I'll have to look at it again. Doesn't look like either works. :-( --=20 |---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---| | XEmacs - It's not just an editor. | | It's a way of life. | |------------------------------------<youngs@...>---| |
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai ) - 2002-01-05 10:39:56
|
Steve Youngs <youngs@...> writes: > (file-truename "/[local]rel-symlink") > > "/[sm/local]//root/rel-symlink" It is a complete mystery to me where the "//" comes from. This doesn't happen on my system. But if you set tramp-verbose to 10, you should get a lot of messages what file-truename is doing. I wonder if maybe split-string fails for you? What does (split-string "/foo/bar" "/") return? On Emacs 21, it returns ("foo" "bar"). I think I should install XEmacs pretty soon so that I can test this stuff. Hm. Debian woody has 21.4.1 -- is that good enough for testing? Or should I make a local build of something more recent? kai -- Simplification good! Oversimplification bad! (Larry Wall) |
From: Skip Montanaro <skip@po...> - 2002-01-05 15:18:09
|
Kai> I wonder if maybe split-string fails for you? Kai> What does (split-string "/foo/bar" "/") return? On Emacs 21, it Kai> returns ("foo" "bar"). On XEmacs 21.4.5 it returns ("" "foo" "bar"). Kai> I think I should install XEmacs pretty soon so that I can test this Kai> stuff. Hm. Debian woody has 21.4.1 -- is that good enough for Kai> testing? Or should I make a local build of something more recent? Yeah, that's probably good enough to get started. 21.4.6 is the latest gonna-be-released version. If you want to bleed, you can try 21.5.3, but I think the odd-numbered minor releases are generally just for XEmacs developers. once-you-try-it-you-won't-go-back-ly, y'rs, -- Skip Montanaro (skip@... - http://www.mojam.com/) |
From: Steve Youngs <youngs@xe...> - 2002-01-06 00:59:59
|
|--=3D=3D> "KG" =3D=3D Kai Gro=DFjohann <Kai.Grossjohann@...= > writes: KG> I think I should install XEmacs pretty soon so that I can test this KG> stuff. Hm. Debian woody has 21.4.1 -- is that good enough for KG> testing? Or should I make a local build of something more recent? I think that would be fine, most of the problems with the earlier 21.4 releases were related to Windoze. 21.4.6 is the new kid on the block. --=20 |---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---| | XEmacs - It's not just an editor. | | It's a way of life. | |------------------------------------<youngs@...>---| |
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai ) - 2002-01-05 12:49:11
|
Kai.Grossjohann@... (Kai Gro=DFjohann) writes: > What does (split-string "/foo/bar" "/") return? On Emacs 21, it > returns ("foo" "bar"). > > I think I should install XEmacs pretty soon so that I can test this > stuff. Hm. Debian woody has 21.4.1 -- is that good enough for > testing? Or should I make a local build of something more recent? Aha. I now found an XEmacs and there, (split-string "/foo/bar" "/") returns ("" "foo" "bar"). So I hacked a compat function and now use that, instead. What do you see with the new version of Tramp on XEmacs? I hope that I have time to test the new version on XEmacs soon. [time passes] Okay, I now logged in on schulz and did this: cd /tmp mkdir kaifoo ln -s kaifoo kaifoo.link ln -s /tmp/kaifoo kaifoo.abslink And (file-truename "/[sm/schulz]/tmp/kaifoo.link") and (file-truename "/[sm/schulz]/tmp/kaifoo.abslink") both return the right value. XEmacs users, please test and report your findings. Thanks. kai --=20 Simplification good! Oversimplification bad! (Larry Wall) |
From: Skip Montanaro <skip@po...> - 2002-01-05 15:25:12
|
And (file-truename "/[sm/schulz]/tmp/kaifoo.link") and (file-truename "/[sm/schulz]/tmp/kaifoo.abslink") both return the right value. XEmacs users, please test and report your findings. Works for me too... -- Skip Montanaro (skip@... - http://www.mojam.com/) |
From: Norbert Koch <nk@vi...> - 2002-01-05 13:18:46
|
Kai.Grossjohann@... (Kai Großjohann) writes: > XEmacs users, please test and report your findings. Thanks. Yes, it seems to DTRT. Thanks, norbert. |
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai ) - 2002-01-05 14:57:34
|
Norbert Koch <nk@...> writes: > Kai.Grossjohann@... (Kai Gro=DFjohann) writes: > >> XEmacs users, please test and report your findings. Thanks. > > Yes, it seems to DTRT.=20 That's great. So if Steve also agrees, we can make a new Tramp release and an XEmacs package. kai --=20 Simplification good! Oversimplification bad! (Larry Wall) |
From: Steve Youngs <youngs@xe...> - 2002-01-05 23:29:19
|
|--=3D=3D> "KG" =3D=3D Kai Gro=DFjohann <Kai.Grossjohann@...= > writes: KG> And (file-truename "/[sm/schulz]/tmp/kaifoo.link") and (file-truename KG> "/[sm/schulz]/tmp/kaifoo.abslink") both return the right value. KG> XEmacs users, please test and report your findings. Thanks. I'm getting the right behaviour here, but the symlinks are still broken. :-( I'll re-test with tramp-verbose and tramp-debug thingies set. Stay tuned, report soonish. --=20 |---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---| | XEmacs - It's not just an editor. | | It's a way of life. | |------------------------------------<youngs@...>---| |
From: Steve Youngs <youngs@xe...> - 2002-01-06 00:49:57
Attachments:
tramp-debug.out.gz
text/plain
|
|--=3D=3D> "SY" =3D=3D Steve Youngs <youngs@...> writes: |--=3D=3D> "KG" =3D=3D Kai Gro=DFjohann <Kai.Grossjohann@...= > writes: KG> And (file-truename "/[sm/schulz]/tmp/kaifoo.link") and (file-truename KG> "/[sm/schulz]/tmp/kaifoo.abslink") both return the right value. KG> XEmacs users, please test and report your findings. Thanks. SY> I'm getting the right behaviour here, but the symlinks are still SY> broken. :-( SY> I'll re-test with tramp-verbose and tramp-debug thingies set. Stay SY> tuned, report soonish. As promised, here are my testing results... I hope we can get to the bottom of this one soon, it's got me stumped. :-( |
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai ) - 2002-01-06 14:20:50
|
Steve Youngs <youngs@...> writes: > As promised, here are my testing results... I hope we can get to the > bottom of this one soon, it's got me stumped. :-( Well, maybe other people than just me should start to have a look at tramp-handle-file-truename. The logic in there is not so complicated, but I've managed to get it wrong now many times. What's happening with my brain? Anyway, I've hacked on it more. If the current CVS still doesn't work, please have a look at the aforementioned (?) function and try to figure out where it's gone wonkers. Thanks a lot. kai -- Simplification good! Oversimplification bad! (Larry Wall) |
From: Steve Youngs <youngs@xe...> - 2002-01-06 15:52:28
|
|--=3D=3D> "KG" =3D=3D Kai Gro=DFjohann <Kai.Grossjohann@...= > writes: KG> What's happening with my brain? Not enough/too much caffeine? :-) KG> Anyway, I've hacked on it more. If the current CVS still doesn't KG> work, please have a look at the aforementioned (?) function and try KG> to figure out where it's gone wonkers. You've definitely made an improvement, now=20 '(file-truename "/[host]file/")' is not lying to me. :-) I'll look into this a bit tonight before I go to bed (it's 1:40am here) and see if I can't fix it tomorrow. --=20 |---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---| | XEmacs - It's not just an editor. | | It's a way of life. | |------------------------------------<youngs@...>---| |
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai ) - 2002-01-06 16:58:33
|
Steve Youngs <youngs@...> writes: > |--=3D=3D> "KG" =3D=3D Kai Gro=DFjohann <Kai.Grossjohann@...= DE> writes: > > KG> What's happening with my brain? > > Not enough/too much caffeine? :-) But which? > KG> Anyway, I've hacked on it more. If the current CVS still doesn't > KG> work, please have a look at the aforementioned (?) function and try > KG> to figure out where it's gone wonkers. > > You've definitely made an improvement, now=20 > '(file-truename "/[host]file/")' is not lying to me. :-) > > I'll look into this a bit tonight before I go to bed (it's 1:40am > here) and see if I can't fix it tomorrow. Great. Thanks a lot. kai --=20 Simplification good! Oversimplification bad! (Larry Wall) |
From: Steve Youngs <youngs@xe...> - 2002-01-07 06:39:06
|
|--=3D=3D> "KG" =3D=3D Kai Gro=DFjohann <Kai.Grossjohann@...= > writes: KG> Steve Youngs <youngs@...> writes: >>|--=3D=3D> "KG" =3D=3D Kai Gro=DFjohann <Kai.Grossjohann@...= d.DE> writes: >> KG> What's happening with my brain? >> >>Not enough/too much caffeine? :-) KG> But which? If you're anything like me, I'd say "too much". :-) >>I'll look into this a bit tonight before I go to bed (it's 1:40am >>here) and see if I can't fix it tomorrow. KG> Great. Thanks a lot. I haven't been able to find anything. I've sent off some questions to our Dired maintainer to find out how Dired gets around this problem. Sorry, forgot to Cc the list. --=20 |---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---| | XEmacs - It's not just an editor. | | It's a way of life. | |------------------------------------<youngs@...>---| |
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai ) - 2002-01-20 08:33:15
|
Steve Youngs <youngs@...> writes: > I haven't been able to find anything. I've sent off some questions to > our Dired maintainer to find out how Dired gets around this problem. > Sorry, forgot to Cc the list. Have you been able to find out anything about that symlink problem? kai -- Simplification good! Oversimplification bad! (Larry Wall) |
From: Steve Youngs <youngs@xe...> - 2002-01-20 21:43:30
|
|--=3D=3D> "KG" =3D=3D Kai Gro=DFjohann <Kai.Grossjohann@...= > writes: KG> Steve Youngs <youngs@...> writes: >>I haven't been able to find anything. I've sent off some questions to >>our Dired maintainer to find out how Dired gets around this problem. >>Sorry, forgot to Cc the list. KG> Have you been able to find out anything about that symlink problem? Haven't heard back from Mike (Dired maintainer) yet. Have been very busy with XEmacs packages... Wife in hospital with pregnancy complications... :-( Kai, if you're wanting to put out a new release, don't wait for this, just go for it. --=20 |---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---| | XEmacs - It's not just an editor. | | It's a way of life. | |------------------------------------<youngs@...>---| |