GNU bug report logs -
#22828
25.1.50; Mark symlinks whose target matches regexp
Previous Next
Reported by: Tino Calancha <f92capac <at> gmail.com>
Date: Sat, 27 Feb 2016 14:25:01 UTC
Severity: wishlist
Tags: patch, wontfix
Found in version 25.1.50
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Tino Calancha <f92capac <at> gmail.com> writes:
>> Use dired-move-to-end-of-filename to find the proper place.
> I see, this way we forget about the '@ -> ' or ' -> ' (or any other?).
>
> Do you think is ok that fn contains such ' -> ' thing?
> I would prefer if fn doesn't contain that.
> So, the question is:
> do we have a portable way to get the target of one link?
> We may introduce something like:
> dired-symlink-target (if doesn't exist)
I thin kyou should just call `(dired-get-filename nil t)' on each line
to get the file names, and then call `file-truename' to get the name of
the target. Inspecting the text in the buffer with regexps is bound to
be fragile.
But I'm still not sure this is a function that would be generally
useful. :-)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 9 years and 44 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.