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:18:01 -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]:52170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbt4V-00072z-3F for emacs-orgmode@gnu.org; Thu, 31 Oct 2013 10:18:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vbt4U-0000vm-6f for emacs-orgmode@gnu.org; Thu, 31 Oct 2013 10:18:02 -0400 Received: from mail-qc0-x229.google.com ([2607:f8b0:400d:c01::229]:38925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbt4T-0000vd-QI for emacs-orgmode@gnu.org; Thu, 31 Oct 2013 10:18:02 -0400 Received: by mail-qc0-f169.google.com with SMTP id x12so1702356qcv.28 for ; Thu, 31 Oct 2013 07:18:01 -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 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 (see my earlier email, in which I ask,