From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id XOipIp/LZl8HRgAA0tVLHw (envelope-from ) for ; Sun, 20 Sep 2020 03:25:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wLIjHp/LZl8wOwAAB5/wlQ (envelope-from ) for ; Sun, 20 Sep 2020 03:25:19 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 26686940238 for ; Sun, 20 Sep 2020 03:25:18 +0000 (UTC) Received: from localhost ([::1]:40342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJpyV-0005X0-J2 for larch@yhetil.org; Sat, 19 Sep 2020 23:25:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJpy0-0005Wt-O2 for emacs-orgmode@gnu.org; Sat, 19 Sep 2020 23:24:44 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:52233) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJpxy-0007iw-Tg; Sat, 19 Sep 2020 23:24:44 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id EB70F5C007A; Sat, 19 Sep 2020 23:24:39 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Sat, 19 Sep 2020 23:24:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm3; bh=mgHFpEI16WfYhuIC//JdTPf8iZah5qM xjDyVtZPWR+M=; b=WHO8etBHd3VKZKnOUvIiY1bCY8i1owTCrQbsGIr1RWeZxr8 YjiV9b4FtSgKTEweItQm1WKpVgvMsRe5+8yL6tPzZqA4D1jxMb0RiLK41R7LphZ3 Yr27ou6FsLztGMAqH1F51N+arxHTI3zx3yVdevr9Y7SDgnUWxC8V4RsrEGayRhxB 4XRUyG1GN2nUkjc6Qax0CEqPQS+xp4Y2Uboe+nnjXxH/rtuT9EXkuSWa3ogmi02P zXsTop3jeQ8f6AstqJJgteDiGrFeo5lUGyRSOYsxp3xnHPxcX2nGhinjqsgRuG65 XQD8+OZQzTl91ttjZcrM71t74/quFEZw+dXVRpw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=mgHFpE I16WfYhuIC//JdTPf8iZah5qMxjDyVtZPWR+M=; b=JyC3ibeIuAktkNR6qKa9nO dxQ8mnQPH2TrmZX1a8nMqgvT6/588Y46x/TO4RRK8KibA5/G1eUHVCskocUuXxVv cRJDNmVTksf9ydFAi5eWkB3JlLEoJNDuEnGfm9LynUrE8kJVfBTqhg2overiGACN jduxMrDiDR6AnNk2s6id2fjvLsT42zdMGnOHKodF36/xc9WkJmcGhEftg0ent8g4 eOozrWohGHtk3qXt74wOdyXhV6hpC6WzFVKAnue7W53tGi43k0A+enVgLMFB/ZL0 83/vUtI4ipE8taJjIfo5yKHFckfIn+pcHqcr+xUJuPGAO90g3Y6Py66Ix5vEWnFw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrtdelgdeikecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsegrtderreerreejnecuhfhrohhmpedfufhhvghn ghcujggrnhhgfdcuoehsthihrghnghesfhgrshhtmhgrihhlrdgtohhmqeenucggtffrrg htthgvrhhnpeehleeutdduffffgeffieelteetvdduieehhfevgfdviedvtddtieefieeg geevjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsthihrghnghesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id E3C12E06F1; Sat, 19 Sep 2020 23:24:38 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-325-g8593b62-fm-20200916.004-g0f995879-bis Mime-Version: 1.0 Message-Id: <6c38aabf-6921-4843-9302-db080b2de2e5@www.fastmail.com> In-Reply-To: <877dsro1ho.fsf@protesilaos.com> References: <878sii4yj7.fsf@protesilaos.com> <871rje9qkf.fsf@protesilaos.com> <87k0x3l4h2.fsf@gnu.org> <87o8mbxxdr.fsf@protesilaos.com> <87363gn72q.fsf@localhost> <877dsro1ho.fsf@protesilaos.com> Date: Sat, 19 Sep 2020 22:24:10 -0500 From: "Sheng Yang" To: "Protesilaos Stavrou" , "Ihor Radchenko" Subject: Re: [PATCH] Adaptive Org faces in headings? Content-Type: multipart/alternative; boundary=d729a912c4bd4bf791c807809d88829a Received-SPF: pass client-ip=66.111.4.29; envelope-from=styang@fastmail.com; helo=out5-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/19 23:24:39 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bastien , Diego Zamboni , Org-mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=fastmail.com header.s=fm3 header.b=WHO8etBH; dkim=fail (rsa verify failed) header.d=messagingengine.com header.s=fm3 header.b=JyC3ibeI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 2.10 X-TUID: C3oWTVPqQLWD --d729a912c4bd4bf791c807809d88829a Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks for the patch! I noticed the patch also works for org-link, which had been a headache f= or me. On Fri, Sep 18, 2020, at 04:52, Protesilaos Stavrou wrote: > Ihor Radchenko [2020-09-17, 16:25 +0800]: >=20 > > The attached patch seems to fix the issue. > > Can anyone test? I also tested, with the following org file. Works well with one exceptio= n: the underline for org-link, which remains the color of itself. The re= ason is that face org-link inherits face link, which has :underline t in= its setting. Therefore, it should be the expected behavior. > * test ~code~ =3Dverb=3D [[link]] > #+begin_src emacs-lisp > (set-face-attribute 'org-level-1 nil :height 3.0 :weight 'normal) > (set-face-attribute 'org-level-1 nil :weight 'bold) > (set-face-attribute 'org-level-1 nil :background "white") > (set-face-attribute 'org-level-1 nil :overline "yellow") > (set-face-attribute 'org-level-1 nil :underline "red") > #+end_src Sheng Yang(=E6=9D=A8=E5=9C=A3), PhD student Computer Science Department University of Maryland, College Park E-mail: styang@fastmail.com E-mail (old but still used): yangsheng6810@gmail.com --d729a912c4bd4bf791c807809d88829a Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
Thanks for the = patch!
I noticed the patch also works for org-link, which = had been a headache for me.

On Fri, Sep 18,= 2020, at 04:52, Protesilaos Stavrou wrote:
Ihor Radchenko <yantar92@gmail.com> [2020-09-17, 16:25 +0800]:<= br>

> The attached patch seems to fix the is= sue.
> Can anyone test?

I also tested, with the following org f= ile. Works well with one exception: the underline for org-link, which re= mains the color of itself. The reason is that face org-link inherits fac= e link, which has :underline t in its setting. Therefore, it should be t= he expected behavior.
* test ~code~ =3Dverb=3D [[link]]
  #+begin_src ema= cs-lisp
(set-face-attribute 'org-level-1 nil :height 3.0 := weight 'normal)
(set-face-attribute 'org-level-1 nil :weig= ht 'bold)
(set-face-attribute 'org-level-1 nil :background= "white")
(set-face-attribute 'org-level-1 nil :overline "= yellow")
(set-face-attribute 'org-level-1 nil :underline "= red")
  #+end_src


Sheng Yang(=E6= =9D=A8=E5=9C=A3), PhD student
Computer Science Department<= br>
University of Maryland, College Park
E-mail:= styang@fastmail.com
E-mail (old but still used): yangsheng6810@gmail.com

--d729a912c4bd4bf791c807809d88829a--