From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#57087: 29.0.50; (face-at-point nil t) does not return all faces when hl-line-mode is active Date: Tue, 09 Aug 2022 21:35:25 +0200 Message-ID: <87a68dtdky.fsf@gnus.org> References: <83sfm5rzov.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18379"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57087@debbugs.gnu.org, dalanicolai To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 09 21:39:07 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 1oLV4F-0004Xq-Ja for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Aug 2022 21:39:07 +0200 Original-Received: from localhost ([::1]:53968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLV4E-0004Bo-Mr for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Aug 2022 15:39:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLV1G-0008SZ-SZ for bug-gnu-emacs@gnu.org; Tue, 09 Aug 2022 15:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55374) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLV1G-0000uG-JA for bug-gnu-emacs@gnu.org; Tue, 09 Aug 2022 15:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLV1G-0000We-Cf for bug-gnu-emacs@gnu.org; Tue, 09 Aug 2022 15:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Aug 2022 19:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 57087-submit@debbugs.gnu.org id=B57087.16600737542000 (code B ref 57087); Tue, 09 Aug 2022 19:36:02 +0000 Original-Received: (at 57087) by debbugs.gnu.org; 9 Aug 2022 19:35:54 +0000 Original-Received: from localhost ([127.0.0.1]:45122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLV18-0000WB-1g for submit@debbugs.gnu.org; Tue, 09 Aug 2022 15:35:54 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:53338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLV0r-0000VU-Tj for 57087@debbugs.gnu.org; Tue, 09 Aug 2022 15:35:52 -0400 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:Date:References: In-Reply-To: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=TtprMdGyDTG3OV4yK5doLYPhXb1xc/XVZ56UnueXsXU=; b=hov+zdDXqYtN9pDHXorXOnAOIX rTs0Dv9/THPvUxEm0p/HVSdJWghqwkl2ws0EcSl7CXIgsNQ38waQ/LaNozcXafCcci2wCXS4bOzLC Z/5rA7MAt9yY3vqS58Ixb8zku7tVanPW+I0UjmhOqR6Rpyoq0OGJgRYcqZRM5+tWDELw=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLV0j-00078W-Au; Tue, 09 Aug 2022 21:35:31 +0200 In-Reply-To: <83sfm5rzov.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 09 Aug 2022 22:20:48 +0300") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEWajlz8/PzZ2M/C uaBAQSr///9ospQpAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YICRMHIsXwnH4AAAGrSURBVDjLdZIL koMgEER7ZQ6wshdI8AIoHGBqnfufaXsQ0aSyVMWMPrrnA/iaPy88/wNp+4yQn3NM6QP4neNSPqgw zZEKB/E9eSxNEZfnG5jn9iWWcCMPeOo1cXfMCON7rBjxggGecc5Xgw8z7ZHKdOv826wnqcYQ6wky FQcQE7NLwZedWfleuMewnHVIyxHXuLYYpUsW7tJ1XtKDTwfd14syLcu2QL6+3Up78T8OUp4IptqA TmdRpkvh2mAO+JvSUZTpJmwf0oDyHZyuy/eEUlLpQFRMw1bBZ9ZEcgBrfzu4FEU5yk3OHGa0hkAU nv4FtNh7ryL7DZi2mMnY4VBoB0eBrPdSZL1k57qscCRSeQH8EGjCLvcBToO9KiTcFCdQEWQWVt+t oNVr8hG6HcxOrZsAue8eCo7Lh3nUxj0XYA7jtNB0dL43pZwV/Fblu9Xh0M5PVL1cGbUz2jX7AXQF A4+zMgWvidaXPsxqmApCzs1jgN1dFdkHwDs1AMtr10a4AcW39LYnpkFV77OELGEAP72WVN2r7C8N jhPUgg7a8BVnP35rGtBx6APZH0vtuUMFU9m/AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA4LTA5 VDE5OjA3OjM0KzAwOjAwdJBvPgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOC0wOVQxOTowNzoz NCswMDowMAXN14IAAAAASUVORK5CYII= X-Now-Playing: Hood's _Outside Closer_: "Still Rain Fell" 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:239222 Archived-At: Eli Zaretskii writes: > This is a misunderstanding of what the doc string means when it says > "faces". It doesn't mean that you should see more than one face in > the above situation. > > This is not a bug, it's just that your expectations from what > face-at-point can do are incorrect. Then I think this doc string needs clarification, at least: --- face-at-point is a byte-compiled Lisp function in faces.el. (face-at-point &optional THING MULTIPLE) Return the face of the character after point. If it has more than one face, return the first one. If THING is non-nil try first to get a face name from the buffer. IF MULTIPLE is non-nil, return a list of all faces. Return nil if there is no face. --- I think it sounds like it would be more useful if it did indeed return all the faces at point instead of just the face(s) from either the overlay or the face(s) from the text property.