From 6f4b3ed83d4f1f454041c0365c41d5edc791e974 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 28 Aug 2002 22:23:36 +0000 Subject: [PATCH] (find-buffer-visiting): Compare file attributes using buffer-file-truename. --- lisp/ChangeLog | 10 ++++++++++ lisp/files.el | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 19ea7df3412..a20a02044bb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,13 @@ +2002-08-28 Luc Teirlinck + + * files.el (find-buffer-visiting): Compare file attributes + using buffer-file-truename. + +2002-08-28 Richard M. Stallman + + * files.el (make-auto-save-file-name, make-backup-file-name-1): + Don't use directory-sep-char. + 2002-08-28 Juanma Barranquero * replace.el (occur-hook): Renamed from `occur-mode-hook'. diff --git a/lisp/files.el b/lisp/files.el index 0cb3fddecea..0983762356c 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -1076,7 +1076,7 @@ If there is no such live buffer, return nil." ;; Verify this buffer's file number ;; still belongs to its file. (file-exists-p buffer-file-name) - (equal (file-attributes buffer-file-name) + (equal (file-attributes buffer-file-truename) attributes)) (setq found (car list)))) (setq list (cdr list)))) -- 2.39.5