From 57198f1e1abf7a70c694d3d6711f53fe0567842c Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 8 Jun 2019 13:27:14 +0200 Subject: [PATCH] =?UTF-8?q?[Utils]=20Fix=20directory=20name=20for=20?= =?UTF-8?q?=E2=80=98db/dired-from-shell-command=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sometimes the string "Output of ‘…’" seems to be interpreted as directory name, and then dired complains about it not being existent. It is not completely understood yet when this will happen, and an easy workaround seems to be to stick to a fixed string that works. This is what’s used now. --- site-lisp/db-utils.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/site-lisp/db-utils.el b/site-lisp/db-utils.el index 93c4227..e0c7a06 100644 --- a/site-lisp/db-utils.el +++ b/site-lisp/db-utils.el @@ -347,10 +347,7 @@ output, separated by \\n, when called with (file-readable-p entry))) (split-string (shell-command-to-string command) "\n")))) - (if (null list-of-files) - (user-error "No files to display, aborting") - (dired (cons (format "Output of `%s’" command) - list-of-files))))) + (dired (cons "Command output" list-of-files)))) ;;; helm configuration