org.el: New command `org-set-property-and-value' bound to `C-c C-x P'
commitca4219abc9e3e4da41a719d046d2a08fa7d604f1
authorBastien Guerry <bzg@altern.org>
Mon, 24 Dec 2012 13:44:21 +0000 (24 14:44 +0100)
committerBastien Guerry <bzg@altern.org>
Mon, 24 Dec 2012 13:44:21 +0000 (24 14:44 +0100)
treecd61509dfa293d58b9d7e53c8d951f40ca341df6
parente6d8ed51b8434046d1e49d4c3f19994d69017780
org.el: New command `org-set-property-and-value' bound to `C-c C-x P'

* org.el (org-last-set-property-value): New variable.
(org-read-property-name): Fix dangling parentheses.
(org-set-property-and-value): New command to manually set
both the property and the value.  A prefix arg will use the
last property-value pair set without prompting the user.
(org-set-property): Set `org-last-set-property-value'.
(org-mode-map): Bind the new command to `C-c C-x P'.

This is useful when you need to set the same property-value
pair for several entries.
lisp/org.el