Explorar o código

No ido completion for free prompts in remember templates.

do completion does not work well with values including white space,
which means we cannot use it in completion of values in remember
templates.  This patch turns it off for this application.

Report by Richard Riley.
Carsten Dominik %!s(int64=16) %!d(string=hai) anos
pai
achega
c60cf93d15
Modificáronse 2 ficheiros con 9 adicións e 5 borrados
  1. 3 0
      lisp/ChangeLog
  2. 6 5
      lisp/org-remember.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2008-11-18  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-remember.el (org-remember-apply-template): No ido
+	completion for free prompts in remember templates.
+
 	* org-id.el (org-id-add-location): Avoid error when no file is
 	given.
 

+ 6 - 5
lisp/org-remember.el

@@ -530,11 +530,12 @@ to be run from that hook to function properly."
 				   (member char '("u" "U"))
 				   nil nil (list org-end-time-was-given)))
 	   (t
-	    (insert (org-completing-read
-		     (concat (if prompt prompt "Enter string")
-			     (if default (concat " [" default "]"))
-			     ": ")
-		     completions nil nil nil histvar default)))))
+	    (let (org-completion-use-ido)
+	      (insert (org-completing-read
+		       (concat (if prompt prompt "Enter string")
+			       (if default (concat " [" default "]"))
+			       ": ")
+		       completions nil nil nil histvar default))))))
 	(goto-char (point-min))
 	(if (re-search-forward "%\\?" nil t)
 	    (replace-match "")