emacs-devel
[Top][All Lists]
Advanced

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

search-invisible and friends


From: Lars Ingebrigtsen
Subject: search-invisible and friends
Date: Wed, 09 Sep 2020 14:39:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

I have a mode where I plop in base64 image data, but hide it all under a
'display property to display the image itself.

It's annoying that `C-s' lands in the middle of the base64 image data,
so I wondered whether there was any way to control that, and search
invisible seemed like the nearest thing.

But it only works for text that's, well, invisible, and not text that's
hidden by a display property.

Simple test:

(insert (propertize "foo" 'display "bar"))
(setq search-invisible nil)

C-r foo will then land in that string.

Does Emacs have this functionality somewhere?  If not, I think it
should, and perhaps (or perhaps not?) by piggy-backing on the
search-invisible variable.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




reply via email to

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