all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to insert space in minibuffer while in completing-read ?
@ 2008-03-07 20:41 Brian Adkins
  2008-03-07 21:26 ` Pascal Bourguignon
  0 siblings, 1 reply; 7+ messages in thread
From: Brian Adkins @ 2008-03-07 20:41 UTC (permalink / raw)
  To: help-gnu-emacs

I've been using the Emacs timeclock to track my time on various
activities. When I invoke timeclock-in, I'm unable to enter a project
name containing embedded space characters (unless it's already in the
auto complete list by virtue of me manually editing the timelog file
beforehand).

I think I tracked the problem down to the completing-read function
that eventually gets invoked from timeclock-in. I put the following
snippet (from timeclock.el) in the *scratch* buffer and invoked it via
C-M-x

(completing-read "Enter string (default foo): " '("bar" "fuz") nil nil
nil nil "foo")

If I type b <space> the minibuffer will complete to bar, but I can't
then type a space. My temporary work around was to do the following:

(global-set-key (kbd "C-#") (lambda () (interactive) (insert-char ?\s
1)))

and then press C-# instead of <space> while in the minibuffer, and
that works fine :)

I suppose my question is how to unbind the <space> key from the
minibuffer-complete-word command when invoking the timeclock-in
command?


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-03-08 22:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-07 20:41 How to insert space in minibuffer while in completing-read ? Brian Adkins
2008-03-07 21:26 ` Pascal Bourguignon
2008-03-07 21:53   ` Brian Adkins
2008-03-07 22:09   ` Drew Adams
     [not found]   ` <mailman.8526.1204927839.18990.help-gnu-emacs@gnu.org>
2008-03-07 23:34     ` Brian Adkins
2008-03-08 21:24     ` Stefan Monnier
2008-03-08 22:06       ` Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.