Directly complain when not file are available in custom dired view
Otherwise, a rather confusing error message is displayed about not being able to find a file called "Command output" in the current directory.
This commit is contained in:
parent
106f286285
commit
e14a7248b0
|
@ -358,7 +358,9 @@ output, separated by \\n, when called with
|
||||||
(file-symlink-p entry))))
|
(file-symlink-p entry))))
|
||||||
(split-string (shell-command-to-string command)
|
(split-string (shell-command-to-string command)
|
||||||
"\n"))))
|
"\n"))))
|
||||||
(dired (cons "Command output" list-of-files))))
|
(if (null list-of-files)
|
||||||
|
(message "No files return by command “%s”" command)
|
||||||
|
(dired (cons "Command output" list-of-files)))))
|
||||||
|
|
||||||
(defun db/system-open (path)
|
(defun db/system-open (path)
|
||||||
"Open PATH with default program as defined by the underlying system."
|
"Open PATH with default program as defined by the underlying system."
|
||||||
|
|
Loading…
Reference in New Issue