From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22757: 25.1.50; `face-at-point` and `faces--attribute-at-point` -- add argument WINDOW-OR-BUFFER Date: Sun, 21 Feb 2016 22:54:07 +0200 Message-ID: <83a8mtn5sg.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456088122 12738 80.91.229.3 (21 Feb 2016 20:55:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Feb 2016 20:55:22 +0000 (UTC) Cc: 22757@debbugs.gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 21 21:55: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 1aXb26-0006f7-1g for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Feb 2016 21:55:10 +0100 Original-Received: from localhost ([::1]:44079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXb25-0004x3-Le for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Feb 2016 15:55:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXb22-0004wZ-0z for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 15:55:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXb1y-0007Q8-Ls for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 15:55:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXb1y-0007Q4-Ic for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 15:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXb1y-0005Tx-Bp for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 15:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Feb 2016 20:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22757 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22757-submit@debbugs.gnu.org id=B22757.145608807021032 (code B ref 22757); Sun, 21 Feb 2016 20:55:02 +0000 Original-Received: (at 22757) by debbugs.gnu.org; 21 Feb 2016 20:54:30 +0000 Original-Received: from localhost ([127.0.0.1]:36595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXb1S-0005TA-79 for submit@debbugs.gnu.org; Sun, 21 Feb 2016 15:54:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49426) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXb1R-0005St-3W for 22757@debbugs.gnu.org; Sun, 21 Feb 2016 15:54:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXb1I-0007Kf-QN for 22757@debbugs.gnu.org; Sun, 21 Feb 2016 15:54:24 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXb1I-0007Kb-N7; Sun, 21 Feb 2016 15:54:20 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4366 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aXb1F-0006Gd-V5; Sun, 21 Feb 2016 15:54:19 -0500 In-reply-to: (message from Keith David Bershatsky on Sun, 21 Feb 2016 10:05:33 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:113424 Archived-At: > Date: Sun, 21 Feb 2016 10:05:33 -0800 > From: Keith David Bershatsky > > As a feature request, please consider adding an additional argument to `face-at-point` and `faces--attribute-at-point` to support WINDOW-OR-BUFFER with `get-char-property`; and, add that to the sections of code in said functions containing `get-char-property`. The doc-strings would need to be updated to explain the difference. The default would be BUFFER. > > It is sometimes useful to be able to obtain a face of an overlay that is associated with a particular window -- e.g., an active region that may be different in each window. The current functions do not have the ability to test for that occurrence because the third argument of `get-char-property` is always `nil`. Why can't you call get-char-property directly? face-at-point is nothing more than a thin wrapper around get-char-property, and most of the wrapper code is about stuff you don't care about AFAIU from your description. Is there something I'm missing? Thanks.