* font-lock-extend-region-wholelines
@ 2006-08-16 15:17 martin rudalics
2006-08-16 19:08 ` font-lock-extend-region-wholelines Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: martin rudalics @ 2006-08-16 15:17 UTC (permalink / raw)
A silly question: Shouldn't the bobps below be bolps?
(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))
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: font-lock-extend-region-wholelines
2006-08-16 15:17 font-lock-extend-region-wholelines martin rudalics
@ 2006-08-16 19:08 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2006-08-16 19:08 UTC (permalink / raw)
Cc: emacs-devel
> 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
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-16 19:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-16 15:17 font-lock-extend-region-wholelines martin rudalics
2006-08-16 19:08 ` font-lock-extend-region-wholelines Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).