From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OPWeFWxtrV/YXAAA0tVLHw (envelope-from ) for ; Thu, 12 Nov 2020 17:14:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eGp/EWxtrV9kVwAAbx9fmQ (envelope-from ) for ; Thu, 12 Nov 2020 17:14:20 +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 C64689406FA for ; Thu, 12 Nov 2020 17:14:19 +0000 (UTC) Received: from localhost ([::1]:57912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdGAr-0004Vr-Ib for larch@yhetil.org; Thu, 12 Nov 2020 12:14:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdGAT-0004VV-Vd for emacs-orgmode@gnu.org; Thu, 12 Nov 2020 12:13:54 -0500 Received: from mout01.posteo.de ([185.67.36.65]:44647) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdGAR-0001ME-LB for emacs-orgmode@gnu.org; Thu, 12 Nov 2020 12:13:53 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 25017160060 for ; Thu, 12 Nov 2020 18:13:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1605201228; bh=uupaOkRVM/5+psKWafTLY9PdkKjZyIRV47SAHRHd68o=; h=From:To:Cc:Subject:Date:From; b=WYKVuC7RIX+EpklLEkMkMdNAru28BMn5biYOGMjYK5GZDE2OSdcRzoASgd6V1Bvma lwTgDwKReeLyfYcnGQr1rLs+QId/TXrPQwt8JCkEK3YvHvOuEOeza9BQXiYyvFZkFk Lue8ocWC5j1vTTdxSGyI6y8zq2doV00b3t2KfFyrdauLgLh/JOX00KsFizbP0PSVwF 0/lK0RNjY3bPYtsaZ0qXkiGKryw2Cn5vpLrPdvb/OWip49M5f3GHUWzEIrWuIvMtjN RYWpGkabYQOEdnPMGxW2fC+zq+0COY6WYJRP10PBg8MrIt9ruLKKJ+OBXZR+uOkQmb +EJrWzswIj/RA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CX7VM3ZJ7z6tm9; Thu, 12 Nov 2020 18:13:47 +0100 (CET) References: <87lffi7ou7.fsf@posteo.de> <87d00rnh46.fsf@kyleam.com> <87a6vu8zm2.fsf@posteo.de> <87r1p4ygaq.fsf@kyleam.com> User-agent: mu4e 1.5.5; emacs 28.0.50 From: Titus von der Malsburg To: Kyle Meyer Subject: Re: [PATCH] lisp/org.el: Use `org-document-info' face for subtitles In-reply-to: <87r1p4ygaq.fsf@kyleam.com> Date: Thu, 12 Nov 2020 18:13:47 +0100 Message-ID: <87blg2o5v8.fsf@posteo.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=malsburg@posteo.de; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/12 12:13:48 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=WYKVuC7R; dmarc=pass (policy=none) header.from=posteo.de; 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: -1.71 X-TUID: U1kS07Hc4BI9 --=-=-= Content-Type: text/plain On 2020-11-07 Sa 23:04, Kyle Meyer wrote: > Titus von der Malsburg writes: > >> On 2020-11-06 Fr 07:18, Kyle Meyer wrote: >>> Titus von der Malsburg writes: >>> >>>> Subject: [PATCH] lisp/org.el: Use face org-document-info for subtitle >>>> >>>> * lisp/org.el: The value for the #+subtitle: property is now displayed >>>> with face `org-document-info' instead of `org-meta-line'. >>>> >>>> Like the title, author, e-mail, date, the subtitle is information >>>> that is displayed in the exported document. >>> >>> Makes sense to me, and I guess it was left out just because #+subtitle >>> wasn't around until v8.3. >>> >>>> --- >>>> lisp/org.el | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>> >>>> diff --git a/lisp/org.el b/lisp/org.el >>>> index 03df139fb..27f09645b 100644 >>>> --- a/lisp/org.el >>>> +++ b/lisp/org.el >>>> @@ -5307,7 +5307,7 @@ by a #." >>>> (min (point-max) end-of-endline)) >>>> '(face org-block-end-line))) >>>> t)) >>>> - ((member dc1 '("+title:" "+author:" "+email:" "+date:")) >>>> + ((member dc1 '("+title:" "+subtitle:" "+author:" "+email:" "+date:")) >>>> (org-remove-flyspell-overlays-in >>>> (match-beginning 0) >>>> (if (equal "+title:" dc1) (match-end 2) (match-end 0))) >>> >>> Please also update org-document-info-keyword's docstring. >> >> Done. I also updated the docstring for `org-document-info'. See attached patch. > > Thanks. Applied (e2fe59683), add entries to the changelog for the > faces. Attached is a follow-up patch that allows users to hide the #+SUBTITLE: keyword via `org-hidden-keywords' just like #+TITLE, #+AUTHOR:, and similar. Titus --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-lisp-org.el-Allow-hiding-SUBTITLE-keyword-via-org-hi.patch >From 794e126fa1ab3cebc8de3bf35324e8353bc8a427 Mon Sep 17 00:00:00 2001 From: Titus von der Malsburg Date: Thu, 12 Nov 2020 18:03:33 +0100 Subject: [PATCH] lisp/org.el: Allow hiding #+SUBTITLE: keyword via `org-hidden-keywords' * lisp/org.el: Allow users to include 'subtitle in `org-hidden-keywords' to hide #+SUBTITLE: keyword. This way #+SUBTITLE is treated like similar keywords for title, date, e-mail, and author. --- lisp/org.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org.el b/lisp/org.el index 73b270712..0d2fbddda 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3573,6 +3573,7 @@ appear in the buffer without the initial \"#+TITLE:\" part." :type '(set (const :tag "#+AUTHOR" author) (const :tag "#+DATE" date) (const :tag "#+EMAIL" email) + (const :tag "#+SUBTITLE" subtitle) (const :tag "#+TITLE" title))) (defcustom org-custom-properties nil -- 2.25.1 --=-=-=--