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#22915: foreground-color-at-point doesn't return the foreground color at point (when overlays are present) Date: Sat, 5 Mar 2016 01:10:37 -0500 Message-ID: <56DA785D.8080202@live.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lqnbr8eGJkxsxCaktRGx4snVu3wOX4oSv" X-Trace: ger.gmane.org 1457158283 19741 80.91.229.3 (5 Mar 2016 06:11:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2016 06:11:23 +0000 (UTC) To: 22915@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 05 07:11:11 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 1ac5Qk-0003Hq-OF for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Mar 2016 07:11:11 +0100 Original-Received: from localhost ([::1]:44939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ac5Qk-0004Te-1Q for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Mar 2016 01:11:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ac5Qf-0004Sz-LL for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2016 01:11:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ac5Qc-0002xk-Fo for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2016 01:11:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ac5Qc-0002xT-Cm for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2016 01:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1ac5Qc-0006sW-9g for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2016 01:11: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: Sat, 05 Mar 2016 06:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22915 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.145715825326423 (code B ref -1); Sat, 05 Mar 2016 06:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Mar 2016 06:10:53 +0000 Original-Received: from localhost ([127.0.0.1]:34241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1ac5QS-0006s6-TA for submit@debbugs.gnu.org; Sat, 05 Mar 2016 01:10:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60959) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1ac5QR-0006ru-8l for submit@debbugs.gnu.org; Sat, 05 Mar 2016 01:10:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ac5QL-0002up-Bm for submit@debbugs.gnu.org; Sat, 05 Mar 2016 01:10:46 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ac5QL-0002uj-8N for submit@debbugs.gnu.org; Sat, 05 Mar 2016 01:10:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ac5QK-0004DR-A7 for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2016 01:10:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ac5QH-0002u7-50 for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2016 01:10:44 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.135]:60370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ac5QG-0002u1-Mb for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2016 01:10:41 -0500 Original-Received: from [18.189.68.195] ([18.189.68.195]) by mrelayeu.kundenserver.de (mreue005) with ESMTPSA (Nemesis) id 0MSmwb-1aUZ2228UH-00RtQH for ; Sat, 05 Mar 2016 07:10:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 X-Provags-ID: V03:K0:tmOGQQYwRuTXtUXaWulOxWigRD/zv/Cz3eF2jSiftRO+htbC+dT jkSwNCKeggyCI96Tq/ADxHvXZXlHipCWGT2sEdMmyulT7nWbd/aT0ABm5XiLdTp+/yEalO4 2DPCmGJn0XvQpHEGsuKmI7poUs41+ywq7kswHnZDJy/iMEnm3dv81s26Jx7xS8E86baxX5z H11YlmN7ZquhpciJYP37A== X-UI-Out-Filterresults: notjunk:1;V01:K0:vfuG3g2bc+8=:sN+j+mT6D3LD74+t2wIsam OrCVLXi4XG8HyJDiDpuBD7HZJDZlxgaN0T7pMU4MYrw7B2Jkx9x+bh/t/6M0ZtrNqSSzzQN3x KAL+VdBP+ZyRaZfTzfcdk5i/ScsUjPG/+4Ser91uWNK7A372W7MYs22UGa5Wtq8Y0+el8DpVL 9opIYzQ9LAzLErAE4JmPs5roGD2tdsiSbNJGjv3Avs+pzuE2C3xvoyuUSlUP4bF9dHf13TEla VNNGv7QdwDeubnF0UapunGcwVTS3yDEyjONRAOlhsKG0l/Ly6hduz7mIK6zhj5xgwAYO54RbS A5RdAWLpw+9xu+H86lEdoysQt8/UE6t3NBdCsNy+jtfCzhsuygvgNWuKf/kXxE5WS2zRG7FXi mNMqcQCG1/Thu8PIXXbrFoaW+wyBvFRUMmavZFFeqi7H121XIEvHlACHItrzFO54T1j2zr9+8 eHCUv4YM2OVckf4r74pKNMIdAdF5Jzzf4EBRmvs+jYL2Jvgzdb+hpdu7CTl6rUp9DCvqiuZV1 Q8F8AG/1GQdozWTqfMsGGgsVbMTxkk5MUyu7Br0vf1PfiIKdn2OaoBruLJPurz7EIvDc03bHZ WbJvvYro9iI64oV97bi2nJ4kC+PpReHXAd914BQUkAZsN/UnccNTsK6WzDOgg/NP/DKJuF8wt B4Thp1BG4rITO4ftDePj0k9k+ZQXtb84zqT5OCQic4sfga349O5Si1tbyT8/rLyv5O9s= 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:114437 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --lqnbr8eGJkxsxCaktRGx4snVu3wOX4oSv Content-Type: multipart/mixed; boundary="t8nPWdeU3cVAcHj7VSgFjeQjEh3m8qFHR" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: bug-gnu-emacs@gnu.org Message-ID: <56DA785D.8080202@live.com> Subject: foreground-color-at-point doesn't return the foreground color at point (when overlays are present) --t8nPWdeU3cVAcHj7VSgFjeQjEh3m8qFHR Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Reproduction with emacs -Q: (with-current-buffer (get-buffer-create "*broken*") (require 'cl-lib) (erase-buffer) (delete-all-overlays) (fundamental-mode) (insert "AAAAA") (goto-char (point-min)) ;; Add two faces (set-text-properties (point-min) (point-max) '(face font-lock-type-face= )) (let ((ov (make-overlay (point-min) (point-max)))) (overlay-put ov 'face 'font-lock-negation-char-face)) ;; This passes, proving that font-lock-negation-char-face is not contri= buting to the ;; foreground color (cl-assert (eq (face-attribute 'font-lock-negation-char-face :foregroun= d) 'unspecified)) ;; This fails: foreground-color-at-point reads the face of the overlay,= sees that it's undefined,=20 ;; and ignores the 'face text property=20 (cl-assert (eq (foreground-color-at-point) (face-attribute 'font-lock-type-face :foreground))) (pop-to-buffer (current-buffer))) Let me know if I can provide more info. Cl=C3=A9ment. --t8nPWdeU3cVAcHj7VSgFjeQjEh3m8qFHR-- --lqnbr8eGJkxsxCaktRGx4snVu3wOX4oSv 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) iQIcBAEBAgAGBQJW2nhdAAoJEPqg+cTm90wjeIwP/1YtkYiv+byjwmLI/pq9fLT1 rMm9wqZU06SCWR2OFJ3KJZT462AJAd1vKyyeu17nQV1C3v7fbPQxoDM/qYwEQRK6 uC+W3pcl4PXUwe7Ymjh9l9uA2K7s6G6Ezvouq0IcctUkHBJvZIIbBekcMDwUiHXS VrTOZmhjmouTIH75wRpljjawQCtU+QlUEgNdwy/E5KGDLXTDEfiQ+KaVXDM/gqgc Vw1HQGUtgG3vO5cpXd2ULZmcgcgljfKbdE9XEJVNfUHgS7luPj6Lvcdg8dhpUHLJ /SYUGiYOalE5AGut17g7bCUuEv6cpvA5YtT3yIjj1w6ZWI2C95MO31Yx0pFAYiS9 sbWVZQP44IxXs13V8j6W1GACXf3xvvAQX0NPIKlNFA39e31UtaI5XBXMZohJ8XIR jL9oi+hK3t4HqVjAOo4MDmjS0WGPXdjlzy+ZqeBnORk8yYipdOFKUTbLoWolh2uW andsTmRdVw0kOBtnf7b/Y9l0mzueunJckKcbFzKWU1S6L9zREE1XeHFPdrsIIteM BXSIhWTf+hoy7eMgEiF+r06iQVRGfVesO7furOxQCf2ylcnrXGTTCKie9E0rujor dy7MLGM6Jr7HdSf4pk7xDURYQckHk0mbDE8TIfus7pQoDXyL59/RQE7d7J24G+WG VxLT1VC6O3pN5b0d3+jm =l0+e -----END PGP SIGNATURE----- --lqnbr8eGJkxsxCaktRGx4snVu3wOX4oSv--