From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Newsgroups: gmane.emacs.bugs Subject: bug#22320: Overlays with an 'invisible property break stacking of overlay faces Date: Wed, 6 Jan 2016 13:04:17 -0500 Message-ID: <568D5721.7060709@live.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HI0oUaD4APtD3pgfaJhDO8J9tqqngxF9d" X-Trace: ger.gmane.org 1452103526 16517 80.91.229.3 (6 Jan 2016 18:05:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jan 2016 18:05:26 +0000 (UTC) To: 22320@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 06 19:05:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aGsSM-00050s-Tb for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jan 2016 19:05:11 +0100 Original-Received: from localhost ([::1]:55588 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGsSM-0008Np-85 for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jan 2016 13:05:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGsSI-0008Na-07 for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2016 13:05:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGsSE-0003KY-NG for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2016 13:05:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGsSE-0003KA-KQ for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2016 13:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aGsSE-0007Zo-CR for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2016 13:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jan 2016 18:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22320 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145210347529080 (code B ref -1); Wed, 06 Jan 2016 18:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Jan 2016 18:04:35 +0000 Original-Received: from localhost ([127.0.0.1]:40550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGsRn-0007Yy-F4 for submit@debbugs.gnu.org; Wed, 06 Jan 2016 13:04:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41038) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGsRl-0007Yj-4f for submit@debbugs.gnu.org; Wed, 06 Jan 2016 13:04:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGsRe-0002xW-Lt for submit@debbugs.gnu.org; Wed, 06 Jan 2016 13:04:27 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGsRe-0002xR-JD for submit@debbugs.gnu.org; Wed, 06 Jan 2016 13:04:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGsRd-0007JB-1d for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2016 13:04:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGsRZ-0002wI-Pa for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2016 13:04:24 -0500 Original-Received: from mout.kundenserver.de ([217.72.192.73]:54574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGsRZ-0002vz-Gt for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2016 13:04:21 -0500 Original-Received: from [18.26.2.123] ([18.26.2.123]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0Lo18K-1Zk0bb37u4-00fwvS for ; Wed, 06 Jan 2016 19:04:19 +0100 X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 X-Provags-ID: V03:K0:clE21Nabq50/SjydBPZjeYjyKG/Lo2MEQPIj+DELQmdf1mnQPkE x6wfXd8Woxx13886ty6tsAYfj0K7XFXI90/mnIENQFhoTdBDy9hL0HHSX3Xn9GAr4+gpmmo qtNDX4OviiStvJzlB4TsY//H1G1wwlAcBYvx2JiMj4RDmc+2IkoJgpktgVdPkqvUaxVNW4w LpGJhmhVVW8+twlJw7VXg== X-UI-Out-Filterresults: notjunk:1;V01:K0:sWwXQZemze8=:kJBiwlXZ5/LUtwp/ELjRt+ gA89zkXEV3puoZSBqtwIKIQxM8zb6fkbeixBlAVEIdNZdBDQzViMSELyP8HAXmuVdTHH8lyA4 6OWKlkpjWvI/K4Vvx3qHYfmgQpo4mATjaILv05nL2KZGiBPs7TGzCm1xlVobdw2QErgWc8p8R rIAcNjx5zGfiVByxe3wO3U0gQnLnDHF1eixMzzPhJWPwtW0/7riYzakswdApOnNim4WBaOvcW rOKk/+Bl1AAzt4ljwqCbEUmL808UUyJh7sZgoqnmbOUO/4H5qVkDt1q61c7xA+RcW+mMKrDhA jsE2QWdIHDQfHKo3XNxDbjcI2wcytL3A9IcgBf7khecnw85jQ1nQHsNPzMf066D33T+5Jiz6U ZzzSz3qa4b4yXr2jh5f15ryuFs9OurIFCGzQc7lV+5xVERq0tsrQCEhlQZ3qtyxzUbckm8a6j RGcIPNhuUbdLG0eyZ/2mhPXBTPxgvHu2ai3DvdwRPkdtM062pxFBmmb6yUyOPpV+a/yxAhElA DHWmQpZ9XV6M3vozcNN0zW2Jtm1oENIPE4YYXkviwJeLjnlYOKn4drgoChLqK98sOff1I0VWX O4Jr7yDOhSqBRsBObxRtvpifuM49+NRHN2jpQ8psW8KRKdbq2YGqgrwumNc7FxiPw9g01tt6S gvv82R8E+FCC6LKdSIMVITMerP9siiDALeGyLjVbAl3f8TLnwxS5cbolL9EniuIIx2tw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111298 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HI0oUaD4APtD3pgfaJhDO8J9tqqngxF9d Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all, Adding an 'invisible property to an overlay seems to break stacking of fa= ces. To reproduce, run the following snippet. The whole buffer should have a r= ed background, but the invisible section does not inherit that background. (with-current-buffer (get-buffer-create "bug") (erase-buffer) (fundamental-mode) (add-to-invisibility-spec '(outline . t)) (insert "line1 line2 line3") (let ((ov (make-overlay 7 12))) (overlay-put ov 'invisible 'outline)) (let ((ov (make-overlay 7 8))) (overlay-put ov 'face '(:underline t))) (let ((ov (make-overlay (point-min) (point-max)))) (overlay-put ov 'face '(:background "red"))) (pop-to-buffer (current-buffer))) I initially thought this was an issue of priorities, but removing the ove= rlay with the invisible property makes the issue disappear. Similarly, removing the= underline overlay makes the issue disappear. Here is another (more "real-world") way to reproduce this issue (run the snippet, then use C-x h in the newly created buffer to mark all text: the= invisible section isn't highlighted) (with-current-buffer (get-buffer-create "org-bug") (erase-buffer) (org-mode) (insert "* line1\n** line2\n* line3") (org-shifttab) (pop-to-buffer (current-buffer))) Yet another way it to reproduce it is given below (with-current-buffer (get-buffer-create "flyspell-bug") (erase-buffer) (text-mode) (add-to-invisibility-spec '(outline . t)) (insert "line1\nline2\nline3") (flyspell-check-region-doublons (point-min) (point-max)) (let ((ov (make-overlay 7 12))) (overlay-put ov 'invisible 'outline)) (pop-to-buffer (current-buffer))) Interestingly, the first example is broken in both 24.4 and emacs-25; but= the second one is broken only in emacs-25 (the third one does not run in= Emacs 24.4). I wonder if this is connected to another issue that I've seen, where havi= ng a composition (using prettify-symbols-mode) just before an invisible r= egion would cause the background of the invisible region to be incorrect,= but setting prettify-symbols-unprettify-at-point and moving the point to= the edge of the symbol would cause the background to be fine. Unfortunat= ely I don't have a good repro for that issue. Cheers, Cl=C3=A9ment. In GNU Emacs 25.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-12-29 built on clem-w50-mint Repository revision: a21bb238ce7bcc9c13a9cf66db77918304daa2fc Windowing system distributor 'The X.Org Foundation', version 11.0.1150100= 0 System Description: Linux Mint 17.2 Rafaela Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: recentf-mode: t ido-ubiquitous-mode: t keybindings-global-mode: t keybindings-minor-mode: t ido-everywhere: t flycheck-pos-tip-mode: t global-company-mode: t company-mode: t global-page-break-lines-mode: t which-key-mode: t delete-selection-mode: t show-paren-mode: t save-place-mode: t savehist-mode: t xterm-mouse-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Features: (shadow sort ws-butler flyspell ispell ruler-mode gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils smex recentf tree-widget company-math math-symbol-lists company-files company-oddmuse company-keywords company-etags etags xref project company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb ido-ubiquitous s ucs-normalize ido-completing-read+ cus-edit cus-start cus-load wid-edit autoloads ido haskell-prettify flycheck-pos-tip pos-tip flycheck find-func rx subr-x jka-compr let-alist proof-site proof-autoloads pg-vars company agda2 smart-mode-line-dark-theme smart-mode-line rich-minority page-break-lines diminish which-key which-func imenu elapsed time eml-mode derived demo-mode dash always-make-directory easy-escape easy-mmode delsel paren saveplace savehist xt-mouse finder-inf edmacro kmacro advice tex-site cl-seq cl eieio eieio-core cl-macs info package epg-config compatibility seq byte-opt gv compile comint ansi-color ring bytecomp byte-compile cl-extra help-mode easymenu cl-loaddefs pcase cl-lib cconv tangomod-dark-theme time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 433672 15194) (symbols 48 33265 1) (miscs 40 54 211) (strings 32 81160 11716) (string-bytes 1 2094594) (vectors 16 42572) (vector-slots 8 774284 7488) (floats 8 294 55) (intervals 56 2934 164) (buffers 976 14) (heap 1024 43373 1840)) --HI0oUaD4APtD3pgfaJhDO8J9tqqngxF9d Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWjVciAAoJEPqg+cTm90wjhUcP/RJ/TIJ0Fp8zrMlrL0gvbg7i awQHJ5J5OoScrI8VTf8xbAucsJ8Yfr3+uVo5BsH1SGbSumzNKN35fkeX9l2wtFlq HlVIJk8xRUpZccBsq53HLJSaPGRwxDso66DN25AYYzz+HYVeavgfV9SuTi/j1Yn1 MIwKC4x4l1SQs0kUw1zaB2nNkxOZ7NjBaLBXRYXC38SDcBqHh7reQIRswlAj0ub1 MjWe3jnJ8WpuxP3ZP5hEywT79zU+3FaRdOe8I0E8uB8FdmKvsmmjWT5oYahh6TbJ c34iIUSqZlgFZX+SXnVxKX+yrY0gDoaVTqYagMgtg0LrBpNOlPURIpNV+EtGT/BL xHOQ9lWT+90bX+f+GeaasEBuAs0eOc5NNxKzffFwyfReQLjoM8ATvunUSzB0O7iz WonwCIK0pwjuTcinN9xtaLKCeAhRq03OLeIyfQpXcVKCfBVTGzb2IP6hZmpupiC4 JIOA6wQkaDg0733vX2iBaxllQ1y+quWATGFdmkU49lEPEphKthKDYe9x5ti1Ti4j Ly1GXzjNrTL+ynJVhOBBZfhXdC6xyQj5qWOCS+1Kzv9i+NtxpZbxeePrdcRgvBq7 ZHj3MhS8vDVtbUR+AOl0FgymTMrSQr02gmlTY8xmj7ocFiFvEUH0tZv5EEL0FKsm c7d8fu2CBQjAAW/nKi9n =JrVL -----END PGP SIGNATURE----- --HI0oUaD4APtD3pgfaJhDO8J9tqqngxF9d--