emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Temporarily select-window, without updating mode-line face and curso


From: Eli Zaretskii
Subject: Re: Temporarily select-window, without updating mode-line face and cursor fill?
Date: Sat, 01 May 2021 22:31:34 +0300

> From: JD Smith <jdtsmith@gmail.com>
> Date: Sat, 1 May 2021 14:46:31 -0400
> 
> I’m working on a small “in mode-line” scroll bar, and have implemented mouse 
> events for it, which are working well.  When I interact using the mouse with 
> the mode line of a non-selected window, I need to have that window 
> temporarily selected, so I can calculate its line offsets and move within it. 
>  But (just as for regular scrollbars), I’d like to retain the originally 
> active window afterwards.

Please explain in more detail why do you think you need to select the
window.  What are those "line offsets", and why "move within it"
requires to select the window?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]