From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Brian Adkins Newsgroups: gmane.emacs.help Subject: Re: How to insert space in minibuffer while in completing-read ? Date: Fri, 7 Mar 2008 15:34:24 -0800 (PST) Organization: http://groups.google.com Message-ID: <13864542-8839-4d26-8749-1cc5a20ca7fc@q78g2000hsh.googlegroups.com> References: <67b5f4c4-8d2f-4f44-9cc7-48453c3ddb63@d62g2000hsf.googlegroups.com> <871w6m1b0b.fsf@thalassa.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204933253 20045 80.91.229.12 (7 Mar 2008 23:40:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2008 23:40:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 08 00:41:18 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JXmBY-00048q-AC for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Mar 2008 00:41:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXmB0-0007Pr-I4 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2008 18:40:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!q78g2000hsh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-NNTP-Posting-Host: 68.209.204.112 Original-X-Trace: posting.google.com 1204932865 5423 127.0.0.1 (7 Mar 2008 23:34:25 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 7 Mar 2008 23:34:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q78g2000hsh.googlegroups.com; posting-host=68.209.204.112; posting-account=Uust-woAAAAfaTc8iUxK0_NIe578kqTZ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080207 Ubuntu/7.10 (gutsy) Firefox/2.0.0.12, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:156779 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52151 Archived-At: On Mar 7, 5:09 pm, "Drew Adams" wrote: > > > I suppose my question is how to unbind the key from the > > > minibuffer-complete-word command when invoking the timeclock-in > > > command? > > > C-q SPC > > Sure, you can quote each space character with `C-q'. Or you can fix Emacs to > do what you want all the time. > > Emacs users should be able to type space chars in minibuffer input. Period. > Emacs 22 finally allows that for file-name input, but it should be available > for all minibuffer input. Input completion is not limited to command names. > > Solutions: > > 1. Use Icicles:http://www.emacswiki.org/cgi-bin/wiki/Icicles. > > 2. If you don't want to use Icicles, but you do want to allow space chars in > minibuffer input, do this: > > (define-key minibuffer-local-completion-map > " " 'self-insert-command)) > (define-key minibuffer-local-must-match-map > " " 'self-insert-command)) > > Emacs 22 adds the keymaps `minibuffer-local-filename-completion-map' and > `minibuffer-local-must-match-filename-map', but space should already DTRT > there. > > You might also want to do the same thing for the `?' character, in the same > maps: (define-key MAP "?" 'self-insert-command), where MAP is as above (plus > the two filename completion maps if you use Emacs 22 or later). > > In Icicles, BTW, it is `C-?', not `?', that displays help. Printable > characters like `?' should not need to be quoted to input them. > > You might also want to do the same thing for "\n", the newline character. > Icicles does that so you can have multi-line input without resorting to `C-q > C-j' for each newline char. > > HTH. Definitely helps - exactly what I was looking for. Thx.