branch: externals/consult commit e5406f282f76076d10440037ecd3460fb280706c Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Use memq --- consult.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consult.el b/consult.el index 3b36ab6ac2..801f358f42 100644 --- a/consult.el +++ b/consult.el @@ -1286,7 +1286,7 @@ ORIG is the original function, HOOKS the arguments." (when (bound-and-true-p so-long-detected-p) (kill-buffer) (error "File `%s' with long lines not previewed" name)) - (when (and (member major-mode '(fundamental-mode hexl-mode)) + (when (and (memq major-mode '(fundamental-mode hexl-mode)) (save-excursion (search-forward "\0" nil 'noerror))) (kill-buffer) (error "Binary file `%s' not previewed" name))