0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 19:07:52 +00:00

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.
This commit is contained in:
Carsten Dominik 2008-11-18 09:48:34 +01:00
parent 9f1e6fa952
commit c60cf93d15
2 changed files with 9 additions and 5 deletions

View file

@ -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.

View file

@ -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 "")