diff options
| author | Richard M. Stallman | 2002-07-27 19:09:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-07-27 19:09:54 +0000 |
| commit | 6ee24f1e72319fb7d70e4cd5f8c15e9e955329a0 (patch) | |
| tree | 9663d6acea37c47d85d5f1fba50ad0811d742fc6 | |
| parent | 01af8a38f43cc3292c0e94710ce5cff8387e4ed2 (diff) | |
| download | emacs-6ee24f1e72319fb7d70e4cd5f8c15e9e955329a0.tar.gz emacs-6ee24f1e72319fb7d70e4cd5f8c15e9e955329a0.zip | |
(file-name-sans-extension): Avoid expanding DIRECTORY.
| -rw-r--r-- | lisp/files.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el index ac1712229fd..3fe0fa479ee 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2468,8 +2468,9 @@ except that a leading `.', if any, doesn't count." | |||
| 2468 | (if (and (string-match "\\.[^.]*\\'" file) | 2468 | (if (and (string-match "\\.[^.]*\\'" file) |
| 2469 | (not (eq 0 (match-beginning 0)))) | 2469 | (not (eq 0 (match-beginning 0)))) |
| 2470 | (if (setq directory (file-name-directory filename)) | 2470 | (if (setq directory (file-name-directory filename)) |
| 2471 | (expand-file-name (substring file 0 (match-beginning 0)) | 2471 | ;; Don't use expand-file-name here; if DIRECTORY is relative, |
| 2472 | directory) | 2472 | ;; we don't want to expand it. |
| 2473 | (concat directory (substring file 0 (match-beginning 0))) | ||
| 2473 | (substring file 0 (match-beginning 0))) | 2474 | (substring file 0 (match-beginning 0))) |
| 2474 | filename)))) | 2475 | filename)))) |
| 2475 | 2476 | ||