Article View: gnu.emacs.help
Article #189749Re: removing /tmp_mnt from pathname prompt
From: Jamie Zawinski
Date: Fri, 30 Nov 1990 02:18
Date: Fri, 30 Nov 1990 02:18
16 lines
1409 bytes
1409 bytes
In article <12097@life.ai.mit.edu> dms@ai.mit.edu (David M. Siegel) wrote:
>
> Has anyone come up with a way to remove the /tmp_mnt from all
> interactive pathname prompts?
I have found this to be all that is necessary. Add to ~/.emacs.
(if (string-match "^\\(/tmp_mnt/net\\)/" default-directory)
(setq default-directory (substring default-directory (match-end 1))))
I have never seen emacs present me with a pathname that contained /tmp_mnt
that was not a result of the fact that /tmp_mnt was a component of the
pathname of the directory which was current when emacs was launched. This
might not be the case if you have link-chasing on, though.
-- Jamie
Technical Details
Message-ID:
<JWZ.90Nov29181803@kolyma.lucid.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!isaak!escher!nadia!smurf!ira.uka.de!sol.ctr.columbia.edu!samsung!cs.utexas.edu!uwm.edu!rpi!bu.edu!shelby!neon!lucid.com!jwzReferences:
<12097@life.ai.mit.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,aac5b61a74ff74a5 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1990-11-29 18:18:03 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!isaak!escher!nadia!smurf!ira.uka.de!sol.ctr.columbia.edu!samsung!cs.utexas.edu!uwm.edu!rpi!bu.edu!shelby!neon!lucid.com!jwz From: jwz@lucid.com (Jamie Zawinski) Newsgroups: gnu.emacs.help Subject: Re: removing /tmp_mnt from pathname prompt Message-ID: <JWZ.90Nov29181803@kolyma.lucid.com> Date: 30 Nov 90 02:18:03 GMT References: <12097@life.ai.mit.edu> Sender: jwz@lucid.com Organization: Lucid, Inc., Menlo Park, CA Lines: 16 Posted: Fri Nov 30 03:18:03 1990 In-reply-to: dms@ai.mit.edu's message of 29 Nov 90 21:48:33 GMT