How can I check, with a function, if there are marked files in a dired buffer?
Edit. The issue with dired-get-marked-files
is that if the user moves the cursor on a "current file name" the function does not return nil
.
What about (string-match-p "^\\*" (buffer-string))
? Is it so bad?