Distinguishing files with extensions, from hidden files and no extensions
I'm having difficulty distinguishing files with extensions, from files without extensions, and hidden files. I'm using (file-name-extension (dired-get-file-for-visit)) in dired-mode, and the type of file extension determines what action to take -- e.g., open in Emacs, or open externally with a particular application. A hidden file (e.g., .hidden ) returns a value of nil instead of "hidden" . A file with no extension (e.g., foo ) also returns a value of nil . Can anyone suggest an alternative method to handle this? (let* ( (input-regexp '("odt" "wpd" "docx" "doc" "xls" "pdf" "tif" "bmp" "jpg"))