all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Newer version filename completion requires only tab, not space or tab
@ 2008-09-15 22:24 Daina Pettit
  2008-09-16  5:26 ` David Hansen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Daina Pettit @ 2008-09-15 22:24 UTC (permalink / raw)
  To: help-gnu-emacs

I'm using GNU Emacs 22.1.1 (i486-pc-linux-gnu) of 2008-05-03 on terranova,
modified by Ubuntu and previous versions used to accept a space or tab for
filename completion, but now require a tab only.

How do I get back to the old behavior so I can use my spacebar again for
filename completion?  I'm sure there's some setting to tweak.

-- 
Daina Pettit=daina@xmission.com, voice: (801)277-6296, msg: (801)277-0888
UNIX Consulting       Salt Lake City, Utah       http://www.MrPinball.com
Mr. Pinball Classified--More Pinball Ads than ANYWHERE, and they're FREE!


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

* Re: Newer version filename completion requires only tab, not space or tab
  2008-09-15 22:24 Newer version filename completion requires only tab, not space or tab Daina Pettit
@ 2008-09-16  5:26 ` David Hansen
  2008-09-16  5:26 ` Drew Adams
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: David Hansen @ 2008-09-16  5:26 UTC (permalink / raw)
  To: help-gnu-emacs

On Mon, 15 Sep 2008 22:24:46 +0000 (UTC) Daina Pettit wrote:

> How do I get back to the old behavior so I can use my spacebar again for
> filename completion?  I'm sure there's some setting to tweak.

(define-key minibuffer-local-filename-completion-map
  (kbd "SPC") #'minibuffer-complete)

David





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

* RE: Newer version filename completion requires only tab, not space or tab
  2008-09-15 22:24 Newer version filename completion requires only tab, not space or tab Daina Pettit
  2008-09-16  5:26 ` David Hansen
@ 2008-09-16  5:26 ` Drew Adams
       [not found] ` <mailman.19332.1221543518.18990.help-gnu-emacs@gnu.org>
  2008-09-17  7:41 ` Kevin Rodgers
  3 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2008-09-16  5:26 UTC (permalink / raw)
  To: 'Daina Pettit', help-gnu-emacs

> How do I get back to the old behavior so I can use my 
> spacebar again for filename completion?

`C-h C-f' gives you the Emacs FAQ.

Then, `i SPC TAB' and choose `SPC file name completion'. You'll see this:

| 10.19 Why doesn't SPC complete file names anymore?
| ==================================================
|
| Starting with Emacs 22.1, `SPC' no longer completes file names in the
| minibuffer, so that file names with embedded spaces could be typed
| without the need to quote the spaces.
|
|    You can get the old behavior by binding `SPC' to
| `minibuffer-complete-word' in the minibuffer, as follows:
|
|      (define-key minibuffer-local-filename-completion-map (kbd "SPC")
|        'minibuffer-complete-word)
|
|      (define-key minibuffer-local-must-match-filename-map (kbd "SPC")
|        'minibuffer-complete-word)


Unfortunately, there is no index entry for this page that uses the word `space'
- you have to know about the key name `SPC'. 

If you use Icicles, however, you can match any parts of a completion (in this
case, an index entry). So you can find this page, for instance, by looking for
both `file' and `complet' (in either order): `i file S-SPC complet' completes
directly to the index entry `SPC file name completion'.





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

* Re: Newer version filename completion requires only tab, not space or tab
       [not found] ` <mailman.19332.1221543518.18990.help-gnu-emacs@gnu.org>
@ 2008-09-16 14:35   ` Daina Pettit
  0 siblings, 0 replies; 5+ messages in thread
From: Daina Pettit @ 2008-09-16 14:35 UTC (permalink / raw)
  To: help-gnu-emacs

In article <mailman.19332.1221543518.18990.help-gnu-emacs@gnu.org>,
David Hansen  <david.hansen@gmx.net> wrote:
>On Mon, 15 Sep 2008 22:24:46 +0000 (UTC) Daina Pettit wrote:
>
>> How do I get back to the old behavior so I can use my spacebar again for
>> filename completion?  I'm sure there's some setting to tweak.
>
>(define-key minibuffer-local-filename-completion-map
>  (kbd "SPC") #'minibuffer-complete)
>

That did the trick.  Thanks!

-- 
Daina Pettit=daina@xmission.com, voice: (801)277-6296, msg: (801)277-0888
UNIX Consulting       Salt Lake City, Utah       http://www.MrPinball.com
Mr. Pinball Classified--More Pinball Ads than ANYWHERE, and they're FREE!


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

* Re: Newer version filename completion requires only tab, not space or tab
  2008-09-15 22:24 Newer version filename completion requires only tab, not space or tab Daina Pettit
                   ` (2 preceding siblings ...)
       [not found] ` <mailman.19332.1221543518.18990.help-gnu-emacs@gnu.org>
@ 2008-09-17  7:41 ` Kevin Rodgers
  3 siblings, 0 replies; 5+ messages in thread
From: Kevin Rodgers @ 2008-09-17  7:41 UTC (permalink / raw)
  To: help-gnu-emacs

Daina Pettit wrote:
> I'm using GNU Emacs 22.1.1 (i486-pc-linux-gnu) of 2008-05-03 on terranova,
> modified by Ubuntu and previous versions used to accept a space or tab for
> filename completion, but now require a tab only.
> 
> How do I get back to the old behavior so I can use my spacebar again for
> filename completion?  I'm sure there's some setting to tweak.

`C-h C-n' aka `M-x view-emacs-news' reveals:

* Incompatible Editing Changes in Emacs 22.1
...
** When Emacs prompts for file names, SPC no longer completes the file name.
This is so filenames with embedded spaces could be input without the
need to quote the space with a C-q.  The underlying changes in the
keymaps that are active in the minibuffer are described below under
"New keymaps for typing file names".

If you want the old behavior back, add these two key bindings to your
~/.emacs init file:

   (define-key minibuffer-local-filename-completion-map
   	      " " 'minibuffer-complete-word)
   (define-key minibuffer-local-must-match-filename-map
   	      " " 'minibuffer-complete-word)

-- 
Kevin Rodgers
Denver, Colorado, USA





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

end of thread, other threads:[~2008-09-17  7:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-15 22:24 Newer version filename completion requires only tab, not space or tab Daina Pettit
2008-09-16  5:26 ` David Hansen
2008-09-16  5:26 ` Drew Adams
     [not found] ` <mailman.19332.1221543518.18990.help-gnu-emacs@gnu.org>
2008-09-16 14:35   ` Daina Pettit
2008-09-17  7:41 ` Kevin Rodgers

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.