Explorar el Código

org-pcomplete: Complete lower case node properties

* lisp/org-pcomplete.el (pcomplete/org-mode/block-option/src):
  Complete lower case node properties.
Nicolas Goaziou hace 6 años
padre
commit
9d4af29feb
Se han modificado 1 ficheros con 8 adiciones y 7 borrados
  1. 8 7
      lisp/org-pcomplete.el

+ 8 - 7
lisp/org-pcomplete.el

@@ -354,13 +354,14 @@ This needs more work, to handle headings with lots of spaces in them."
 (defun pcomplete/org-mode/prop ()
   "Complete a property name.  Omit properties already set."
   (pcomplete-here
-   (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))
+   (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)))
 
 (defun pcomplete/org-mode/block-option/src ()