[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8186: dired-font-lock-keywords should warn about SUID files too!
From: |
Drew Adams |
Subject: |
bug#8186: dired-font-lock-keywords should warn about SUID files too! |
Date: |
Mon, 28 Oct 2019 07:23:01 -0700 (PDT) |
> > 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