Hi!

This is a simple suggestion to improve function `org-property-action'.
Currently `org-property-action' errors when 'not at a property'.  But
this is unnecessary AFAICS.

Without the restriction one can use the function to control any property
inclusive setting the very first property.

Do I miss something (again)?


Best regards
            Marco


>From 83805606e630caf1ac47d0662b1e58df01441e3c Mon Sep 17 00:00:00 2001
From: Marco Wahl <marcowahls...@gmail.com>
Date: Thu, 23 Mar 2017 00:28:53 +0100
Subject: [PATCH] org: Liberate org-property-action

* lisp/org.el (org-property-action): Remove unnecessary restriction
  for property action.
---
 lisp/org.el | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 126318aa3..d122184c7 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15535,7 +15535,6 @@ See `org-property-re' for match data, if applicable."
 (defun org-property-action ()
   "Do an action on properties."
   (interactive)
-  (unless (org-at-property-p) (user-error "Not at a property"))
   (message "Property Action:  [s]et  [d]elete  [D]elete globally  [c]ompute")
   (let ((c (read-char-exclusive)))
     (cl-case c
-- 
2.12.0

Reply via email to