-
-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
focus
is a concept that only applies to window
and input-area
#2464
Comments
Note however that In (prompter:selection-actions #'(lambda (buffer)
(set-current-buffer buffer :focus nil))) which is meant to effectively display the buffer in the foreground, but without focusing the GTK widget so that the user keeps typing in the prompt-buffer. All that said, the naming and the API is confusing. It could be improved, but |
Oh I see! The issue is that we use the word |
This came up in my ongoing exploration of rethinking the prompt area UI (#2687) and I think it belongs here. I see this as an issue because the interaction:
Make sense? (I tried to explain this in the recently closed #2706, but I was not really getting the issue yet.) |
Yes, makes total sense! |
@lansingthomas I've moved your valuable comment here (see Problem 3). The purpose of this issue is slightly different so, with your authorization, I'd like to remove your comment from here so that we keep discussions focused. |
With respect to buffers, it makes little sense to say which one has the focus.
There are buffers and, at any moment, there's a single
current-buffer
(which may not correspond to the displayed one).To stress the fact that buffers can also be switched to, i.e. bring them to display, it would be better to use concepts such as background/foreground.
I suggest switching from:
to:
If you're wondering about
set-current-buffer
,, there are only three of the following calls
(set-current-buffer buffer :focus nil)
, which should probably be replaced by(with-current-buffer ...)
.In other words, I'm saying that the
focus
key ofset-current-buffer
should be deprecated.The text was updated successfully, but these errors were encountered: