mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(occur-accumulate-lines, occur-engine): Avoid warnings.
This commit is contained in:
parent
5b0102e26a
commit
9976909669
1 changed files with 7 additions and 4 deletions
|
|
@ -823,9 +823,10 @@ If the value is nil, don't highlight the buffer names specially."
|
|||
(setq count (+ count (if forwardp -1 1)))
|
||||
(setq beg (line-beginning-position)
|
||||
end (line-end-position))
|
||||
(if (and keep-props (boundp 'jit-lock-mode) jit-lock-mode
|
||||
(if (and keep-props (if (boundp 'jit-lock-mode) jit-lock-mode)
|
||||
(text-property-not-all beg end 'fontified t))
|
||||
(jit-lock-fontify-now beg end))
|
||||
(if (fboundp 'jit-lock-fontify-now)
|
||||
(jit-lock-fontify-now beg end)))
|
||||
(push
|
||||
(funcall (if keep-props
|
||||
#'buffer-substring
|
||||
|
|
@ -1029,9 +1030,11 @@ See also `multi-occur'."
|
|||
endpt (line-end-position)))
|
||||
(setq marker (make-marker))
|
||||
(set-marker marker matchbeg)
|
||||
(if (and keep-props (boundp 'jit-lock-mode) jit-lock-mode
|
||||
(if (and keep-props
|
||||
(if (boundp 'jit-lock-mode) jit-lock-mode)
|
||||
(text-property-not-all begpt endpt 'fontified t))
|
||||
(jit-lock-fontify-now begpt endpt))
|
||||
(if (fboundp 'jit-lock-fontify-now)
|
||||
(jit-lock-fontify-now begpt endpt)))
|
||||
(setq curstring (buffer-substring begpt endpt))
|
||||
;; Depropertize the string, and maybe
|
||||
;; highlight the matches
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue