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: Mon, 22 Feb 2016 17:58:13 +0200 Message-ID: <831t84n3e2.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456156776 29978 80.91.229.3 (22 Feb 2016 15:59:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2016 15:59:36 +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 Mon Feb 22 16:59:25 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 1aXstH-0008QD-Hk for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 16:59:15 +0100 Original-Received: from localhost ([::1]:49696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXstH-0008Vj-3T for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 10:59:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXst7-0008Nq-PB for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 10:59:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXst4-000117-GY for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 10:59:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXst4-000113-Dh for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 10:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXst4-0005l5-8d for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 10:59: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: Mon, 22 Feb 2016 15:59: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.145615671422102 (code B ref 22757); Mon, 22 Feb 2016 15:59:02 +0000 Original-Received: (at 22757) by debbugs.gnu.org; 22 Feb 2016 15:58:34 +0000 Original-Received: from localhost ([127.0.0.1]:38226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXssc-0005kQ-ID for submit@debbugs.gnu.org; Mon, 22 Feb 2016 10:58:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49089) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXssa-0005kE-Ec for 22757@debbugs.gnu.org; Mon, 22 Feb 2016 10:58:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXssR-0000ly-9Q for 22757@debbugs.gnu.org; Mon, 22 Feb 2016 10:58:27 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXssR-0000lo-4e; Mon, 22 Feb 2016 10:58:23 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1182 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aXssP-0006Ox-KQ; Mon, 22 Feb 2016 10:58:22 -0500 In-reply-to: (message from Keith David Bershatsky on Sun, 21 Feb 2016 13:23:05 -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:113453 Archived-At: > Date: Sun, 21 Feb 2016 13:23:05 -0800 > From: Keith David Bershatsky > Cc: 22757@debbugs.gnu.org > > I spent a few hours trying to figure out how to obtain face properties at various points (with no active region) when active region was covering up those areas in another window displaying the same buffer in a different frame (hidden visually behind other frames). It was even more complicated to track down because the default value of `highlight-nonselected-windows` is `nil` and I couldn't visually see what was happening. I eventually discovered that third argument to `get-char-property` and my dilemma was resolved. :) > > Another helpful feature would be an optional argument for POINT so that a user does not need to goto that point in order to obtain the face(s). > > Feature request #22757 *may potentially* save other people hours of debugging; and, I believe adding POINT and WINDOW-OR-BUFFER as optional arguments could be very useful by making the current functions more powerful/versatile. Sorry, I don't think I follow. I asked whether calling get-char-property directly, instead of going through face-at-point, would have done the job you needed to do. I still think it would have, even after reading your response. My point is that I see no particular reason why users should try using face-at-point in this situation. That function is not documented in the ELisp manual, whereas get-char-property is. So I'm not sure why we should consider adding an argument to face-at-point to support use cases that seem to be already supported by get-char-property. Can you clarify this aspect? Thanks.