1

In my *helm for files* buffer are listed buffers of the form *~/some/path/to/a/file output* and I'd like to hide them thanks to helm-boring-file-regexp-list. My current attempt with the setting below doesn't work, I guess because of the space in the buffer name.

What am I missing?

(setq helm-boring-file-regexp-list '("\\.swf$" "\\.elc$" "\\.pyc$" "\\.aux$"
                                     "\\.idx$" "\\.ind$" "\\.lo*$" "\\.out$"
                                     "\\.toc$" "\\.lof$" "\\.lot$" "\\.acn$"
                                     "\\.acr$" "\\.alg$" "\\.bbl$" "\\.bcf$"
                                     "\\.fls$" "\\.gl*$" "\\.ist$" "\\.xml$"
                                     "\\.slo$" "\\.slg$" "\\.sls$" "\\.xdy$"
                                     "\\.unq$" "\\.mw$" "\\.nav$"
                                     "\\.pyc$" "\\.emacs.d/*"
                                     "\\.gnus.d/*" "\\.gz$"
                                     "\\.log$" "\\ output$" ))
0

1 Answer 1

1

This isn't about the space. helm-boring-file-regexp-list matches file names. A buffer like *xxx output isn't showing the content of a file (in Emacs terminology, it isn't visiting a file), so a file name filter is irrelevant. You need a buffer name filter instead: helm-boring-buffer-regexp-list.

(defun my-after-load-helm-buffers ()
  (add-to-list 'helm-boring-buffer-regexp-list " output\\*\\'"))
(eval-after 'helm-buffers '(my-after-load-helm-buffers))
3
  • Maybe I'm missing something but helm-for-files still displays the boring *xxx output* buffers. Jun 13, 2022 at 16:01
  • @DenisBitouzé Hmmm. Maybe I'm the one who's missing something. Why does helm for files offer the name of a non-file-visiting buffer? I don't really know helm. Jun 13, 2022 at 16:24
  • Finally, it looks like it works, but just with (add-to-list 'helm-boring-buffer-regexp-list " output\\*\\'"). Jun 13, 2022 at 19:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.