Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!mit-eddie!prange From: prange@mit-eddie.UUCP Newsgroups: comp.emacs Subject: file completion in the shell buffer Message-ID: <8703201847.AA23854@EDDIE.MIT.EDU> Date: Fri, 20-Mar-87 13:43:23 EST Article-I.D.: EDDIE.8703201847.AA23854 Posted: Fri Mar 20 13:43:23 1987 Date-Received: Sun, 22-Mar-87 19:41:52 EST Sender: aryeh@mit-eddie.MIT.EDU Lines: 23 I'm a big user of the emacs shell and found that file name completion was a bear. My solution was to write the following function. (defun insert-file-name-with-completion (name) "Prompts for a file or directory name and inserts that name after point. The name may be non-existent. Useful in Shell mode." (interactive "FInsert file name: ") (insert name)) I bound it to C-c C-f, and use it whenever a long path name is required. ========== Michael Prange UUCP: mit-erl!prange US Mail: MIT Earth Resources Laboratory E34-550 42 Carleton Street Cambridge, MA 02142 Phone: +1 617 253 7866 ==========