From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27238: 24.5; Rename `face-spec-set-2' and give it a better doc string Date: Mon, 05 Jun 2017 18:24:20 +0300 Message-ID: <83lgp6a257.fsf@gnu.org> References: <<<06a7cc83-a2a8-45a0-97d4-bd3a478aab92@default>>> <<<83wp8ra9g6.fsf@gnu.org>>> <<26a213b3-908e-43b1-a009-b8a18f0a1c23@default>> <<83tw3v9njh.fsf@gnu.org>> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1496676313 24900 195.159.176.226 (5 Jun 2017 15:25:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Jun 2017 15:25:13 +0000 (UTC) Cc: 27238@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 05 17:25:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHtsQ-00060N-Gt for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jun 2017 17:25:06 +0200 Original-Received: from localhost ([::1]:33884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHtsV-0000dn-Pw for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jun 2017 11:25:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHtsQ-0000ca-K7 for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2017 11:25:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHtsM-0002MH-JW for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2017 11:25:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55056) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHtsM-0002MB-Gt for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2017 11:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dHtsM-0001lz-Be for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2017 11:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jun 2017 15:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27238 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27238-submit@debbugs.gnu.org id=B27238.14966762826786 (code B ref 27238); Mon, 05 Jun 2017 15:25:02 +0000 Original-Received: (at 27238) by debbugs.gnu.org; 5 Jun 2017 15:24:42 +0000 Original-Received: from localhost ([127.0.0.1]:57733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHts1-0001lO-OF for submit@debbugs.gnu.org; Mon, 05 Jun 2017 11:24:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37211) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHts0-0001lB-4W for 27238@debbugs.gnu.org; Mon, 05 Jun 2017 11:24:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHtrq-0001yn-T7 for 27238@debbugs.gnu.org; Mon, 05 Jun 2017 11:24:34 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHtrq-0001yi-Pt; Mon, 05 Jun 2017 11:24:30 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1264 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dHtrq-0002oi-4W; Mon, 05 Jun 2017 11:24:30 -0400 In-reply-to: (message from Drew Adams on Sun, 4 Jun 2017 22:44:40 -0700 (PDT)) 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" Xref: news.gmane.org gmane.emacs.bugs:133299 Archived-At: > Date: Sun, 4 Jun 2017 22:44:40 -0700 (PDT) > From: Drew Adams > Cc: 27238@debbugs.gnu.org > > > > (face-spec-set-2 TARGET-FACE > > > FRAME > > > (face-spec-choose > > > (get SOURCE-FACE 'face-defface-spec) > > > FRAME)) > > > > Why can't you do this by calling a higher-level function? > > What higher-level function would you suggest? face-spec-recalc and face-spec-set come to mind, for example. > How would _you_ set one face (`fringe' or whatever), in > only a given frame, to the spec of another face (or to > a spec that isn't yet used for any face)? I asked whether the higher-level functions can do the job. If they cannot, please explain why, and please provide specific details about the difficulties. Answering my question by another question doesn't help, since I'm sure I don't know enough about the job you wanted to do. > But perhaps you have some other higher-level function in > mind to do this job? If so, I wonder why `face-set-recalc' > doesn't use it, instead of `face-spec-set-2. There are many documented functions that set face attributes in various forms and for various sets of frames. My question is precisely whether any of them can do this job. If not, perhaps we could extend one of them to support whatever you need to do. That'd be an alternative to renaming face-spec-set-2 and making it public.