[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16493: 24.3.50; (setq search-invisible t) is useless, let's allow to
From: |
Noam Postavsky |
Subject: |
bug#16493: 24.3.50; (setq search-invisible t) is useless, let's allow to turn visible-mode temporarily on |
Date: |
Tue, 30 Apr 2019 07:15:22 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Noam Postavsky <npostavs@gmail.com>
>> Date: Tue, 30 Apr 2019 00:34:41 -0400
>> Cc: 16493@debbugs.gnu.org, Stefan Monnier <monnier@IRO.UMontreal.CA>
>>
>> I was thinking all this complication could be avoided if we just allowed
>> (overlay-put OVERLAY 'invisible nil) to make text visible.
>
> But we already do: overlay-get returns nil in that case, and the text
> is revealed, so the original code before your proposed changes already
> does the job. What am I missing? Some context where the above
> doesn't work?
Sorry, I wasn't clear. I was talking about the situation where there is
a non-nil invisible text property (or a different existing overlay with
with a non-nil invisible property). For example:
(let ((p (point))
overlay)
(insert "(" (propertize "invisible" 'invisible t) ")")
(setq overlay (make-overlay p (point)))
;; Text remains invisible.
(overlay-put overlay 'invisible nil))