From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Overriding inherited face attributes Date: Thu, 29 Nov 2018 18:30:54 +0100 Message-ID: <87in0f94fl.fsf@gmx.net> References: <87pnuqfboc.fsf@gmx.net> <83sgzlg1w7.fsf@gnu.org> <87in0h1jak.fsf@rub.de> <8336rlfj1y.fsf@gnu.org> <87efb51h18.fsf@rub.de> <831s75fa5q.fsf@gnu.org> <87a7lt0y5b.fsf@rub.de> <83in0hdjo4.fsf@gnu.org> <875zwg28ek.fsf@rub.de> <83ftvke4nn.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1543513541 30666 195.159.176.226 (29 Nov 2018 17:45:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2018 17:45:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 29 18:45:37 2018 Return-path: Envelope-to: geh-help-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 1gSQNb-0007mn-1N for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2018 18:45:36 +0100 Original-Received: from localhost ([::1]:55541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSQPh-0006PQ-BB for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2018 12:47:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSQLf-0003vs-E2 for help-gnu-emacs@gnu.org; Thu, 29 Nov 2018 12:43:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSQ9X-0004hf-FU for help-gnu-emacs@gnu.org; Thu, 29 Nov 2018 12:31:05 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:42295) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSQ9Q-0004dZ-ON; Thu, 29 Nov 2018 12:30:56 -0500 Original-Received: from rosalinde ([188.101.30.44]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M6SJX-1hQsCL2l4t-00yNYH; Thu, 29 Nov 2018 18:30:54 +0100 In-Reply-To: <83ftvke4nn.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 29 Nov 2018 09:14:52 +0200") X-Provags-ID: V03:K1:7R7TRf80GPbx8LQW9i6PSr9iSeocbkfc0irt0LsQGn7QTMmpRyZ K4AGu/eUakIWDnc6AGXCWCoYtM4su/+Yhugu+fY7fmqvT6QpmkgMerOyX5o/TbW+u00B9Pw HDg6KM98u3JVwPAVn2ZqUXInx9uDMzfk394OxjTFRhBai4K3w8G3ofH+wHYARRXPJyrO0Ak h5D+ZqIZqxLU0WTRO9RDg== X-UI-Out-Filterresults: notjunk:1;V03:K0:dCaeecd3+8M=:8NiF54wtJVOR5atqxCDql6 LbPPP3WzeUX33wP/ZTsb9VslB+TvADHm1wpiHOLTDlEkPyW6AwjR7ENEGX8oLNbn6L3Z2vc27 acKJihshENDGP9HHqfUfLLQ8YPXtkyMyrP/9VreD9cg0IEKP4HCgPa59IVnCVbsd+man5Xw7z 2i6bDeZ8mizmRAerAC7E4rqF5b+ys707bSSnT3g5FuIa49HLGVSl9lbfpaqKl02TUfIBgi00B QiumMjfc8s0YMK82LEvR6ECpXEiQ3nVA8T4cQnBuPuM+prfZhHBhdpvhhi6Gc1l8sB3BAjUYu hlKR45uI+Cvmq0SDKPeYzrzCCH+fCLzUArweCsYtvuqdfqCjSwfrPmdx+jk2JPhGta2Uk2LmA zzdFdeFiJmArzvRse63w30IvE+nVx/YlMC8bDr4a5igPwqhSAo3Qy/XeNRgHwl7CTLd5cLTt3 oyChsnPXxbR+WigREVB57QVXUx5IkiAC0iHzfiMRU0qKPeYs+aTEiKT7vClzI6Xq+2ftwwOem R56JPtckql2WQaCV+uAdUHzGLkOaBG+eVLxkMQMZpsKkjhVam0zsiYl7wnHR6YANd6gXrCB3J Beb/DrLQWheSG+wKHMbBx7N/LjAcfe5RlNJvv6zuaIJY7A6NORRmiYR+54j35zkSCPnudDxPk eJlfU8ph1qYe+WWPco3y40Gcs+7lCvnLjtZ1lKH9Xj8TS/AR61LfUgPbtkKw7MFdDM6xH95Eo 2ppzTnGgws3i1dMndp6cG6XSqRwho0vWx1SpyE3Tt4FuquWVKUb3F+fe1oAV14/sK9Pt+bkQ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118807 Archived-At: On Thu, 29 Nov 2018 09:14:52 +0200 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: help-gnu-emacs@gnu.org >> Date: Wed, 28 Nov 2018 22:34:43 +0100 >> >> > So this is only about what propertize does? And only when some of the >> > later properties override earlier ones? >> >> Well, it's at least about what propertize does, since that was the OP's >> example (the first form above), which lead to my observation of the >> difference with the second form. > > My reading of the code is that later face attributes override the > earlier once, i.e. the attributes are processed in order, and :inherit > doesn't have any precedence in this case. Which seems like a sensible > thing, but I'm not sure we want to document this implementation > detail. In general, having conflicting face attributes in the face > definition is not a good idea anyway; the only sensible use case is > when you want to change (i.e. override) some attribute of an existing > face, and for that, putting the overriding attribute at the end is the > natural thing to do. IOW, Emacs seems to do what users should expect. This makes sense and maybe it's not worth documenting. On the other hand, it wasn't obvious to me from looking in the Lisp manual that the way prioritize and add-text-properties work is not related to what is documented about the `face' property (giving priority to earlier not later elements in the list). Maybe I didn't read carefully enough. Steve Berman