Re: Removing notmuch-wash-excerpt-citations from hook breaks fontlocking

Subject: Re: Removing notmuch-wash-excerpt-citations from hook breaks fontlocking

Date: Thu, 26 Jul 2018 11:42:38 +0800

To: notmuch@notmuchmail.org, notmuch@freelists.org

Cc:

From: Sean Whitton


Hello,

On Wed 25 Jul 2018 at 04:33PM +0800, David Bremner wrote:

> The issue is that the notmuch-wash-cited-text is applied in
> notmuch-was-excerpt-citations. A simple solution would be to make
> another wash function that did less (only did the overlay application)
> and use that.

Thank you for your reply.

Here is how to get what I wanted when I ran into this bug:

  ;; don't collapse cited text
  ;; We ought to be able to just remove
  ;; `notmuch-wash-excerpt-citations' from
  ;; `notmuch-show-insert-text/plain-hook', but that function is also
  ;; responsible for colouring cited text (this is an upstream bug:
  ;; that function does the colouring for performance reasons but the
  ;; right answer is to use fontlocking, not overlays, for the colouring)
  (setq notmuch-wash-citation-lines-prefix 10000
        notmuch-wash-citation-lines-suffix 10000)

-- 
Sean Whitton
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: