diff --git a/lisp/llvm-lib/llvm-act-on-file/act-on-llvm-dump-file.el b/lisp/llvm-lib/llvm-act-on-file/act-on-llvm-dump-file.el index 4b7e0ab..e36fd5d 100644 --- a/lisp/llvm-lib/llvm-act-on-file/act-on-llvm-dump-file.el +++ b/lisp/llvm-lib/llvm-act-on-file/act-on-llvm-dump-file.el @@ -29,8 +29,8 @@ '((assembly :key ?a :major-mode asm-mode :buffer-string "assembly" :description "[a]ssembly"))) (defun ll/is-dump-file (fname) - (and (string= "/tmp/" - (file-name-directory fname)) + (and (string-match-p (rx line-start "/tmp/") + (file-name-directory fname)) (string-match-p (rx "/" (+ (not "/")) "-" (= 6 alphanumeric) "." (+ anything)) fname)))