(org-contacts) Don't try to store link above first heading
commitc386c16802839c01edbc843e700fe0d8214e0b15
authorJoseph Turner <joseph@breatheoutbreathe.in>
Sun, 16 Jul 2023 23:25:48 +0000 (16 16:25 -0700)
committerstardiviner <numbchild@gmail.com>
Fri, 21 Jul 2023 00:47:36 +0000 (21 08:47 +0800)
tree192ade57954c3a4dafeb3259d0c434d9f238e543
parent2b3a3866aa6f8488520bd1e4608e58bf8597fa08
(org-contacts) Don't try to store link above first heading

Hi,

Here's a small patch for org-contacts.el.

Be well,

Joseph

From 80365905c9fd342e25ac529dcf0849e4cf90af8c Mon Sep 17 00:00:00 2001
From: Joseph Turner <joseph@breatheoutbreathe.in>
Date: Sun, 16 Jul 2023 16:13:14 -0700
Subject: [PATCH] Fix: Don't try to store link above first heading

Previously, org-contacts-link-store attempted to store a link when
point was above the first heading, but signalled an error after

(org-get-heading t t t t)

returned nil. Now, org-contacts-link-store does not attempt to handle
storing links above the first heading.
org-contacts.el