unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#43376: A more aware "compilation process is running; kill it? (yes or no) "
@ 2020-09-13 13:28 積丹尼 Dan Jacobson
  2020-09-13 17:14 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-09-13 13:28 UTC (permalink / raw)
  To: 43376

When one is looking at the prompt
"A compilation process is running; kill it? (yes or no) "
but then the compilation finishes,
wouldn't it be great if the prompt realized that fact and changed itself?
emacs-version "26.3"





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#43376: A more aware "compilation process is running; kill it? (yes or no) "
  2020-09-13 13:28 bug#43376: A more aware "compilation process is running; kill it? (yes or no) " 積丹尼 Dan Jacobson
@ 2020-09-13 17:14 ` Lars Ingebrigtsen
  2020-09-14 12:29   ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-13 17:14 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 43376

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> When one is looking at the prompt
> "A compilation process is running; kill it? (yes or no) "
> but then the compilation finishes,
> wouldn't it be great if the prompt realized that fact and changed itself?

Perhaps...  but if it changes just when you're about to type "yes", then
you'll end up typing "yes" into some random buffer, which isn't nice.

I this the UI should avoid, as far as possible, pulling the rug out from
under the user.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#43376: A more aware "compilation process is running; kill it? (yes or no) "
  2020-09-13 17:14 ` Lars Ingebrigtsen
@ 2020-09-14 12:29   ` 積丹尼 Dan Jacobson
  2020-09-14 12:30     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-09-14 12:29 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 43376

Yes, one would think: "When we realize that now there is nothing to ask
about, just go ahead and do what the user originally wanted (run the
second compilation.)"

OK, but maybe he forgot he had a compilation running, and at least he
would like to see the output first before running the second
compilation.

So maybe when we realize there is nothing left to ask the user about,
first throwaway any answer he already started typing,
and change the question to just
"proceed? (y or n)".

>>>>> "LI" == Lars Ingebrigtsen <larsi@gnus.org> writes:

LI> I this    the UI should avoid, as far as possible, pulling the rug out from
      ^think^
LI> under the user.






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#43376: A more aware "compilation process is running; kill it? (yes or no) "
  2020-09-14 12:29   ` 積丹尼 Dan Jacobson
@ 2020-09-14 12:30     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-14 12:30 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 43376

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> So maybe when we realize there is nothing left to ask the user about,
> first throwaway any answer he already started typing,
> and change the question to just
> "proceed? (y or n)".

Same thing, really -- the user is starting to type "yes" and then it
changes to something else.  So I don't think this is a workeable idea.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-14 12:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-13 13:28 bug#43376: A more aware "compilation process is running; kill it? (yes or no) " 積丹尼 Dan Jacobson
2020-09-13 17:14 ` Lars Ingebrigtsen
2020-09-14 12:29   ` 積丹尼 Dan Jacobson
2020-09-14 12:30     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).