Quantcast
Viewing all articles
Browse latest Browse all 40

Check if there are marked files in dired buffer

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?


Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>