projects
/
elisp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
18d001c
)
Do not crash if a local file (or directory) does not exist, just ignore.
author
Francois Fleuret
<francois@fleuret.org>
Sun, 20 Dec 2015 14:26:46 +0000
(15:26 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Sun, 20 Dec 2015 14:26:46 +0000
(15:26 +0100)
media.el
patch
|
blob
|
history
diff --git
a/media.el
b/media.el
index
c2dd4e7
..
d380970
100644
(file)
--- a/
media.el
+++ b/
media.el
@@
-620,9
+620,11
@@
returns nil if no id3 tags could be found."
(title (or (and (consp c) (cdr c)) url)))
(if (string-match "^\\(http\\|mms\\)://" url)
(media/insert-url (cons url title) 0)
(title (or (and (consp c) (cdr c)) url)))
(if (string-match "^\\(http\\|mms\\)://" url)
(media/insert-url (cons url title) 0)
- (if (file-regular-p url) (media/insert-file url 0)
- (if (file-directory-p url) (media/insert-dir url 0)
- (error "Unknown type `%s'" url))))))
+ (if (file-exists-p url)
+ (if (file-regular-p url) (media/insert-file url 0)
+ (if (file-directory-p url) (media/insert-dir url 0)
+ (error "Unknown type `%s'" url))))
+ )))
list))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
list))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;