From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 26 12:35:03 2019 Received: (at submit) by debbugs.gnu.org; 26 Mar 2019 16:35:04 +0000 Received: from localhost ([127.0.0.1]:60477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8p2V-000847-Kn for submit@debbugs.gnu.org; Tue, 26 Mar 2019 12:35:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8p2T-00083b-Gw for submit@debbugs.gnu.org; Tue, 26 Mar 2019 12:35:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:34296) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h8p2M-0000nQ-U5 for submit@debbugs.gnu.org; Tue, 26 Mar 2019 12:34:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8p2L-0002AM-RI for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 12:34:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8p2K-0000lA-N9 for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 12:34:53 -0400 Received: from metalevel.at ([78.46.218.83]:57604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8p2J-0000g8-RQ for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 12:34:52 -0400 Received: from mts-Mac-mini.localdomain (localhost.localdomain [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 04DD4A01FB for ; Tue, 26 Mar 2019 17:34:45 +0100 (CET) Received: by mts-Mac-mini.localdomain (Postfix, from userid 501) id C07C94568A5; Tue, 26 Mar 2019 17:37:04 +0100 (CET) From: Markus Triska To: bug-gnu-emacs@gnu.org Subject: 27.0.50; Fontification unexpectedly works with anonymous faces Date: Tue, 26 Mar 2019 17:37:04 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 78.46.218.83 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) The Elisp info material states in "39.12 Faces":=20 Many parts of Emacs require named faces, and do not accept anonymous faces. These include the functions documented in Attribute Functions, and the variable =E2=80=98font-lock-keywords=E2=80=99 (see Se= arch-based Fontification). Unless otherwise stated, we will use the term =E2=80=9Cf= ace=E2=80=9D to refer only to named faces. However, when I start Emacs with "emacs -Q", and then evaluate in the *scratch* buffer the form: (progn (font-lock-add-keywords nil '(("hello" 0 '(:background "green")) t)) (insert "hello")) then I see that "hello" is inserted and highlighted in green, apparently due to search-based fontification where an anonymous face is specified! I am currently working on an application where this functionality (i.e., anonymous faces that can be specified for fontification) would be extremely useful. Could you please consider supporting this feature, and - if this already works as intended - officially document it? Thank you and all the best! Markus In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin18.0.0, X toolkit, Xaw sc= roll bars) of 2018-11-15 built on mt-computer Repository revision: b4eb908f858284a7962851fd99c94598f76afa6f Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 28 12:14:37 2019 Received: (at 35005) by debbugs.gnu.org; 28 Mar 2019 16:14:37 +0000 Received: from localhost ([127.0.0.1]:34569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Xfp-0008UD-5U for submit@debbugs.gnu.org; Thu, 28 Mar 2019 12:14:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Xfn-0008Tu-Ff for 35005@debbugs.gnu.org; Thu, 28 Mar 2019 12:14:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9Xfh-0008Np-W4; Thu, 28 Mar 2019 12:14:30 -0400 Received: from [176.228.60.248] (port=1942 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h9Xfg-0004fQ-Nr; Thu, 28 Mar 2019 12:14:29 -0400 Date: Thu, 28 Mar 2019 18:14:28 +0200 Message-Id: <83r2arj7rv.fsf@gnu.org> From: Eli Zaretskii To: Markus Triska In-reply-to: (message from Markus Triska on Tue, 26 Mar 2019 17:37:04 +0100) Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35005 Cc: 35005@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Markus Triska > Date: Tue, 26 Mar 2019 17:37:04 +0100 > > > The Elisp info material states in "39.12 Faces": > > Many parts of Emacs require named faces, and do not accept > anonymous faces. These include the functions documented in Attribute > Functions, and the variable ‘font-lock-keywords’ (see Search-based > Fontification). Unless otherwise stated, we will use the term “face” > to refer only to named faces. > > However, when I start Emacs with "emacs -Q", and then evaluate in > the *scratch* buffer the form: > > (progn > (font-lock-add-keywords nil '(("hello" 0 '(:background "green")) t)) > (insert "hello")) > > then I see that "hello" is inserted and highlighted in green, apparently > due to search-based fontification where an anonymous face is specified! > > I am currently working on an application where this functionality (i.e., > anonymous faces that can be specified for fontification) would be > extremely useful. Could you please consider supporting this feature, > and - if this already works as intended - officially document it? I suggest to ask on emacs-devel whether the documentation is correct or not. It's possible that there are some subtle use cases where anonymous faces won't work in this situation. The real experts on this matter don't read the bug list. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 31 13:24:45 2019 Received: (at 35005) by debbugs.gnu.org; 31 Oct 2019 17:24:45 +0000 Received: from localhost ([127.0.0.1]:54213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQEBg-0005pC-U1 for submit@debbugs.gnu.org; Thu, 31 Oct 2019 13:24:45 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQEBf-0005p4-Ez for 35005@debbugs.gnu.org; Thu, 31 Oct 2019 13:24:44 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQEBb-00033n-CS; Thu, 31 Oct 2019 18:24:41 +0100 From: Lars Ingebrigtsen To: Markus Triska , 35005@debbugs.gnu.org, emacs-devel@gnu.org Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces References: <83r2arj7rv.fsf@gnu.org> Date: Thu, 31 Oct 2019 18:24:38 +0100 In-Reply-To: <83r2arj7rv.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 28 Mar 2019 18:14:28 +0200") Message-ID: <87o8xw6d61.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> The Elisp info material states in "39.12 Faces": >> >> Many parts of Emacs require named faces, and do not accept >> anonymous faces. These include the functions documented in Attribute >> Function [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35005 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> The Elisp info material states in "39.12 Faces":=20 >>=20 >> Many parts of Emacs require named faces, and do not accept >> anonymous faces. These include the functions documented in Attribute >> Functions, and the variable =E2=80=98font-lock-keywords=E2=80=99 (see= Search-based >> Fontification). Unless otherwise stated, we will use the term =E2=80= =9Cface=E2=80=9D >> to refer only to named faces. >>=20 >> However, when I start Emacs with "emacs -Q", and then evaluate in >> the *scratch* buffer the form: >>=20 >> (progn >> (font-lock-add-keywords nil '(("hello" 0 '(:background "green")) t= )) >> (insert "hello")) >>=20 >> then I see that "hello" is inserted and highlighted in green, apparently >> due to search-based fontification where an anonymous face is specified! >>=20 >> I am currently working on an application where this functionality (i.e., >> anonymous faces that can be specified for fontification) would be >> extremely useful. Could you please consider supporting this feature, >> and - if this already works as intended - officially document it? > > I suggest to ask on emacs-devel whether the documentation is correct > or not. It's possible that there are some subtle use cases where > anonymous faces won't work in this situation. The real experts on > this matter don't read the bug list. I'm not sure whether this was ever brought up on emacs-devel? I wondered about that restriction myself -- I could see why it might be an issue (some parts of the font locking machinery checking for whether an element is a list and interpreting is as something other than a face), but it would be nice if this worked with anonymous faces. Does anybody know what the manual is referring to here, or whether it's an outdated restriction that has gone away? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 31 16:38:51 2019 Received: (at 35005) by debbugs.gnu.org; 31 Oct 2019 20:38:51 +0000 Received: from localhost ([127.0.0.1]:54372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQHDW-0001pe-VX for submit@debbugs.gnu.org; Thu, 31 Oct 2019 16:38:51 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:62577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQHDS-0001pQ-OK for 35005@debbugs.gnu.org; Thu, 31 Oct 2019 16:38:48 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 45C3610058D; Thu, 31 Oct 2019 16:38:41 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D0F271004C7; Thu, 31 Oct 2019 16:38:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1572554319; bh=FZvpeuL2P2leMziQOgNpU+FkzWHPM+Om+4MMHwVKGkk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MyU6YIk+DkOZeqp+1Plin02nOL2f84NYb/eJJsp0QFfqE1QLZO0ZZ4ImFZVjZDB9F hxALyPdM2553AhHYqRCvFDPRmZ03Depi8WJFv3cFXQRGGjYI2aSIdS5kfvDukzgjV9 gSQ4mi69kbzuL7eUlxMhFNweM4+KAv8qrMsJKfaryQBveEkdWY57bwK1LPJH5vU97q n0L8bRySVABv7/NqaaI0lZYC8m6iYDS9WBXAwfVNAIxsnewGIzy/JrSoQShpye75mh 6r8tcO4PeKk0gMTx0vxLGVfQpKciac/aTeKIWmrqPMth/B72B7w3W/6vyJ8nPrGq+1 bz9AyWjrGjFiQ== Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 75789120786; Thu, 31 Oct 2019 16:38:39 -0400 (EDT) From: Stefan Monnier To: Lars Ingebrigtsen Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces Message-ID: References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> Date: Thu, 31 Oct 2019 16:38:38 -0400 In-Reply-To: <87o8xw6d61.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 31 Oct 2019 18:24:38 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.033 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35005 Cc: Markus Triska , 35005@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > I'm not sure whether this was ever brought up on emacs-devel? I > wondered about that restriction myself -- I could see why it might be an > issue (some parts of the font locking machinery checking for whether an > element is a list and interpreting is as something other than a face), > but it would be nice if this worked with anonymous faces. > > Does anybody know what the manual is referring to here, or whether it's > an outdated restriction that has gone away? AFAIK anonymous faces work fine in font-lock. They can be a bit more delicate to us because many places that accept faces also accept lists (either of faces or of other things) but in general there's no real restriction that I know of. So I think the "do not accept" part is not true (any more?), but it's still the case that you're generally better off using named faces when possible. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 31 17:09:14 2019 Received: (at 35005) by debbugs.gnu.org; 31 Oct 2019 21:09:14 +0000 Received: from localhost ([127.0.0.1]:54390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQHgv-0002eB-Mn for submit@debbugs.gnu.org; Thu, 31 Oct 2019 17:09:13 -0400 Received: from metalevel.at ([185.194.236.120]:46908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQHgu-0002e1-49 for 35005@debbugs.gnu.org; Thu, 31 Oct 2019 17:09:12 -0400 Received: by metalevel.at (Postfix, from userid 1000) id BE9BB72798; Thu, 31 Oct 2019 22:09:10 +0100 (CET) From: Markus Triska To: Lars Ingebrigtsen Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> Date: Thu, 31 Oct 2019 22:09:10 +0100 In-Reply-To: <87o8xw6d61.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 31 Oct 2019 18:24:38 +0100") Message-ID: <87h83oei6h.fsf@metalevel.at> User-Agent: Emacs/26.1 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35005 Cc: 35005@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dear Lars, Lars Ingebrigtsen writes: > I'm not sure whether this was ever brought up on emacs-devel? It was, but I have not received any answer so far: https://lists.gnu.org/archive/html/emacs-devel/2019-03/msg01092.html Thank you for looking into this! All the best, Markus From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 01 09:13:45 2019 Received: (at 35005) by debbugs.gnu.org; 1 Nov 2019 13:13:45 +0000 Received: from localhost ([127.0.0.1]:55173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQWkL-0004T7-5p for submit@debbugs.gnu.org; Fri, 01 Nov 2019 09:13:45 -0400 Received: from quimby.gnus.org ([80.91.231.51]:35724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQWkF-0004St-T5 for 35005@debbugs.gnu.org; Fri, 01 Nov 2019 09:13:43 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQWk9-00069n-Ez; Fri, 01 Nov 2019 14:13:35 +0100 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> Date: Fri, 01 Nov 2019 14:13:32 +0100 In-Reply-To: (Stefan Monnier's message of "Thu, 31 Oct 2019 16:38:38 -0400") Message-ID: <871rur4u4j.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > AFAIK anonymous faces work fine in font-lock. They can be a bit more > delicate to us because many places that accept faces also accept lists > (either of faces or of other things) but in general th [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35005 Cc: Markus Triska , 35005@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Monnier writes: > AFAIK anonymous faces work fine in font-lock. They can be a bit more > delicate to us because many places that accept faces also accept lists > (either of faces or of other things) but in general there's no real > restriction that I know of. > > So I think the "do not accept" part is not true (any more?), but it's > still the case that you're generally better off using named faces > when possible. OK, I'll adjust the text in the manual. Names faces are preferable, but generating faces on the fly is sometimes necessary. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 01 09:18:13 2019 Received: (at control) by debbugs.gnu.org; 1 Nov 2019 13:18:13 +0000 Received: from localhost ([127.0.0.1]:55189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQWof-0006ae-FS for submit@debbugs.gnu.org; Fri, 01 Nov 2019 09:18:13 -0400 Received: from quimby.gnus.org ([80.91.231.51]:35806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQWoe-0006aW-3l for control@debbugs.gnu.org; Fri, 01 Nov 2019 09:18:12 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQWoa-0006Au-Mr for control@debbugs.gnu.org; Fri, 01 Nov 2019 14:18:10 +0100 Date: Fri, 01 Nov 2019 14:18:08 +0100 Message-Id: <87zhhf3fcf.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #35005 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 35005 fixed close 35005 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 35005 fixed close 35005 27.1 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 02 05:10:30 2019 Received: (at 35005) by debbugs.gnu.org; 2 Nov 2019 09:10:30 +0000 Received: from localhost ([127.0.0.1]:58147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQpQU-00050x-B0 for submit@debbugs.gnu.org; Sat, 02 Nov 2019 05:10:30 -0400 Received: from metalevel.at ([185.194.236.120]:38852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQpQT-00050i-39 for 35005@debbugs.gnu.org; Sat, 02 Nov 2019 05:10:29 -0400 Received: by metalevel.at (Postfix, from userid 1000) id DEAD27279B; Sat, 2 Nov 2019 10:10:27 +0100 (CET) From: Markus Triska To: Lars Ingebrigtsen Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> <871rur4u4j.fsf@gnus.org> Date: Sat, 02 Nov 2019 10:10:27 +0100 Message-ID: <87sgn6abjw.fsf@metalevel.at> User-Agent: Emacs/26.1 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35005 Cc: Stefan Monnier , 35005@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > OK, I'll adjust the text in the manual. Names faces are preferable, but > generating faces on the fly is sometimes necessary. In my opinion, this issue is not resolved, please consider reopening it. With the change that is now installed, the documentation reads: Many parts of Emacs require named faces, but some do not accept anonymous faces (e.g., the functions documented in @ref{Attribute Functions}) Where "require named faces" and "do not accept anonymous faces" amounts to the same thing, so the wording seems not to be the intended one. So in fact, the documentation now stresses further that named faces are required, whereas the point of this issue is to document that anonymous faces can be used for fontification. This still cannot be deduced from the current manual. If that works, could you please document it? Thank you and all the best, Markus From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 02 11:07:58 2019 Received: (at 35005) by debbugs.gnu.org; 2 Nov 2019 15:07:58 +0000 Received: from localhost ([127.0.0.1]:32862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQv0P-0000D8-QL for submit@debbugs.gnu.org; Sat, 02 Nov 2019 11:07:58 -0400 Received: from quimby.gnus.org ([80.91.231.51]:56536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQv0O-0000Cy-5B for 35005@debbugs.gnu.org; Sat, 02 Nov 2019 11:07:57 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQv0J-0003kS-T7; Sat, 02 Nov 2019 16:07:54 +0100 From: Lars Ingebrigtsen To: Markus Triska Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> <871rur4u4j.fsf@gnus.org> <87sgn6abjw.fsf@metalevel.at> Date: Sat, 02 Nov 2019 16:07:51 +0100 In-Reply-To: <87sgn6abjw.fsf@metalevel.at> (Markus Triska's message of "Sat, 02 Nov 2019 10:10:27 +0100") Message-ID: <87mudee2pk.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Markus Triska writes: > With the change that is now installed, the documentation reads: > > Many parts of Emacs require named faces, but some do not accept > anonymous faces (e.g., the functions documented in @ref{Attribut [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35005 Cc: Stefan Monnier , 35005@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Markus Triska writes: > With the change that is now installed, the documentation reads: > > Many parts of Emacs require named faces, but some do not accept > anonymous faces (e.g., the functions documented in @ref{Attribute > Functions}) > > Where "require named faces" and "do not accept anonymous faces" amounts > to the same thing, so the wording seems not to be the intended one. Yeah, that's a very awkward of putting it, so I've now tweaked it some. > So in fact, the documentation now stresses further that named faces are > required, whereas the point of this issue is to document that anonymous > faces can be used for fontification. This still cannot be deduced from > the current manual. If that works, could you please document it? It just mentions one example where named faces are required, and I think the reader will take from that that Emacs will document when you can't use anonymous faces. Since font locking doesn't say anything about that, then the natural interpretation is that font locking doesn't require named faces. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 09 12:43:14 2019 Received: (at 35005) by debbugs.gnu.org; 9 Nov 2019 17:43:14 +0000 Received: from localhost ([127.0.0.1]:50231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTUlW-00010Q-G9 for submit@debbugs.gnu.org; Sat, 09 Nov 2019 12:43:14 -0500 Received: from metalevel.at ([185.194.236.120]:40328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTUlU-00010I-H6 for 35005@debbugs.gnu.org; Sat, 09 Nov 2019 12:43:13 -0500 Received: by metalevel.at (Postfix, from userid 1000) id 60E00727AB; Sat, 9 Nov 2019 18:43:11 +0100 (CET) From: Markus Triska To: Lars Ingebrigtsen Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> <871rur4u4j.fsf@gnus.org> <87sgn6abjw.fsf@metalevel.at> <87mudee2pk.fsf@gnus.org> Date: Sat, 09 Nov 2019 18:43:11 +0100 In-Reply-To: <87mudee2pk.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 02 Nov 2019 16:07:51 +0100") Message-ID: <87y2wpndxs.fsf@metalevel.at> User-Agent: Emacs/26.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35005 Cc: Stefan Monnier , 35005@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > It just mentions one example where named faces are required, and I think > the reader will take from that that Emacs will document when you can't > use anonymous faces. Since font locking doesn't say anything about > that, then the natural interpretation is that font locking doesn't > require named faces. Please consider specifically the documentation of the function font-lock-add-keywords that I used in the example. Its documentation points to that of font-lock-keywords, which contains the description: FACENAME is an expression whose value is the face name to use. Instead of a face, FACENAME can evaluate to a property list of the form (face FACE PROP1 VAL1 PROP2 VAL2 ...) in which case all the listed text-properties will be set rather than just FACE. This currently states that a face name is expected. Since the Elisp documentation also states: "Unless otherwise stated, we will use the term =E2=80=9Cface=E2=80=9D to refer only to named faces.", th= e notion of "face" in the description above also does not include anonymous faces. Would it work to mention that "face FACE" can also be omitted, i.e., that an anonymous face can also be specified here? Thank you and all the best, Markus From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 09 13:01:17 2019 Received: (at 35005) by debbugs.gnu.org; 9 Nov 2019 18:01:17 +0000 Received: from localhost ([127.0.0.1]:50251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTV2y-0001Tl-WA for submit@debbugs.gnu.org; Sat, 09 Nov 2019 13:01:17 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:36737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTV2y-0001TZ-3o for 35005@debbugs.gnu.org; Sat, 09 Nov 2019 13:01:16 -0500 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 89758449A5F; Sat, 9 Nov 2019 13:01:10 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 4E2A14499E3; Sat, 9 Nov 2019 13:01:09 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1573322469; bh=NA8cE3pGrHsS9a9JPwg46V3SuAhSPxlfNSj4yUVW69s=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=fT9u4obk8tHUlknxjNiBHTPO3I7WoBOeQgi22DiFj0f/AI1CyGeYElJh3LwKVINly DIDd6pn3t0PZZijl57BUexFc+qN/VmyrDU7ficAZzFh9GTP3fj3YN23vwxOkhE0hRR QeQqmTGNKesz8cEsf7K/9UYQZRfOyRfoAulujTWccSY+cbMWHy5xmuNGDQpfNrQGwd XGu7ChRLzlsxJiWoYSUSAdmNrZBL6xYIqcs1+g3Lz1de3iji/VHPPD6lkqrWVdpckY qB5uGlA+Lc1fmS7C9LpZMkS8A/muxl7NzsC6AphGNNQ72SL7pMHzJhZ2KZcjdVHLYQ GPHeDaCc6YCZQ== Received: from pastel (unknown [216.154.47.134]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DD5F01210DA; Sat, 9 Nov 2019 13:01:08 -0500 (EST) From: Stefan Monnier To: Markus Triska Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces Message-ID: References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> <871rur4u4j.fsf@gnus.org> <87sgn6abjw.fsf@metalevel.at> <87mudee2pk.fsf@gnus.org> <87y2wpndxs.fsf@metalevel.at> Date: Sat, 09 Nov 2019 13:01:05 -0500 In-Reply-To: <87y2wpndxs.fsf@metalevel.at> (Markus Triska's message of "Sat, 09 Nov 2019 18:43:11 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.105 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35005 Cc: Lars Ingebrigtsen , 35005@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > FACENAME is an expression whose value is the face name to use. > Instead of a face, FACENAME can evaluate to a property list of > the form (face FACE PROP1 VAL1 PROP2 VAL2 ...) in which case all > the listed text-properties will be set rather than just FACE. > > This currently states that a face name is expected. > > Since the Elisp documentation also states: "Unless otherwise stated, we > will use the term =E2=80=9Cface=E2=80=9D to refer only to named faces.", = the notion of > "face" in the description above also does not include anonymous faces. > > Would it work to mention that "face FACE" can also be omitted, i.e., > that an anonymous face can also be specified here? No, the `face FACE` *cannot* be omitted: the `face' symbol in the car is tested to distinguish this case. Note also that the `PROP1 VAL1 ...` are *not* face properties, they are *text* properties. The above docstring should probably replace "face name" by "face" but other than that it looks about right. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 09 15:02:50 2019 Received: (at 35005) by debbugs.gnu.org; 9 Nov 2019 20:02:50 +0000 Received: from localhost ([127.0.0.1]:50312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTWwW-0004V8-AD for submit@debbugs.gnu.org; Sat, 09 Nov 2019 15:02:49 -0500 Received: from quimby.gnus.org ([80.91.231.51]:40530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTWwT-0004Ux-4Z for 35005@debbugs.gnu.org; Sat, 09 Nov 2019 15:02:41 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iTWwN-0000Wa-4J; Sat, 09 Nov 2019 21:02:37 +0100 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> <871rur4u4j.fsf@gnus.org> <87sgn6abjw.fsf@metalevel.at> <87mudee2pk.fsf@gnus.org> <87y2wpndxs.fsf@metalevel.at> Date: Sat, 09 Nov 2019 21:02:34 +0100 In-Reply-To: (Stefan Monnier's message of "Sat, 09 Nov 2019 13:01:05 -0500") Message-ID: <87tv7czulh.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > The above docstring should probably replace "face name" by "face" but > other than that it looks about right. OK; updated. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35005 Cc: Markus Triska , 35005@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Monnier writes: > The above docstring should probably replace "face name" by "face" but > other than that it looks about right. OK; updated. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 09 16:02:59 2019 Received: (at 35005) by debbugs.gnu.org; 9 Nov 2019 21:02:59 +0000 Received: from localhost ([127.0.0.1]:50343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTXsp-0006Fy-0p for submit@debbugs.gnu.org; Sat, 09 Nov 2019 16:02:59 -0500 Received: from metalevel.at ([185.194.236.120]:42820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTXsl-0006Fm-Kp for 35005@debbugs.gnu.org; Sat, 09 Nov 2019 16:02:56 -0500 Received: by metalevel.at (Postfix, from userid 1000) id 63B1D727AD; Sat, 9 Nov 2019 22:02:54 +0100 (CET) From: Markus Triska To: Lars Ingebrigtsen Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> <871rur4u4j.fsf@gnus.org> <87sgn6abjw.fsf@metalevel.at> <87mudee2pk.fsf@gnus.org> <87y2wpndxs.fsf@metalevel.at> <87tv7czulh.fsf@gnus.org> Date: Sat, 09 Nov 2019 22:02:54 +0100 In-Reply-To: <87tv7czulh.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 09 Nov 2019 21:02:34 +0100") Message-ID: <87imnszrsx.fsf@metalevel.at> User-Agent: Emacs/26.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35005 Cc: Stefan Monnier , 35005@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: >> The above docstring should probably replace "face name" by "face" but >> other than that it looks about right. > > OK; updated. Initially, I also thought this would solve it. However, as I mentioned, the Emacs documentation states: "Unless otherwise stated, we will use the term =E2=80=9Cface=E2=80=9D to= refer only to named faces." Therefore, the description now still does not make clear that anonymous faces can be used here. I filed this issue to document this feature, and I would appreciate if a phrasing to that effect could be added. Thank you and all the best, Markus From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 09 16:11:12 2019 Received: (at 35005) by debbugs.gnu.org; 9 Nov 2019 21:11:12 +0000 Received: from localhost ([127.0.0.1]:50353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTY0m-0006Vu-3v for submit@debbugs.gnu.org; Sat, 09 Nov 2019 16:11:12 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:50542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTY0k-0006Vd-BH for 35005@debbugs.gnu.org; Sat, 09 Nov 2019 16:11:10 -0500 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id F345C449A6B; Sat, 9 Nov 2019 16:11:04 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C06AD449A51; Sat, 9 Nov 2019 16:10:59 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1573333859; bh=rFXaP7nOVIbq83EERK1RX8yve7hB9K936Fjbm47v1Dk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=VeigqjMUBqvg3WRKoWqvTh7wXAOGVdBs8XwI+2Acwwcd+5d8Fu+9sxN5vON7rnsJu YmxP9li8/xBJG55c8icXuxMYw/F05R0O4tViax1oBDkF9j0kAqWLZCqEf49O9h+ae7 aecfs2RRhHszOhSrYVnZwM+I+Yyhh8Q90ICzupulkBmww9DBpQZQpGq0NDpdxKXxqc DVksxuatF8gpEJRNO3R5ZHYqMpNuTWpM7kplakIGCrWPNf/BL1VnpGgXdpq9uxwp95 OkDgN5u0ngkPDa3umFLTggYf/mQ7CoJgSwoKThzlusFA4/hfo1t27HLRZnRwArWMdi 23zSz1/vGCj6Q== Received: from pastel (unknown [216.154.47.134]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 827F7120F1E; Sat, 9 Nov 2019 16:10:59 -0500 (EST) From: Stefan Monnier To: Markus Triska Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces Message-ID: References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> <871rur4u4j.fsf@gnus.org> <87sgn6abjw.fsf@metalevel.at> <87mudee2pk.fsf@gnus.org> <87y2wpndxs.fsf@metalevel.at> <87tv7czulh.fsf@gnus.org> <87imnszrsx.fsf@metalevel.at> Date: Sat, 09 Nov 2019 16:10:58 -0500 In-Reply-To: <87imnszrsx.fsf@metalevel.at> (Markus Triska's message of "Sat, 09 Nov 2019 22:02:54 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.103 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35005 Cc: Lars Ingebrigtsen , 35005@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Therefore, the description now still does not make clear that anonymous > faces can be used here. Maybe we should simply better document the general rules about where anonymous faces can usually be used and where they usually can't be used (AFAICT they can be used where they affect the redisplay (e.g. in the `face` and `font-lock-face` properties) but they can't be passed to face manipulation functions like `set-face-attributes` and `describe-face`). Their usage in font-lock is a natural consequence of those general rules and doesn't merit extra discussion in the font-lock-keywords doc which is already complex enough IMO. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 09 16:29:16 2019 Received: (at 35005) by debbugs.gnu.org; 9 Nov 2019 21:29:16 +0000 Received: from localhost ([127.0.0.1]:50369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTYIF-0006yK-ST for submit@debbugs.gnu.org; Sat, 09 Nov 2019 16:29:16 -0500 Received: from metalevel.at ([185.194.236.120]:43168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTYIE-0006y8-0T for 35005@debbugs.gnu.org; Sat, 09 Nov 2019 16:29:14 -0500 Received: by metalevel.at (Postfix, from userid 1000) id A5E1D727AD; Sat, 9 Nov 2019 22:29:10 +0100 (CET) From: Markus Triska To: Stefan Monnier Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> <871rur4u4j.fsf@gnus.org> <87sgn6abjw.fsf@metalevel.at> <87mudee2pk.fsf@gnus.org> <87y2wpndxs.fsf@metalevel.at> <87tv7czulh.fsf@gnus.org> <87imnszrsx.fsf@metalevel.at> Date: Sat, 09 Nov 2019 22:29:10 +0100 In-Reply-To: (Stefan Monnier's message of "Sat, 09 Nov 2019 16:10:58 -0500") Message-ID: <87h83cu4bd.fsf@metalevel.at> User-Agent: Emacs/26.1 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35005 Cc: Lars Ingebrigtsen , 35005@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Monnier writes: > Maybe we should simply better document the general rules about where > anonymous faces can usually be used and where they usually can't be > used Yes, I would greatly appreciate this, and it would also solve this concrete issue. Thank you and all the best, Markus From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 09 20:52:18 2019 Received: (at 35005) by debbugs.gnu.org; 10 Nov 2019 01:52:18 +0000 Received: from localhost ([127.0.0.1]:50531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTcOo-00053C-IE for submit@debbugs.gnu.org; Sat, 09 Nov 2019 20:52:18 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:40354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTcOm-00052z-HQ for 35005@debbugs.gnu.org; Sat, 09 Nov 2019 20:52:17 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xAA1nM6c041346; Sun, 10 Nov 2019 01:52:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=9tL8pr4jv/ChEuabXASOlH0hfT0Ezi5PxEIgfSXxYQs=; b=lxc+bdFsw6Go1+tg81VkKOKefOidxmaZVTR2O17HQe58jYMrl6xlGEkyVOx8foc6E/xb I1+Y5+lW3MVF50o9s/5ZwtPaC+xWmM7G8nqjDmg9Mtr0wDROcfsfDNyxH8VVqlmVd2/X xqxonwgczHcAIVL9br+EHfgLbQaKFLyh6mYjDTOMmj0KaZnxd08gqnVIGXcTa4qd+PWi losRCgHv40H8eQ61hPkVGK73qcPLD7pa/xgapX/ElWsuHbVJkyTsvOG1IEbJ12nTY0Ju 4TRJU5E1qc1lKvq1sFyum6snGfWUJdiZ4t14jcvNlTgoD5YPyV56p8JRMnpY1qlLWMkZ tg== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2w5p3qa4ts-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 10 Nov 2019 01:52:10 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xAA1mcod041035; Sun, 10 Nov 2019 01:52:09 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 2w67kxefrv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 10 Nov 2019 01:52:09 +0000 Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id xAA1q5GA005459; Sun, 10 Nov 2019 01:52:07 GMT MIME-Version: 1.0 Message-ID: <0e64f540-02da-459b-8d4c-5f5d9116075b@default> Date: Sat, 9 Nov 2019 17:52:04 -0800 (PST) From: Drew Adams To: Markus Triska , Lars Ingebrigtsen Subject: RE: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> <871rur4u4j.fsf@gnus.org> <87sgn6abjw.fsf@metalevel.at> <87mudee2pk.fsf@gnus.org> <87y2wpndxs.fsf@metalevel.at> <87tv7czulh.fsf@gnus.org> <87imnszrsx.fsf@metalevel.at> In-Reply-To: <87imnszrsx.fsf@metalevel.at> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4900.0 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9436 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=832 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1910280000 definitions=main-1911100015 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9436 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=925 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1910280000 definitions=main-1911100016 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35005 Cc: Stefan Monnier , 35005@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Sorry to interrupt, but is there a good reason y'all are sending this to both the bug list and emacs-devel? If not, please consider sending it to only the bug list. Thx. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 04:01:00 2019 Received: (at 35005) by debbugs.gnu.org; 14 Nov 2019 09:01:00 +0000 Received: from localhost ([127.0.0.1]:60926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVAzs-0006nw-1l for submit@debbugs.gnu.org; Thu, 14 Nov 2019 04:01:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45957) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVAzq-0006nj-5F for 35005@debbugs.gnu.org; Thu, 14 Nov 2019 04:00:58 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iVAzk-0004EL-6W; Thu, 14 Nov 2019 04:00:52 -0500 Received: from [176.228.60.248] (port=1521 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iVAzj-0000IV-L5; Thu, 14 Nov 2019 04:00:51 -0500 Date: Thu, 14 Nov 2019 11:00:36 +0200 Message-Id: <837e4296iz.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Sat, 09 Nov 2019 16:10:58 -0500) Subject: Re: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> <871rur4u4j.fsf@gnus.org> <87sgn6abjw.fsf@metalevel.at> <87mudee2pk.fsf@gnus.org> <87y2wpndxs.fsf@metalevel.at> <87tv7czulh.fsf@gnus.org> <87imnszrsx.fsf@metalevel.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35005 Cc: larsi@gnus.org, triska@metalevel.at, 35005@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stefan Monnier > Date: Sat, 09 Nov 2019 16:10:58 -0500 > Cc: Lars Ingebrigtsen , 35005@debbugs.gnu.org, > emacs-devel@gnu.org > > > Therefore, the description now still does not make clear that anonymous > > faces can be used here. > > Maybe we should simply better document the general rules about where > anonymous faces can usually be used and where they usually can't be used > (AFAICT they can be used where they affect the redisplay (e.g. in the > `face` and `font-lock-face` properties) but they can't be passed to face > manipulation functions like `set-face-attributes` and `describe-face`). > Their usage in font-lock is a natural consequence of those general > rules and doesn't merit extra discussion in the font-lock-keywords > doc which is already complex enough IMO. If someone knows enough to write a documentation patch about this, please feel free, and TIA. From unknown Tue Jun 17 01:27:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 12 Dec 2019 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator