minad / consult

:mag: consult.el - Consulting completing-read
GNU General Public License v3.0
1.14k stars 99 forks source link

consult-buffer only showing the active buffer #1012

Closed dpassen closed 1 month ago

dpassen commented 1 month ago

With 73971a47e12bfb54eaf72f0443a8095fa082607a, consult-buffer only displays the active buffer. Compare the output of consult-buffer:

image

with the result of kill-buffer:

image
lodenrogue commented 1 month ago

Having the same issue on macOS 14.4.1

drcxd commented 1 month ago

Same issue on Windows

thanosapollo commented 1 month ago

Same issue on GNU Guix, the issue seems to be with commit 73971a4, going back to 369592f or to version 1.5 d8888bb fixes the issue.

EDIT:

From quick look, maybe @minad has made a typo and forgotten to add the parenthesis for (buffer-list) on line 4415?

Changing line 4415 on consult.el to:

(setq buffer-list (funcall (intern (format "consult--buffer-sort-%s" sort)) (buffer-list))))

resolves this as well

minad commented 1 month ago

Thanks! Turns out that my commit was incomplete - different from the code I had actually tested via eval-defun. The dangers of live development in Elisp...