From unknown Sat Jun 21 05:19:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8914: 23.3; Overlay overlapping buffer-invisibility-spec behaves oddly Resent-From: David Aspinall Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Jun 2011 16:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8914 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8914@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.130867300425322 (code B ref -1); Tue, 21 Jun 2011 16:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Jun 2011 16:16:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QZ3d3-0006aJ-ON for submit@debbugs.gnu.org; Tue, 21 Jun 2011 12:16:42 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QZ3L0-0004bv-SR for submit@debbugs.gnu.org; Tue, 21 Jun 2011 11:58:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ3Ku-00047s-3d for submit@debbugs.gnu.org; Tue, 21 Jun 2011 11:57:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:46171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ3Kt-00047k-PH for submit@debbugs.gnu.org; Tue, 21 Jun 2011 11:57:55 -0400 Received: from eggs.gnu.org ([140.186.70.92]:57211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ3Kr-0003pA-Cp for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2011 11:57:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ3Kp-00047I-8l for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2011 11:57:53 -0400 Received: from nougat.ucs.ed.ac.uk ([129.215.13.205]:33963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ3Ko-000478-Nb for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2011 11:57:51 -0400 Received: from dandy.inf.ed.ac.uk (dandy.inf.ed.ac.uk [129.215.33.80]) by nougat.ucs.ed.ac.uk (8.13.8/8.13.4) with ESMTP id p5LFvWd5028280; Tue, 21 Jun 2011 16:57:32 +0100 (BST) Received: from [10.150.20.53] ([193.1.104.2]) (authenticated bits=0) by dandy.inf.ed.ac.uk (8.13.8/8.13.8) with ESMTP id p5LFvWD3031942 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 21 Jun 2011 16:57:33 +0100 From: David Aspinall Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 21 Jun 2011 16:57:32 +0100 Message-Id: <0E1AAFEC-4C0B-4A37-993C-8CD0133BC5C8@ed.ac.uk> Mime-Version: 1.0 X-Mailer: Apple Mail (2.1084) X-Edinburgh-Scanned: at nougat.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus Content-Disposition: inline X-Scanned-By: MIMEDefang 2.60 on 129.215.13.205 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Tue, 21 Jun 2011 12:16:35 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Insert the text below into a buffer, M-x eval-buffer RET M-x toggle-invis The smaller area remains visible, although there is a surrounding overlay which has an invisibility spec which should cover the revealed characters.=20=20 I suppose this is debatable, but intuitively I would expect the whole larger region to be made invisible. It seems similar to the case where faces properties are not merged when one might expect them to be, e.g. see how mouse highlighting in *info* buffer obliterates underline and colouring of text underneath. See report http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4911 (how can I find out the status of this?) - David Aspinall -------- snip ------ ;;; ;;; =3D=3D=3D Test area for invisibility =3D=3D=3D ;;; (defvar vis nil) (overlay-put (make-overlay 18 22) 'invisible 'smaller) (overlay-put (make-overlay 9 43) 'invisible 'larger) (defun toggle-invis () (interactive) (if vis=20 (add-to-invisibility-spec '(larger . t)) (remove-from-invisibility-spec '(larger . t))) (setq vis (not vis))) In GNU Emacs 23.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.3) of 2011-03-22 on x86-15.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.10905000 configured using `configure '--build=3Dx86_64-redhat-linux-gnu' '--host=3D= x86_64-red hat-linux-gnu' '--program-prefix=3D' '--disable-dependency-tracking' '--pre= fix=3D/usr ' '--exec-prefix=3D/usr' '--bindir=3D/usr/bin' '--sbindir=3D/usr/sbin' '--s= ysconfdir=3D/e tc' '--datadir=3D/usr/share' '--includedir=3D/usr/include' '--libdir=3D/usr= /lib64' '--l ibexecdir=3D/usr/libexec' '--localstatedir=3D/var' '--sharedstatedir=3D/var= /lib' '--man dir=3D/usr/share/man' '--infodir=3D/usr/share/info' '--with-dbus' '--with-g= if' '--wit h-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' = '--wit h-x-toolkit=3Dgtk' 'build_alias=3Dx86_64-redhat-linux-gnu' 'host_alias=3Dx8= 6_64-redhat-lin ux-gnu' 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE= =3D2 -fexcept ions -fstack-protector --param=3Dssp-buffer-size=3D4 -m64 -mtune=3Dgeneric'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_GB.utf8 value of $XMODIFIERS: @im=3Dnone locale-coding-system: utf-8-unix default enable-multibyte-characters: t Features: (shadow sort mail-extr message idna sendmail ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 sha1-el hex-util hashcash mail-utils emacsbug pp parse-time vc-cvs tar-mode jka-compr tabify man assoc make-mode preview prv-emacs byte-opt warnings tex-bar tex-buf toolbar-x noutline outline font-latex bytecomp byte-compile latexenc multi-isearch dired-aux latex edmacro kmacro tex-style tex advice advice-preload bibtex dired regexp-opt vc-dispatcher vc-svn help-mode easymenu view help-fns ansi-color shell comint ring proof-site proof-autoloads pg-vars paren cus-start cus-load preview-latex emacs-goodies-loaddefs easy-mmode tex-site auto-loads tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) --=20 The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From unknown Sat Jun 21 05:19:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8914: 23.3; Overlay overlapping buffer-invisibility-spec behaves oddly Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2020 15:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8914 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: David Aspinall Cc: 8914@debbugs.gnu.org Received: via spool by 8914-submit@debbugs.gnu.org id=B8914.160743983431357 (code B ref 8914); Tue, 08 Dec 2020 15:04:01 +0000 Received: (at 8914) by debbugs.gnu.org; 8 Dec 2020 15:03:54 +0000 Received: from localhost ([127.0.0.1]:59122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmeWv-00089g-CC for submit@debbugs.gnu.org; Tue, 08 Dec 2020 10:03:54 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmeWf-00088v-7r for 8914@debbugs.gnu.org; Tue, 08 Dec 2020 10:03:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=60hr41JeJ5UKjBsPZXqCq5lh7IzDwHkeS+txUuGUv9I=; b=Tjn1Ee1WjqZ1rg3hORH8mYBb4K 8N9OMELpwEfjSq0g5G6U5LPr3bVDDeX74JXnMuxXl/gjR7hznqkTXkR8tL2RZH7rjIH2q/Bbh97hL wDh4+Y/fVbIUCkJc5b9c7MRMfwHWhlisxpraG9B2Yv1R+gxaxfJob03Wh9o5l9J3TgWs=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmeWW-0003Lj-8Z; Tue, 08 Dec 2020 16:03:30 +0100 From: Lars Ingebrigtsen References: <0E1AAFEC-4C0B-4A37-993C-8CD0133BC5C8@ed.ac.uk> X-Now-Playing: Sumac's _May You Be Held_: "A Prayer for Your Path" Date: Tue, 08 Dec 2020 16:03:27 +0100 In-Reply-To: <0E1AAFEC-4C0B-4A37-993C-8CD0133BC5C8@ed.ac.uk> (David Aspinall's message of "Tue, 21 Jun 2011 16:57:32 +0100") Message-ID: <877dpsibls.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: David Aspinall writes: > Insert the text below into a buffer, > > M-x eval-buffer RET > M-x toggle-invis > > The smaller area remains visible, although there is a surrounding > overlay which has an invisibility spec which s [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) David Aspinall writes: > Insert the text below into a buffer, > > M-x eval-buffer RET > M-x toggle-invis > > The smaller area remains visible, although there is a surrounding > overlay which has an invisibility spec which should cover the revealed > characters. > > I suppose this is debatable, but intuitively I would expect the whole > larger region to be made invisible. (This bug report unfortunately got no response at the time.) ;;; ;;; === Test area for invisibility === ;;; (defvar vis nil) (overlay-put (make-overlay 18 22) 'invisible 'smaller) (overlay-put (make-overlay 9 43) 'invisible 'larger) At this point, the entire region is invisible, because the default invisible spec is t. (add-to-invisibility-spec '(larger . t)) This makes the `smaller' part visible, because when buffer-invisibility-spec is a list, only those types that are listed are made invisible. However, smaller overlays have priority over larger ones, so the small part becomes visible. This sounds confusing, but I think it's working as designed. If you want the larger overlay to take priority, you have to add priority specs explicitly to the larger overlay? So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 08 10:03:47 2020 Received: (at control) by debbugs.gnu.org; 8 Dec 2020 15:03:47 +0000 Received: from localhost ([127.0.0.1]:59120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmeWp-00089K-3M for submit@debbugs.gnu.org; Tue, 08 Dec 2020 10:03:47 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmeWk-000894-EN for control@debbugs.gnu.org; Tue, 08 Dec 2020 10:03:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/aRVCUuLLCMziBAufvEG38/cwJcpfuAhVJlubCeeffQ=; b=ctNZI7lxjTE2LTi+XD5O+Bm+WX v7MPb/j1l0S6M1nUQSP4OxlJvC3mE5HNmmDGe9LncMtOIlGkITCmDQYQgB4kEWSxYGU0eXYFrFtSL OLKbF30MYW5gy9oD8cj1mD2yBQyLJHg0dTKKv7Q8YvaMKpxZv6DhEaAzR2OD4jobH7gQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmeWc-0003Lq-Nn for control@debbugs.gnu.org; Tue, 08 Dec 2020 16:03:36 +0100 Date: Tue, 08 Dec 2020 16:03:33 +0100 Message-Id: <875z5ciblm.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #8914 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 8914 notabug close 8914 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 8914 notabug close 8914 quit