aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2020-08-03 02:04:03 +0530
committerArun Isaac2020-08-03 02:07:16 +0530
commit6a47089094387178685444218a4ad55874dd323d (patch)
treee837be641a9c1d84e5d5403570f7eae2029c63de
parentad903fd96c582388a2cd6212c78c5c1a84fe0055 (diff)
downloadennum-6a47089094387178685444218a4ad55874dd323d.tar.gz
ennum-6a47089094387178685444218a4ad55874dd323d.tar.lz
ennum-6a47089094387178685444218a4ad55874dd323d.zip
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.
-rw-r--r--ennum.el1
1 files changed, 1 insertions, 0 deletions
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)