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 #71 received at 16493 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: bzg <at> gnu.org, 16493 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca
Subject: Re: bug#16493: 24.3.50;
 (setq search-invisible t) is useless, let's allow to turn
 visible-mode temporarily on
Date: Wed, 01 May 2019 20:02:07 +0300
> From: Noam Postavsky <npostavs <at> gmail.com>
> Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>,  bzg <at> gnu.org,  16493 <at> debbugs.gnu.org
> Date: Wed, 01 May 2019 07:40:31 -0400
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> 
> >> PS: To fix this quirk, we should change buffer-invisibility-spec's
> >> default value to nil (or `(t)`, maybe) instead of t.
> 
> (t) makes sense, I'd say.

The difference (or lack thereof) between t and (t) is something that's
confusing, and should be preferably avoided.

> It's not a change to semantics though, just the default value.  And
> starting from the current default of t, if some code does
> (add-to-invisibility-spec 'foo) followed by
> (remove-from-invisibility-spec 'foo) you get (t), so arguably just
> starting from there in the first place makes things less confusing than
> they are now.

I'd rather we fixed the remove-from-invisibility-spec result than
start promoting (t).




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

Previous Next


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