emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] lisp/org.el: Use `org-document-info' face for subtitles


From: Titus von der Malsburg
Subject: Re: [PATCH] lisp/org.el: Use `org-document-info' face for subtitles
Date: Thu, 12 Nov 2020 18:13:47 +0100
User-agent: mu4e 1.5.5; emacs 28.0.50

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

Attachment: 0001-lisp-org.el-Allow-hiding-SUBTITLE-keyword-via-org-hi.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]