Re: [PATCH v7 1/1] emacs: notmuch-tree-outline-mode

Subject: Re: [PATCH v7 1/1] emacs: notmuch-tree-outline-mode

Date: Mon, 12 Dec 2022 12:06:22 -0400

To: Jose A. Ortega Ruiz

Cc: notmuch@notmuchmail.org

From: David Bremner


"Jose A. Ortega Ruiz" <jao@gnu.org> writes:

>
> the intent is to know whether the notmuch-tree-message-buffer is
> displaying the message the point in notmuch-tree is at, so it's not
> enough that there's a window showing it.  but yes, you're right that's
> not a good way of checking.  Perhaps this:
>
>      (defsubst notmuch-tree-outline--message-open-p ()
>        (and (buffer-live-p notmuch-tree-message-buffer)
>             (get-buffer-window notmuch-tree-message-buffer)
>             (let ((id (notmuch-tree-get-message-id)))
>               (with-current-buffer notmuch-tree-message-buffer
>                 (string= (notmuch-show-get-message-id) (or id ""))))))
>
> ?

yeah, that looks better to me as a general approach
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: