From d676fbb543c04a7f258f564214812a627e609000 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 29 Sep 2019 02:02:06 +0200 Subject: [PATCH] Disable not-modified command by default * lisp/files.el (not-modified): Disable command by default. (Bug#29550) --- lisp/files.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/files.el b/lisp/files.el index 09180fd555..f3bb23738d 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -5537,6 +5537,9 @@ clear-visited-file-modtime Next attempt to save will not complain of a discrepancy." (set-visited-file-modtime 0)) +;; This command could cause data loss for unsuspecting users. +(put 'not-modified 'disabled t) + (defun not-modified (&optional arg) "Mark current buffer as unmodified, not needing to be saved. With prefix ARG, mark buffer as modified, so \\[save-buffer] will save. -- 2.20.1