* Remember string prompt won't accept spaces %^{Prompt text}
@ 2008-01-01 10:08 Charles Cave
2008-01-01 15:33 ` Adam Spiers
0 siblings, 1 reply; 3+ messages in thread
From: Charles Cave @ 2008-01-01 10:08 UTC (permalink / raw)
To: emacs-orgmode
I have set up Remember with org-mode and found that the prompt
directive doesn't allow spaces in the input.
This is the directive (to capture Internet banking
receipts) .....
'(("Receipt" ?r "** %^{BriefDesc} %U %^g\n%?" "~/GTD/GTD/finances.org")
After I issue the command C-c r and choose r (for Receipt)
I see the new window for Remember filled in like this:
** [2008-01-01 Tue 21:02] %^g
%?
And in the minibuffer, a prompt:
BriefDesc:
As soon as I type a space I get a message [No Match].
Why can't I enter a space? I am running org-mode 5.17a
on GNU Emacs 22.1.1 on Windows XP.
Thanks
Charles
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Remember string prompt won't accept spaces %^{Prompt text}
2008-01-01 10:08 Remember string prompt won't accept spaces %^{Prompt text} Charles Cave
@ 2008-01-01 15:33 ` Adam Spiers
2008-01-02 22:44 ` Carsten Dominik
0 siblings, 1 reply; 3+ messages in thread
From: Adam Spiers @ 2008-01-01 15:33 UTC (permalink / raw)
To: emacs-orgmode
On Tue, Jan 01, 2008 at 09:08:06PM +1100, Charles Cave wrote:
> I have set up Remember with org-mode and found that the prompt
> directive doesn't allow spaces in the input.
[snipped]
> Why can't I enter a space? I am running org-mode 5.17a
> on GNU Emacs 22.1.1 on Windows XP.
It's a bug. I mentioned it on Sunday but buried it in a hard-to-spot
place at the bottom of an old thread ;-)
http://thread.gmane.org/gmane.emacs.orgmode/4804/focus=4805
I think this is the correct fix:
http://www.adamspiers.org/cgi-bin/hg.cgi/org-atlantic/rev/99efde5d3130
# HG changeset patch
# User Adam Spiers <orgmode@adamspiers.org>
# Date 1199201427 0
# Node ID 99efde5d31300b5e21ef901af84d6b9441b3c3ff
# Parent eeeab6022608fcb4348ddadcd595b20b3a524ecc
SPC should self-insert in remember template prompts
diff -r eeeab6022608 -r 99efde5d3130 org.el
--- a/org.el Mon Dec 31 13:51:24 2007 +0000
+++ b/org.el Tue Jan 01 15:30:27 2008 +0000
@@ -13385,7 +13385,7 @@ to be run from that hook to function pro
(member char '("u" "U"))
nil nil (list org-end-time-was-given)))
(t
- (insert (completing-read
+ (insert (org-completing-read
(concat (if prompt prompt "Enter string")
(if default (concat " [" default "]"))
": ")
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Remember string prompt won't accept spaces %^{Prompt text}
2008-01-01 15:33 ` Adam Spiers
@ 2008-01-02 22:44 ` Carsten Dominik
0 siblings, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2008-01-02 22:44 UTC (permalink / raw)
To: Adam Spiers; +Cc: emacs-orgmode
I have applied this patch, thanks.
- Carsten
On Jan 1, 2008, at 4:33 PM, Adam Spiers wrote:
> On Tue, Jan 01, 2008 at 09:08:06PM +1100, Charles Cave wrote:
>> I have set up Remember with org-mode and found that the prompt
>> directive doesn't allow spaces in the input.
>
> [snipped]
>
>> Why can't I enter a space? I am running org-mode 5.17a
>> on GNU Emacs 22.1.1 on Windows XP.
>
> It's a bug. I mentioned it on Sunday but buried it in a hard-to-spot
> place at the bottom of an old thread ;-)
>
> http://thread.gmane.org/gmane.emacs.orgmode/4804/focus=4805
>
> I think this is the correct fix:
>
> http://www.adamspiers.org/cgi-bin/hg.cgi/org-atlantic/rev/99efde5d3130
>
> # HG changeset patch
> # User Adam Spiers <orgmode@adamspiers.org>
> # Date 1199201427 0
> # Node ID 99efde5d31300b5e21ef901af84d6b9441b3c3ff
> # Parent eeeab6022608fcb4348ddadcd595b20b3a524ecc
> SPC should self-insert in remember template prompts
>
> diff -r eeeab6022608 -r 99efde5d3130 org.el
> --- a/org.el Mon Dec 31 13:51:24 2007 +0000
> +++ b/org.el Tue Jan 01 15:30:27 2008 +0000
> @@ -13385,7 +13385,7 @@ to be run from that hook to function pro
> (member char '("u" "U"))
> nil nil (list org-end-time-was-given)))
> (t
> - (insert (completing-read
> + (insert (org-completing-read
> (concat (if prompt prompt "Enter string")
> (if default (concat " [" default "]"))
> ": ")
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-02 22:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-01 10:08 Remember string prompt won't accept spaces %^{Prompt text} Charles Cave
2008-01-01 15:33 ` Adam Spiers
2008-01-02 22:44 ` Carsten Dominik
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).