org-pcomplete: Modify completion for buffer keywords
commite14cf78056a0a4d1528b700d462b21172cd7afeb
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 27 Jan 2013 23:09:31 +0000 (28 00:09 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Wed, 6 Feb 2013 22:06:31 +0000 (6 23:06 +0100)
treeee8c7737800896bbe88214c7b86c1ef536b74791
parenta2f56264c918b679b53c5b7df0ef2e01a77c63d4
org-pcomplete: Modify completion for buffer keywords

* lisp/org-pcomplete.el (pcomplete/org-mode/file-option): Collect
  valid keywords for completion without requiring the whole export
  framework.
(pcomplete/org-mode/file-option/options): Rewrite using new export
  framework.  Only complete up to the colon.
(pcomplete/org-mode/file-option/x): Removed macro.
(pcomplete/org-mode/file-option/title,
 pcomplete/org-mode/file-option/author,
 pcomplete/org-mode/file-option/email,
 pcomplete/org-mode/file-option/date): Removed functions.
(pcomplete/org-mode/file-option/infojs_opt): New function.

Completion for some keywords was removed because it provided only the
default value, which is the same as not writing the keyword at all.  In
other words, a user would almost always want to modify the completed
value, which makes the completion moot.
lisp/org-pcomplete.el