GNU bug report logs - #39145
28.0.50; dired: Show broken/circular links in different font

Previous Next

Package: emacs;

Reported by: Tino Calancha <tino.calancha <at> gmail.com>

Date: Wed, 15 Jan 2020 21:07:01 UTC

Severity: wishlist

Found in version 28.0.50

Done: Tino Calancha <tino.calancha <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 39145 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Tino Calancha <tino.calancha <at> gmail.com>
Cc: 39145 <at> debbugs.gnu.org
Subject: Re: bug#39145: 28.0.50; dired: Show broken/circular links in
 different font
Date: Thu, 16 Jan 2020 01:13:32 +0200
> @@ -538,6 +549,18 @@ dired-font-lock-keywords
>     (list dired-re-dir
>  	 '(".+" (dired-move-to-filename) nil (0 dired-directory-face)))
>     ;;
> +   ;; Broken Symbolic link.
> +   (list dired-re-sym
> +         (list (lambda (end)
> +                 (let* ((file (dired-file-name-at-point))
> +                        (truename (ignore-errors (file-truename file))))
> +                   ;; either links to unexistent files or circular links
> +                   (and (not (and truename (file-exists-p truename)))
> +	                (search-forward-regexp ".+-> ?.+" end t))))
> +               '(dired-move-to-filename)

Does this mean file-exists-p will be called on every file in the directory?




This bug report was last modified 4 years and 264 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.