branch: externals/ement commit 43ab8f2e091cecfd897df857ab2714a42f75e02b Author: Adam Porter <a...@alphapapa.net> Commit: Adam Porter <a...@alphapapa.net>
Fix: (ement-room-scroll-up-mark-read) Select correct room window --- README.org | 3 ++- ement-room.el | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 361fae612a..6eac18211c 100644 --- a/README.org +++ b/README.org @@ -262,7 +262,8 @@ However, note that ~matrix-client~ is a more mature client and is very reliable ** 0.1.1 -Nothing new yet. +*Fixed* ++ Function ~ement-room-scroll-up-mark-read~ selects the correct room window. ** 0.1 diff --git a/ement-room.el b/ement-room.el index 1970a8f679..36eb72b065 100644 --- a/ement-room.el +++ b/ement-room.el @@ -1202,7 +1202,8 @@ Interactively, set the current buffer's ROOM's TOPIC." '("*Ement Taxy*" "*Ement Rooms*"))) (window-list)))) ;; Rooms buffer already displayed: select its window and move to next unread room. - (with-selected-window rooms-window + (progn + (select-window rooms-window) (funcall (pcase-exhaustive major-mode ('ement-room-list-mode #'ement-room-list-next-unread) ('ement-taxy-mode #'ement-taxy-next-unread))))