Article View: gnu.emacs.bug
Article #894modifying the minibuffer-local-completion-map
From: Robert S. Maier
Date: Sat, 12 Dec 1992 18:18
Date: Sat, 12 Dec 1992 18:18
24 lines
1499 bytes
1499 bytes
In my .emacs file I've got the following useful line: (define-key minibuffer-local-completion-map "~" 'insert-home-directory) where `insert-home-directory' is a function which simply replaces the current line by "~". This is nice, because when I'm editing system files and suddenly do C-x C-f to load in a file from a subdirectory of my home directory, typing an initial ~ wipes out the current (system) directory from the minibuffer. The system directory may be rather long, so deleting it is esthetically pleasing. This trick works fine for find-file (i.e. C-x C-f) and friends. Unfortunately it doesn't work for insert-file (i.e. C-x C-i), or any function which calls read-file-name (which is coded in C). Can anyone tell me why not? -- Robert S. Maier | Internet: rsm@math.arizona.edu, rsm@cs.arizona.edu Dept. of Math. | UUCP: uunet!arizona!amethyst!rsm Univ. of Arizona | Bitnet: maier@arizvms Tucson, AZ 85721 | FAX: +1 602 621 8322 U.S.A. | Voice(POTS): +1 602 621 6893 / +1 602 621 2617
Technical Details
Message-ID:
<RSM.92Dec12111838@coral.math.arizona.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!math.arizona.edu!rsmShow Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!math.arizona.edu!rsm From: rsm@math.arizona.edu (Robert S. Maier) Subject: modifying the minibuffer-local-completion-map Message-ID: <RSM.92Dec12111838@coral.math.arizona.edu> Sender: gnulists@ai.mit.edu Organization: Mathematics Department, University of Arizona Distribution: gnu Date: Sat, 12 Dec 1992 18:18:38 GMT Approved: bug-gnu-emacs@prep.ai.mit.edu Lines: 25