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:
> dired-mark-files-regexp checks the NAME of a symbolic link.
> Its useful to introduce one function which look for a match
> in the TARGET of the symbolic links.
> Such function could be bound to '%@'.
I'm not sure whether that's generally useful enough to include in
dired... I can't say that I remember ever wanting something like that.
[...]
> + (dired-mark-if
> + (and (looking-at-p dired-re-sym)
> + (not (looking-at-p dired-re-dot))
> + (not (eolp)) ; empty line
> +
> + (let* ((eol (line-end-position))
> + (fn (save-excursion
> + (search-forward " -> " eol t)
> + (buffer-substring-no-properties (point) eol))))
> + (and fn (string-match-p regexp fn))))
> + "matching symbolic link")))
And this implementation also seems quite fragile. Will symlinks always
be presented as " -> "? And can " -> " be a valid part of a file name.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 9 years and 43 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.