(condition-case ()
(insert-file-contents-literally filename t)
(file-error
- (when (not (file-readable-p filename))
+ (when (and (file-exists-p filename)
+ (not (file-readable-p filename)))
(kill-buffer buf)
(signal 'file-error (list "File is not readable"
filename)))
(condition-case ()
(insert-file-contents filename t)
(file-error
- (when (not (file-readable-p filename))
+ (when (and (file-exists-p filename)
+ (not (file-readable-p filename)))
(kill-buffer buf)
(signal 'file-error (list "File is not readable"
filename)))