[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: font-lock-extend-region-wholelines
From: |
Stefan Monnier |
Subject: |
Re: font-lock-extend-region-wholelines |
Date: |
Wed, 16 Aug 2006 15:08:12 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> A silly question: Shouldn't the bobps below be bolps?
Yes, of course. Duh!
Thanks for checking my code.
Stefan
> (defun font-lock-extend-region-wholelines ()
> "Move fontification boundaries to beginning of lines."
> (let ((changed nil))
> (goto-char font-lock-beg)
> (unless (bobp) (setq changed t font-lock-beg (line-beginning-position)))
> ^
> (goto-char font-lock-end)
> (unless (bobp) (setq changed t font-lock-end (line-beginning-position 2)))
> ^
> changed))
> _______________________________________________
> Emacs-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-devel