[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange `file-name-sans-extension' behavior
From: |
Richard Stallman |
Subject: |
Re: Strange `file-name-sans-extension' behavior |
Date: |
Sat, 27 Jul 2002 12:53:41 -0600 (MDT) |
Does this fix it?
*** files.el.~1.598.~ Fri Jul 26 11:47:31 2002
--- files.el Sat Jul 27 14:16:42 2002
***************
*** 2468,2475 ****
(if (and (string-match "\\.[^.]*\\'" file)
(not (eq 0 (match-beginning 0))))
(if (setq directory (file-name-directory filename))
! (expand-file-name (substring file 0 (match-beginning 0))
! directory)
(substring file 0 (match-beginning 0)))
filename))))
--- 2468,2476 ----
(if (and (string-match "\\.[^.]*\\'" file)
(not (eq 0 (match-beginning 0))))
(if (setq directory (file-name-directory filename))
! ;; Don't use expand-file-name here; if DIRECTORY is relative,
! ;; we don't want to expand it.
! (concat directory (substring file 0 (match-beginning 0)))
(substring file 0 (match-beginning 0)))
filename))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Strange `file-name-sans-extension' behavior,
Richard Stallman <=