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: Reply to correspondence dated February 22, 2016. Date: Mon, 22 Feb 2016 21:25:44 +0200 Message-ID: <83mvqsk0nb.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456169242 17435 80.91.229.3 (22 Feb 2016 19:27:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2016 19:27: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 Mon Feb 22 20:27: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 1aXw8V-0000BG-3g for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 20:27:11 +0100 Original-Received: from localhost ([::1]:51415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXw8U-0007ho-Ev for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 14:27:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXw8R-0007hV-6S for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 14:27:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXw8M-0001zu-E3 for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 14:27:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXw8M-0001zm-9z for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 14:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXw8M-0002ec-1Q for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 14:27: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 19:27:01 +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.145616916510081 (code B ref 22757); Mon, 22 Feb 2016 19:27:01 +0000 Original-Received: (at 22757) by debbugs.gnu.org; 22 Feb 2016 19:26:05 +0000 Original-Received: from localhost ([127.0.0.1]:38461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXw7R-0002cX-Ea for submit@debbugs.gnu.org; Mon, 22 Feb 2016 14:26:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60566) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXw7P-0002c1-BN for 22757@debbugs.gnu.org; Mon, 22 Feb 2016 14:26:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXw7F-0001Ld-Ki for 22757@debbugs.gnu.org; Mon, 22 Feb 2016 14:25:58 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXw7F-0001LX-HK; Mon, 22 Feb 2016 14:25:53 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1518 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aXw7E-0005aP-Q0; Mon, 22 Feb 2016 14:25:53 -0500 In-reply-to: (message from Keith David Bershatsky on Mon, 22 Feb 2016 10:15:27 -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:113487 Archived-At: > Date: Mon, 22 Feb 2016 10:15:27 -0800 > From: Keith David Bershatsky > Cc: 22757@debbugs.gnu.org > > 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`. get-char-property gets you the face, and then face-foreground and face-background (both documented in the ELisp manual) can be used to get the colors.