Luc Teirlinck <[EMAIL PROTECTED]> writes: > Richard Stallman wrote: > > [I think it's probably possible to fix this -- e.g., by generating a > regexp of all non-absolute environment variables and glomming it onto > the rexexp used for filenames. But my basic point is that it scarcely > matters.] > > Could you try fixing it that way? > > It would probably be a lot better to do the complement: look for all > environment variables whose value starts with / or ~. Emacs > supports file names that start with $ if the $ is not followed by an > environment variable, or if the $ is doubled up. I may be > overlooking something obvious, but is therE a reason not to use > `getenv'?
The more robust solution would probably be to see what happens when using substitute-in-file-name on the substring starting with $, and see whether the result is an absolute file name. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel