home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!caen!uwm.edu!psuvax1!liblit
- From: liblit@cs.psu.edu (Benjamin R. Liblit)
- Subject: gdb -vs- emacs tilde expansion
- Message-ID: <By6xFF.4u7@cs.psu.edu>
- Sender: news@cs.psu.edu (Usenet)
- Nntp-Posting-Host: waldo.cs.psu.edu
- Distribution: gnu
- Date: Mon, 23 Nov 1992 22:35:36 GMT
- Lines: 23
-
- On my home machine, "~/" expands to a pathname rooted at "/home".
- However, the "/home" directory is actually mounted from "/auto/home".
- When I run gdb inside Emacs, gdb (gdb-mode?) realizes this and sets
- its working directory to "/auto/home/...".
-
- The problem arises when gdb-mode needs to display some of my source
- code. Odds are good that the source code is already in some buffer,
- but that buffer's default directory starts with "/home/...". Gdb-mode
- wants to bring it in from "/auto/home/...", so it ends up creating a
- new buffer and loading in a second copy of my source.
-
- Pretty soon, I've got every source in my project loaded into two
- buffers: one rooted at "/home/..." and one at "/auto/home/...". If I
- edit one, the other gets uptight because it thinks it's been modified
- on disk. Or I may make changes in one, do something else, switch back
- to the modified buffer, and the changes seem to have disappeared
- because I changed "/home/..." and am now looking at "/auto/home/...".
-
- You get the picture. Most distressing. Anyone know of a solution?
-
- --
- Ben Liblit ----- "Fais que tes reves soient plus longs que la nuit."
- liblit@cs.psu.edu -- brl102@psuvm.psu.edu -- brl102@psuvm.bitnet
-