From: Spencer Baugh <sbaugh@janestreet.com>
To: emacs-devel@gnu.org
Subject: Re: A UI approach for making synchronous commands asynchronous
Date: Tue, 01 Aug 2023 10:09:14 -0400 [thread overview]
Message-ID: <ier5y5yc0s5.fsf@janestreet.com> (raw)
In-Reply-To: ierjzumtrt0.fsf@janestreet.com
Spencer Baugh <sbaugh@janestreet.com> writes:
> Commands supporting this feature could start out with a blocking UI.
> When such a command is run, Emacs just blocks and doesn't respond to
> user input. The user can wait for as long as they like, and can
> interrupt it with C-g. This is how things are today.
>
> The new feature is that if they get annoyed with how long a command is
> taking, they can hit C-M-z to make the command "go into the background":
> convert to some kind of non-blocking UI, like displaying a buffer with
> progress or messaging when the task is done, as appropriate for the
> individual command.
vc operations in particular would benefit this approach is vc
operations. In particular, see bug#21969
That bug happened after vc-diff was made async: now diffs would pop up a
window which asynchronously would have the diff inserted into it. But a
user complained that this was a worse user experience when the diff was
both empty and fast to generate: in that case, simply synchronously
running the diff and messaging "No diff" is nicer.
So the command was made async, but then reverted to sync because of UI
issues.
So as I said elsewhere, in bug#21969 the asynchronous implementation
*already* exists. What was missing was a good user experience for the
asynchronous implementation.
I think my "backgrounding" approach would be a perfect solution to this:
start out blocking the UI waiting for the diff, but let the user hit a
key to "background" it, to immediately create the window which will
receive the diff asynchronously. That works great both in fast and slow
diff-generation scenarios.
next prev parent reply other threads:[~2023-08-01 14:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-26 19:07 A UI approach for making synchronous commands asynchronous Spencer Baugh
2023-07-27 5:58 ` Eli Zaretskii
2023-07-27 14:22 ` Spencer Baugh
2023-07-27 15:09 ` Eli Zaretskii
2023-07-27 15:32 ` Spencer Baugh
2023-07-27 17:31 ` Eli Zaretskii
2023-07-27 18:22 ` Spencer Baugh
2023-07-27 19:32 ` Eli Zaretskii
2023-07-28 4:32 ` tomas
2023-07-28 6:21 ` Eli Zaretskii
2023-08-01 14:09 ` Spencer Baugh [this message]
2023-08-01 16:53 ` Helmut Eller
2023-08-01 17:11 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ier5y5yc0s5.fsf@janestreet.com \
--to=sbaugh@janestreet.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.