From 6a47089094387178685444218a4ad55874dd323d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 3 Aug 2020 02:04:03 +0530 Subject: Include file name in hash computation. Prior to this, files of different name but same content would be indistinguishable and cause trouble. * ennum.el (ennum--file-hash): Include file name in hash computation. --- ennum.el | 1 + 1 file changed, 1 insertion(+) diff --git a/ennum.el b/ennum.el index f4e5533..d8a54fb 100644 --- a/ennum.el +++ b/ennum.el @@ -54,6 +54,7 @@ respectively by - and _, and the pad character = is optional." ;; TODO: Use ennum-with-file-contents (set-buffer-multibyte nil) (insert-file-contents-literally file) + (insert file) (ennum--hash))) (defun ennum--set-file-modes-recursively (directory directory-mode file-mode executable-file-mode) -- cgit v1.2.3