emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: [PATCH] org-at-property-p and related


From: Mikael Fornius
Subject: [Orgmode] Re: [PATCH] org-at-property-p and related
Date: Thu, 11 Mar 2010 15:01:10 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.92 (gnu/linux)

Sorry, I did a little wrong again. It is not my day today...

Please also apply this for correct behavior:

diff --git a/lisp/org.el b/lisp/org.el
index ad15d5e..a4932a2 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12986,7 +12986,7 @@ in the current file."
   (interactive
    (let* ((completion-ignore-case t)
          (keys (org-buffer-property-keys nil t t))
-         (prop0 (or (progn (org-at-property-p) (org-match-string-no-properties 
2))
+         (prop0 (or (when (org-at-property-p) (org-match-string-no-properties 
2))
                     (org-icompleting-read "Property: " (mapcar 'list keys))))
          (prop (if (member prop0 keys)
                    prop0
@@ -13014,7 +13014,7 @@ in the current file."
   "In the current entry, delete PROPERTY."
   (interactive
    (let* ((completion-ignore-case t)
-         (prop (or (progn (org-at-property-p) (org-match-string-no-properties 
2))
+         (prop (or (when (org-at-property-p) (org-match-string-no-properties 
2))
                    (org-icompleting-read
                     "Property: " (org-entry-properties nil 'standard)))))
      (list prop)))
-- 
Mikael Fornius

reply via email to

[Prev in Thread] Current Thread [Next in Thread]