home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / emacs / help / 4909 < prev    next >
Encoding:
Text File  |  1992-11-24  |  1.5 KB  |  35 lines

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