help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [el-search] How to search string excluding docstring?


From: Michael Heerdegen
Subject: Re: [el-search] How to search string excluding docstring?
Date: Mon, 25 Dec 2017 15:34:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Chunyang Xu <mail@xuchunyang.me> writes:

>   (and (pred stringp)
>        (guard (not (eq 'font-lock-doc-face (get-char-property (point) 
> 'face))))
>        (string "foo"))
>
> but it doesn't work for files which is not already opened, I guess it is
> because font-lock-mode is only active when I open the file.

Exactly.  It's intentional, because applying the major mode and
fontifying is by a factor n slower than el-searching with most patterns.


Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]