GNU bug report logs -
#64394
[PATCH] Fix `async-shell-command-display-buffer' display
Previous Next
Reported by: Eliza Velasquez <eliza <at> eliza.sh>
Date: Sat, 1 Jul 2023 01:01:02 UTC
Severity: normal
Tags: patch
Fixed in version 30.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Sat, Jul 01 2023 at 11:12 +03, Eli Zaretskii <eliz <at> gnu.org> wrote:
> But that's exactly what this variable is about, AFAIU:
>
> Whether to display the command buffer immediately.
> If t, display the buffer immediately; if nil, wait until there
> is output.
>
> Note the last part.
>
> So why do you think this behavior is a problem?
On a philosophical level: It's surprising to me in that previous example
that if `async-shell-command-display-buffer' is t, the buffer is /not/
displayed (according to `display-buffer-alist'), but if it's nil, it
/is/ displayed, eventually (ignoring `display-buffer-alist').
On a practical level: The user may want to differentiate buffer display
behavior based on the name of the shell command buffer or by some other
predicate, including disabling showing that buffer, regardless of
whether `async-shell-command-display-buffer' is set to t or nil. I have
recently authored a package to make this easier [1] and ran into this
problem. The example configuration in the README might shed some more
light on the expected behavior.
[1] https://github.com/elizagamedev/shell-command-x.el
--
Eliza
This bug report was last modified 2 years and 17 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.