[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: find-file でファイル名補完できない。



白井です。

From: "wakaki" <wakaki@xxxxxxxxxxxxxxxxxxxxxxxxxx> さん曰く
Subject: find-file でファイル名補完できない。
Message-ID: <20060224015737.D7B877236A@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Feb 2006 10:57:08 +0900

> Meadow3 をNetinstall でインストールしたのですが、
> C-x C-f 後、スペースキーを押しても、ミニバッファに
> スペースが挿入されるのみで、ファイル名を補完してくれません。

Emacs 側の仕様変更です。News には以下のように書いてあります。

** 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".

タブを使えということでしょうが、スペースじゃないとだめという人は、

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

などで OK。(元ネタは山岡さんだったと思います)

-- 
白井秀行 (mailto:shirai@xxxxxxxxxxx)