From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: check if properties drawer exists before creating or manipulating? Date: Thu, 31 Oct 2013 10:17:47 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbt4J-0006rY-VB for emacs-orgmode@gnu.org; Thu, 31 Oct 2013 10:17:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vbt4G-0000tt-HZ for emacs-orgmode@gnu.org; Thu, 31 Oct 2013 10:17:51 -0400 Received: from mail-qe0-x22d.google.com ([2607:f8b0:400d:c02::22d]:58134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbt4G-0000tp-DX for emacs-orgmode@gnu.org; Thu, 31 Oct 2013 10:17:48 -0400 Received: by mail-qe0-f45.google.com with SMTP id 8so1763519qea.18 for ; Thu, 31 Oct 2013 07:17:48 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode (still trying to set properties automatically when a minor-mode is set, see first message in thread) Is there a simple way to check if the properties drawer exists before creating one? I'm trying to add a hook to org-insert-heading-hook that will create a property drawer if one doesn't exist; I don't want to create a bunch of independent properties drawers. Thanks! Matt