Replies: 3 comments 9 replies
-
I'm really glad to hear!
I added it (begrudgingly) because I was hitting situations where the commands would show up in the current rather than the "other" window. I should at least have added a comment because I can't off the top of my head remember the exact sequence of steps. But yes, it's a heavy-handed solution. I'll try to reproduce the issue and post back here, if you're using |
Beta Was this translation helpful? Give feedback.
-
You could use: (defun run-command-buffer-p (buffer arg)
(boundp 'run-command--command-spec))
Is the second parameter (
Customizability is important but a reliable default behavior has higher priority — what to do will depend on those scenarios I mentioned above (haven't got around to trying to reproduce them yet). |
Beta Was this translation helpful? Give feedback.
-
Hi @bard , Are you sure tweaking display-buffer-alist is the right option after all? I had to patch it out in the latest stable version using =el-patch= to fix the behaviour. Quoting the Zen of buffer display:
Great package, btw, use it hourly! Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi! Thanks for this great package that I use dozens of times per day -- it's become an invaluable part of my workflow.
I'm curious about the let-binding on
display-buffer-alist
here:emacs-run-command/run-command-core.el
Lines 74 to 75 in 43afe90
Looking at the history it was introduced in e9420f1, but I'm not sure how/if it's necessary to achieve the feature
when command is already running, switch to it
(from the commit message). Do you think this binding is indeed necessary?I ask because I was trying to use
display-buffer-alist
to control how the buffers created by run-command appear, and found that it wasn't working, which led me to this. Removing it did get me the behavior that I wanted, and I haven't come across any odd side-effects yet, but I'm wondering if I might encounter some. Or if it's not actually necessary, maybe this binding could be removed in run-command.Beta Was this translation helpful? Give feedback.
All reactions