From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry EMERY Newsgroups: gmane.emacs.bugs Subject: bug#55768: 26.3; isearch highlighting in dired Date: Fri, 3 Jun 2022 09:23:12 +0200 Message-ID: References: <87leuebeyj.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000060046c05e085ff9c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36008"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55768@debbugs.gnu.org, Juri Linkov To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 03 10:21:03 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nx2YJ-0009Eh-Ar for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Jun 2022 10:21:03 +0200 Original-Received: from localhost ([::1]:58966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nx2YH-00042v-RZ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Jun 2022 04:21:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nx2XL-0003zt-4K for bug-gnu-emacs@gnu.org; Fri, 03 Jun 2022 04:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33081) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nx2XK-0000LC-QR for bug-gnu-emacs@gnu.org; Fri, 03 Jun 2022 04:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nx2XK-0007Uf-MY for bug-gnu-emacs@gnu.org; Fri, 03 Jun 2022 04:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry EMERY Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jun 2022 08:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55768 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 55768-submit@debbugs.gnu.org id=B55768.165424437028739 (code B ref 55768); Fri, 03 Jun 2022 08:20:02 +0000 Original-Received: (at 55768) by debbugs.gnu.org; 3 Jun 2022 08:19:30 +0000 Original-Received: from localhost ([127.0.0.1]:55207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nx2Wn-0007TR-Il for submit@debbugs.gnu.org; Fri, 03 Jun 2022 04:19:29 -0400 Original-Received: from mail-qt1-f174.google.com ([209.85.160.174]:39672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nx1ea-00066d-Sv for 55768@debbugs.gnu.org; Fri, 03 Jun 2022 03:23:30 -0400 Original-Received: by mail-qt1-f174.google.com with SMTP id x7so5001930qta.6 for <55768@debbugs.gnu.org>; Fri, 03 Jun 2022 00:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=i8+KYOUjtnjhx+cHUn6wnPw9LpTtxfhbtyqwxRecKLo=; b=EUjiq82o+kTiRvqVpJ48BHd4Rfea+YIX9lWPsLe85geDx1NWM7noC2zNokuJBggzim eDIxqukfiKsGAC46VDbprsoix8lIh4ae2T8WkNCuHVvAXpo7wp7BewAq/1ZOPcXr0QWy xadAfjgLXORYlf6yz2W4ZN+5KXy76TRWDB7nzIi9gH4RRPj7cf6hT8VmxictFTWhHMT4 Fv8I+Gl8KPEHqJGsK8NDEt36+Tp1rjX1dh8b6vEIjhONzWmiaktdhj5SzdmJpOBW4bSL 3ACw5AenVZGtqNDafWpFqjZbLVxfPKOwbI5X3sjWPCDrsU6yG9NIkKRrmwcQjg3dikba V3wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=i8+KYOUjtnjhx+cHUn6wnPw9LpTtxfhbtyqwxRecKLo=; b=TNt1h7qn1Z0JxFqHdyfIkF5y7ay/H3/YlOXrmpTlLIuY/Q8pyMgHvr7PtHV+50lWnh QIMLDDPZ/O1RyRMpgXB9VrDorbURqG/wPTFb+gOq4vHkOjAeqOF71cESJgpApkiAVuy5 w1/hvTQwZdd/+wOdFOj+X39UdF/w0U5GYzZpYO5KvkCOUCC7IljWi+qfDxevwUYs/Xpx Ptr6tFHkE6JpzJtRVOO7kmFoXCr5b3wH51HBdpHDPzxz4L0ofpE5sD5YY49LiL5Phq7Y 5s8OMEVnRTzs6rk7BBsyyBfHyTluHd28NUb1w2zYG2csT4O49P7T6AdARsV1+RJ6a/j1 95VA== X-Gm-Message-State: AOAM531qgspZ+iyUevRFKxkewjqbgso98oy+xYF5YdlTBVLAakhAdiSz Jdio6ZuCiuMp1VhTyaSMMVS4IPUepDqwMyN2Cuw= X-Google-Smtp-Source: ABdhPJwG79/w/Jvi+6OzDrO1cniWNYk9ztaAYRVrWCJzz1qDG4HF2zcWUtavRUcpxa3omC+zjoSoZ/OAvlgNQoBMQH4= X-Received: by 2002:ac8:5795:0:b0:2fa:3038:b8f3 with SMTP id v21-20020ac85795000000b002fa3038b8f3mr6392606qta.659.1654241003306; Fri, 03 Jun 2022 00:23:23 -0700 (PDT) In-Reply-To: <87leuebeyj.fsf@gnus.org> X-Mailman-Approved-At: Fri, 03 Jun 2022 04:19:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:233594 Archived-At: --00000000000060046c05e085ff9c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (invisible-p (point)) has already been tested in the previous line, but it only tests that there is a text property, not actual invisibility: (defun invisible-p (pos) (get-text-property pos 'invisible)) If the text property `invisible' has another symbol than t as value and `buffer-invisibility-spec' is a list (which is the case in dired, see below), then the text will only be invisible if that symbol is currently part of `buffer-invisibility-spec' (and that is used by `dired-hide-details-mode'). buffer-invisibility-spec is a variable defined in =E2=80=98C source code=E2= =80=99. Its value is (t) Local in buffer lisp; global value is t Automatically becomes buffer-local when set. Documentation: Invisibility spec of this buffer. The default is t, which means that text is invisible if it has a non-nil =E2=80=98invisible=E2=80=99 property. This variable can also be a list. The list can have two kinds of elements: =E2=80=98ATOM=E2=80=99 and =E2=80=98(ATOM . ELLIPSIS)=E2=80=99. A text cha= racter is invisible if its =E2=80=98invisible=E2=80=99 property is =E2=80=98ATOM=E2=80=99, or has an = =E2=80=98invisible=E2=80=99 property that is a list that contains =E2=80=98ATOM=E2=80=99. If the =E2=80=98(ATOM . ELLIPSIS)=E2=80=99 form is used, and =E2=80=98ELLIP= SIS=E2=80=99 is non-nil, an ellipsis will be displayed after the invisible characters. Setting this variable is very fast, much faster than scanning all the text in the buffer looking for properties to change. --00000000000060046c05e085ff9c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(invisible-p (point)) has already been tested in the previ= ous line, but it only tests that there is a text property, not actual invis= ibility:
(defun invisible-p (pos)
=C2=A0 (get-text-property pos '= invisible))

If the text property `invisible' has= another symbol than t as value and `buffer-invisibility-spec' is a lis= t (which is the case in dired, see below), then the text will only be invis= ible if that symbol is currently part of `buffer-invisibility-spec' (an= d that is used by `dired-hide-details-mode').

= buffer-invisibility-spec is a variable defined in =E2=80=98C source code=E2= =80=99.
Its value is (t)
Local in buffer lisp; global value is t
<= br>=C2=A0 Automatically becomes buffer-local when set.

Documentation= :
Invisibility spec of this buffer.
The default is t, which means tha= t text is invisible if it has a non-nil
=E2=80=98invisible=E2=80=99 prop= erty.
This variable can also be a list.=C2=A0 The list can have two kind= s of elements:
=E2=80=98ATOM=E2=80=99 and =E2=80=98(ATOM . ELLIPSIS)=E2= =80=99.=C2=A0 A text character is invisible if its
=E2=80=98invisible=E2= =80=99 property is =E2=80=98ATOM=E2=80=99, or has an =E2=80=98invisible=E2= =80=99 property that is a list
that contains =E2=80=98ATOM=E2=80=99.
= If the =E2=80=98(ATOM . ELLIPSIS)=E2=80=99 form is used, and =E2=80=98ELLIP= SIS=E2=80=99 is non-nil, an
ellipsis will be displayed after the invisib= le characters.
Setting this variable is very fast, much faster than scan= ning all the text in
the buffer looking for properties to change.

--00000000000060046c05e085ff9c--