bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#45688: 28.0.50; New action for display-buffer?


From: martin rudalics
Subject: bug#45688: 28.0.50; New action for display-buffer?
Date: Thu, 7 Jan 2021 14:17:22 +0100

> As Martin explained, display-buffer-use-some-window almost does this,
> but since switching to the buffer doesn't count as "use", it doesn't
> work for this particular use case.

Switching to the buffer does count as "use" but 'display-buffer' doesn't
switch to the buffer because it doesn't select it.

> Adding another action here (that just calls
> display-buffer-use-some-window, but then marks the window as having been
> used) seems trivial, so I think I'll try doing that and see what that
> feels like.

Add a function say 'window-bump-use-time' that does

      w->use_time = ++window_select_count;

and call that from `display-buffer'.

martin





reply via email to

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