Newer version filename completion requires only tab, not space or tab
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Newer version filename completion requires only tab, not space or tab         


Author: Daina Pettit
Date: Sep 15, 2008 15:24

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!
4 Comments
RE: Newer version filename completion requires only tab, not space or tab         


Author: Drew Adams
Date: Sep 15, 2008 22:26

> 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)
Show full article (1.26Kb)
no comments
Re: Newer version filename completion requires only tab, not space or tab         


Author: David Hansen
Date: Sep 15, 2008 22:26

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
no comments
Re: Newer version filename completion requires only tab, not space or tab         


Author: Daina Pettit
Date: Sep 16, 2008 07:35

In article gnu.org>,
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!
no comments
Re: Newer version filename completion requires only tab, not space or tab         


Author: Kevin Rodgers
Date: Sep 17, 2008 00:41

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:
Show full article (1.11Kb)
no comments