From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: Re: Remember string prompt won't accept spaces %^{Prompt text} Date: Tue, 1 Jan 2008 15:33:24 +0000 Message-ID: <20080101153324.GB20287@atlantic.linksys.moosehall> References: <477A1106.4010407@optusnet.com.au> Reply-To: Adam Spiers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J9j7Q-00078z-Ih for emacs-orgmode@gnu.org; Tue, 01 Jan 2008 10:33:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J9j7P-00078n-15 for emacs-orgmode@gnu.org; Tue, 01 Jan 2008 10:33:27 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9j7O-00078k-R0 for emacs-orgmode@gnu.org; Tue, 01 Jan 2008 10:33:26 -0500 Received: from mail.beimborn.com ([70.84.38.100]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J9j7O-0006QH-Km for emacs-orgmode@gnu.org; Tue, 01 Jan 2008 10:33:26 -0500 Received: from mail.beimborn.com (localhost.localdomain [127.0.0.1]) by mail.beimborn.com (8.12.11.20060308/8.12.8) with ESMTP id m01FXPqd019797 for ; Tue, 1 Jan 2008 09:33:25 -0600 Received: from localhost (localhost [[UNIX: localhost]]) by mail.beimborn.com (8.12.11.20060308/8.12.11/Submit) id m01FXPMU019792 for emacs-orgmode@gnu.org; Tue, 1 Jan 2008 15:33:25 GMT Content-Disposition: inline In-Reply-To: <477A1106.4010407@optusnet.com.au> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 # 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 "]")) ": ")