Fix property name completion
commitaca68e64bc3d4ed65563d7a0a454915d76a7b0f8
authorAlexey Lebedeff <binarin@gmail.com>
Tue, 29 Dec 2015 10:20:09 +0000 (29 13:20 +0300)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 29 Dec 2015 20:53:56 +0000 (29 21:53 +0100)
tree498713ba033df27796d7883dd9132fc2c69a7635
parent05973be2979bd5f42278d256146b21d7e81cbc71
Fix property name completion

* lisp/org-pcomplete.el (pcomplete/org-mode/prop): Add
  `ignore-malformed' argument in call to `org-buffer-property-keys'

* lisp/org.el (org-buffer-property-keys): Add support for new argument
  `ignore-malformed'.

* testing/lisp/test-org-pcomplete.el: Add new file for testing
  `pcomplete' integration.

* testing/lisp/test-org.el (test-org/buffer-property-keys): Test
  behaviour of `org-buffer-property-keys' with new `ignore-malformed'
  argument.

When property name completion is being performed, it means that we are
inside malformed property drawer that will become valid only after
successful completion. In this case in makes no sense to perform
interactive drawer repair.
lisp/org-pcomplete.el
lisp/org.el
testing/lisp/test-org-pcomplete.el [new file with mode: 0644]
testing/lisp/test-org.el