branch: externals/dired-preview
commit 10d761722c3b7c8a944f9711aae2578a3caa992e
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Revert commit 491fb79
We will find another way to handle this better, because some files
which are not writable in practice (like mp3) do pass the
file-writable-p check.
---
dired-preview.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dired-preview.el b/dired-preview.el
index 039f46b81e..8a5c1d851c 100644
--- a/dired-preview.el
+++ b/dired-preview.el
@@ -221,8 +221,7 @@ FILE."
((and (not (string-empty-p ext))
(string-match-p ext dired-preview-ignored-extensions-regexp))
(cons 'ignore file))
- ((or (dired-preview--file-large-p file)
- (not (file-writable-p file))) ; FIXME 2024-05-07: We should probably
decouple those
+ ((dired-preview--file-large-p file)
(cons 'large file))
((and (not (string-empty-p ext))
(string-match-p ext dired-preview-image-extensions-regexp))