Mercurial > emacs
comparison lisp/replace.el @ 59029:8c7551156063
(occur-accumulate-lines, occur-engine):
Make forcing deferred font-lock fontification jit-specific.
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Fri, 17 Dec 2004 16:57:43 +0000 |
parents | feb3eb61d019 |
children | 285e069cecd2 eac554634bfa |
comparison
equal
deleted
inserted
replaced
59028:4b8110af6bbe | 59029:8c7551156063 |
---|---|
797 (eobp) | 797 (eobp) |
798 (bobp)))) | 798 (bobp)))) |
799 (setq count (+ count (if forwardp -1 1))) | 799 (setq count (+ count (if forwardp -1 1))) |
800 (setq beg (line-beginning-position) | 800 (setq beg (line-beginning-position) |
801 end (line-end-position)) | 801 end (line-end-position)) |
802 (if (and keep-props font-lock-mode | 802 (if (and keep-props (boundp 'jit-lock-mode) jit-lock-mode |
803 (text-property-not-all beg end 'fontified t)) | 803 (text-property-not-all beg end 'fontified t)) |
804 (font-lock-fontify-region beg end)) | 804 (jit-lock-fontify-now beg end)) |
805 (push | 805 (push |
806 (funcall (if keep-props | 806 (funcall (if keep-props |
807 #'buffer-substring | 807 #'buffer-substring |
808 #'buffer-substring-no-properties) | 808 #'buffer-substring-no-properties) |
809 beg end) | 809 beg end) |
1006 (goto-char matchbeg) | 1006 (goto-char matchbeg) |
1007 (setq begpt (line-beginning-position) | 1007 (setq begpt (line-beginning-position) |
1008 endpt (line-end-position))) | 1008 endpt (line-end-position))) |
1009 (setq marker (make-marker)) | 1009 (setq marker (make-marker)) |
1010 (set-marker marker matchbeg) | 1010 (set-marker marker matchbeg) |
1011 (if (and keep-props font-lock-mode | 1011 (if (and keep-props (boundp 'jit-lock-mode) jit-lock-mode |
1012 (text-property-not-all begpt endpt 'fontified t)) | 1012 (text-property-not-all begpt endpt 'fontified t)) |
1013 (font-lock-fontify-region begpt endpt)) | 1013 (jit-lock-fontify-now begpt endpt)) |
1014 (setq curstring (buffer-substring begpt endpt)) | 1014 (setq curstring (buffer-substring begpt endpt)) |
1015 ;; Depropertize the string, and maybe | 1015 ;; Depropertize the string, and maybe |
1016 ;; highlight the matches | 1016 ;; highlight the matches |
1017 (let ((len (length curstring)) | 1017 (let ((len (length curstring)) |
1018 (start 0)) | 1018 (start 0)) |