Function: pcomplete/org-mode/prop

pcomplete/org-mode/prop is a byte-compiled function defined in org-pcomplete.el.gz.

Signature

(pcomplete/org-mode/prop)

Documentation

Complete a property name. Omit properties already set.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-pcomplete.el.gz
   (substring pcomplete-stub 1)))	;remove initial colon

(defun pcomplete/org-mode/prop ()
  "Complete a property name.  Omit properties already set."
  (pcomplete-here
   (org-pcomplete-case-double
    (mapcar (lambda (x)
	      (concat x ": "))
	    (let ((lst (pcomplete-uniquify-list
			(copy-sequence (org-buffer-property-keys nil t t)))))
	      (dolist (prop (org-entry-properties))
		(setq lst (delete (car prop) lst)))
	      lst)))
   (substring pcomplete-stub 1)))