|
From: | Juri Linkov |
Subject: | bug#31094: 25.2: Feature Reuqest: apropos-value: limit scope [CODE INCLUDED] |
Date: | Mon, 24 Jan 2022 21:19:07 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
>> In read-only buffers outline-minor-mode-highlight-buffer currently does: >> >> (let ((regexp (concat "^\\(?:" outline-regexp "\\).*$"))) >> (while (re-search-forward regexp nil t) >> (let ((overlay (make-overlay (match-beginning 0) (match-end 0)))) >> >> but can use anything including special properties instead of regexps. > > Well, we'd add a separate loop with (text-property-search-forward > 'outline-header) or something? Whether to use a re-search-forward loop or a text-property-search-forward loop could depend on a new buffer-local variable, like hi-lock-use-overlays added to hi-lock.el.
[Prev in Thread] | Current Thread | [Next in Thread] |