GNU bug report logs - #16493
24.3.50; (setq search-invisible t) is useless, let's allow to turn visible-mode temporarily on

Previous Next

Package: emacs;

Reported by: Bastien Guerry <bzg <at> altern.org>

Date: Sun, 19 Jan 2014 14:57:01 UTC

Severity: normal

Found in version 24.3.50

Full log


Message #59 received at 16493 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Bastien <bzg <at> gnu.org>, 16493 <at> debbugs.gnu.org
Subject: Re: 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 08:24:03 -0400
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> I was thinking all this complication could be avoided if we just allowed
>> (overlay-put OVERLAY 'invisible nil) to make text visible.
>
> No need for that.

I may have confused things a bit by forgetting to mention I was speaking
of overlays on top of an existing invisible text property (see my reply
to Eli).

> You can do
>
>     (overlay-put OVERLAY 'invisible 'visible)
>
> to get the same result without far-reaching changes to the C code.

Um, no, that gives the opposite effect.

(let ((p (point))
      overlay)
  (insert "(" (propertize "invisible" 'invisible t) ")")
  (setq overlay (make-overlay p (point)))
  ;; All text, including parens, becomes invisible.
  (overlay-put overlay 'invisible 'visible))






This bug report was last modified 6 years and 33 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.