[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What to do when font-lock-flush + font-lock-ensure do less than font
From: |
Eli Zaretskii |
Subject: |
Re: What to do when font-lock-flush + font-lock-ensure do less than font-lock-fontify-buffer? |
Date: |
Tue, 23 Feb 2016 18:57:18 +0200 |
> Cc: address@hidden
> From: Clément Pit--Claudel <address@hidden>
> Date: Mon, 22 Feb 2016 12:28:13 -0500
>
> (with-current-buffer (get-buffer-create "temp")
> (erase-buffer)
> (setq-default prettify-symbols-unprettify-at-point 'right-edge)
> (emacs-lisp-mode)
> (prettify-symbols-mode)
> (insert "lambda\n\nlambda")
> (pop-to-buffer (current-buffer)))
>
> Moving around in this buffer unprettifies and reprettifies ‘lambda’s into
> ‘λ’s as the point moves in and out of them. Setting ‘font-lock-fontified’ to
> nil breaks that mechanism (the ‘λ’s are unprettified but no reprettified),
> and no series of ‘font-lock-flush’ and ‘font-lock-ensure’ will reprettify
> them.
>
> Does this help?
Yes, thanks. I will look into this soon.
Re: What to do when font-lock-flush + font-lock-ensure do less than font-lock-fontify-buffer?, Stefan Monnier, 2016/02/23