From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Keith David Bershatsky 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 10:17:04 -0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1456165104 12183 80.91.229.3 (22 Feb 2016 18:18:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2016 18:18:24 +0000 (UTC) Cc: 22757@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 22 19:18:13 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 1aXv3k-0004U5-71 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 19:18:12 +0100 Original-Received: from localhost ([::1]:51073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXv3j-0002Fi-A3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 13:18:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXv3e-0002Eg-II for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 13:18:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXv3a-0007y6-JX for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 13:18:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXv3a-0007y2-Fc for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 13:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXv3a-0000v5-C7 for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 13:18:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Feb 2016 18:18: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.14561650333456 (code B ref 22757); Mon, 22 Feb 2016 18:18:02 +0000 Original-Received: (at 22757) by debbugs.gnu.org; 22 Feb 2016 18:17:13 +0000 Original-Received: from localhost ([127.0.0.1]:38395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXv2m-0000tg-Nq for submit@debbugs.gnu.org; Mon, 22 Feb 2016 13:17:12 -0500 Original-Received: from cobb.liquidweb.com ([50.28.13.150]:40385) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXv2l-0000tO-8j for 22757@debbugs.gnu.org; Mon, 22 Feb 2016 13:17:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date; bh=Q0LAEWxUb5zhvLYiyjKh/F26PikGBX1DRaysOkLcZvw=; b=cHRDdu3sdCPLqJyPJmg2d5fZYGpWk+3GIv7Hf8HBRyni3l4V6FN+YuPmxRo7Fae3bngUGspcxJzQ/I4TLA3jVuR1pWM1B4sbnoKyeJEehSvUhi50JzAuBZA7lHG+58Xa; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:49810 helo=server.private.localhost) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1aXv2d-0004SJ-Fj; Mon, 22 Feb 2016 13:17:03 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobb.liquidweb.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry: lawlist|lawlist.com 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:113480 Archived-At: Sorry, the last email had an automatically generated subject line that I use in my personal setup. Here is a fixed subject line. I agree that `get-char-property` is the key ingredient, and it would be prudent to steer users to that function. It does, however, require an advanced level of Lisp expertise to understand how to use it to achieve certain goals. I probably wouldn't have been able to figure out (in a reasonable period of time) how to get foreground/background at point without standing on the shoulders of others -- e.g., `foreground-color-at-point` and `background-color-at-point`. Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; At Mon, 22 Feb 2016 17:58:13 +0200, Eli Zaretskii wrote: > > > 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.