GNU bug report logs -
#8186
dired-font-lock-keywords should warn about SUID files too!
Previous Next
Reported by: jidanni <at> jidanni.org
Date: Sun, 6 Mar 2011 09:29:02 UTC
Severity: wishlist
Tags: fixed
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> > I checked the directory /run and there is:
> > drwxrwsr-x 3 postgres postgres 120 postgresql
> > where 'w' in group is rightfully highlighted with the 'dired-perm-write' face,
> > but 's' in the same group is not highlighted with the 'dired-set-id' face.
> > Is this intentional?
>
> No... Do we need to add combinatorial versions of all the regexps to
> dired-font-lock-keywords or is there a better way?
FWIW -
If by that you mean highlight the different privileges
for each possible role (other, group, user), then
`dired+.el' has done that since sometime in the 90s.
(I suggested it for Emacs back then.)
Not a big deal:
(list (concat dired-re-maybe-mark dired-re-inode-size
"[-dl]........\\([lsStT]\\)") ; o misc
'(1 diredp-other-priv))
(list (concat dired-re-maybe-mark dired-re-inode-size
"[-dl].....\\([lsStT]\\)...") ; g misc
'(1 diredp-other-priv))
(list (concat dired-re-maybe-mark dired-re-inode-size
"[-dl]..\\([lsStT]\\)...") ; u misc
'(1 diredp-other-priv))
(list (concat dired-re-maybe-mark dired-re-inode-size
"\\([bcsmpS]\\)") ; (rare)
'(1 diredp-rare-priv keep))
https://www.emacswiki.org/emacs/download/dired%2b.el
This bug report was last modified 5 years and 206 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.