GNU bug report logs - #45688
28.0.50; New action for display-buffer?

Previous Next

Package: emacs;

Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>

Date: Wed, 6 Jan 2021 12:03:02 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 28.1

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


Message #41 received at 45688 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 45688 <at> debbugs.gnu.org
Subject: Re: 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




This bug report was last modified 3 years and 283 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.