diff --git a/lisp/filesets.el b/lisp/filesets.el index a8d70df36d5..b3b021d5695 100644 --- a/lisp/filesets.el +++ b/lisp/filesets.el @@ -1688,7 +1688,7 @@ Replace or <> with filename." (defun filesets-cmd-isearch-getargs () "Get arguments for `multi-isearch-files' and `multi-isearch-files-regexp'." - (list files)) + (and (boundp 'files) (list files))) (defun filesets-cmd-shell-command-getargs () "Get arguments for `filesets-cmd-shell-command'."