emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep cannot find relative file names after save and re-open


From: Dan Nicolaescu
Subject: Re: grep cannot find relative file names after save and re-open
Date: Tue, 16 Aug 2005 13:24:28 -0700

"Richard M. Stallman" <address@hidden> writes:

  >     C-x C-f /tmp/TEST RET
  >     now move the cursor to one of the "calendar/calendar.el" lines and
  >     press RET
  > 
  >     at that point you are prompted to enter the file name where the file
  >     "calendar.el" is found.
  > 
  > That is no bug.  Emacs can't find the files unless you tell it
  > where to look.

See also Juri's answer, Emacs has the directory information:

-*- mode: grep; default-directory: "~/src/emacs/lisp/" -*-

it seems that it's just not used in the right order. When `grep-mode' is
turned on `default-directory' is not bound, so it does not parse the
buffer correctly. For some reason all the directory information is
stripped when parsing. Everything works just fine for grep results
that are of the form:
FILENAME:LINENUMBER: etc etc

the problem occurs only when the results are of the form:
DIRNAME/FILENAME:LINENUMBER... etc etc

  > If you use M-x cd to specify the proper default dir, does
  > that make it work?

No, it does not.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]