From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Micha=C3=ABl_Cadilhac?= Subject: Re: Completely hide the :PROPERTIES: drawer in org-mode. Date: Thu, 14 Feb 2019 16:21:37 +0000 Message-ID: References: <87lg2l4d2g.fsf@nicolasgoaziou.fr> <875ztnu5c3.fsf@nicolasgoaziou.fr> <87y36jsmwk.fsf@nicolasgoaziou.fr> <87y36iqrj2.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:42345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guJmT-0005LV-2u for emacs-orgmode@gnu.org; Thu, 14 Feb 2019 11:22:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guJmK-0005dk-DC for emacs-orgmode@gnu.org; Thu, 14 Feb 2019 11:22:27 -0500 Received: from cadilhac.name ([163.172.56.42]:37954 helo=mattermost.cadilhac.name) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1guJmE-0005VV-Oh for emacs-orgmode@gnu.org; Thu, 14 Feb 2019 11:22:21 -0500 Received: from mail-vs1-f47.google.com (mail-vs1-f47.google.com [209.85.217.47]) by mattermost.cadilhac.name (OpenSMTPD) with ESMTPSA id 28d5c1a8 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 14 Feb 2019 16:22:15 +0000 (UTC) Received: by mail-vs1-f47.google.com with SMTP id e16so3976678vsq.6 for ; Thu, 14 Feb 2019 08:22:14 -0800 (PST) In-Reply-To: <87y36iqrj2.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: =?UTF-8?Q?Micha=C3=ABl_Cadilhac?= , Keith David Bershatsky , emacs-orgmode@gnu.org On Thu, 14 Feb 2019 at 16:11, Nicolas Goaziou wrote: > Would you want to provide a patch including the replacement of > `org-special-keyword' with `org-drawer'? Will do. This in particular requires to swap fontifying the drawers and the keywords (since :END: and :PROPERTIES: are keywords): --- a/lisp/org.el +++ b/lisp/org.el @@ -6255,12 +6255,12 @@ needs to be inserted at a specific position in the font-lock sequence.") '("^[ \t]*| *\\([#*]\\) *|" (1 'org-formula t)) '("^[ \t]*|\\( *\\([$!_^/]\\) *|.*\\)|" (1 'org-formula t)) '("| *\\(<[lrc]?[0-9]*>\\)" (1 'org-formula t)) - ;; Drawers - '(org-fontify-drawers) ;; Properties (list org-property-re '(1 'org-special-keyword t) '(3 'org-property-value t)) + ;; Drawers + '(org-fontify-drawers) ;; Link related fontification. '(org-activate-links) (when (memq 'tag lk) '(org-activate-tags (1 'org-tag prepend))) Agreed? Cheers; M.