From c87c2cad94ab0570846015dcef91a38e84317be9 Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Sun, 26 Jun 2016 10:54:29 +0900 Subject: [PATCH] Do not prompt twice to save a buffer * lisp/hilit-chg.el (highlight-markup-buffers): (Bug#23824). --- lisp/hilit-chg.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/hilit-chg.el b/lisp/hilit-chg.el index 6420b8c68b3..1e4deb9353e 100644 --- a/lisp/hilit-chg.el +++ b/lisp/hilit-chg.el @@ -777,7 +777,7 @@ is non-nil." a-start a-end len-a b-start b-end len-b (bufa-modified (buffer-modified-p buf-a)) - (bufb-modified (buffer-modified-p buf-b)) + (bufb-modified (and (not (eq buf-a buf-b)) (buffer-modified-p buf-b))) (buf-a-read-only (with-current-buffer buf-a buffer-read-only)) (buf-b-read-only (with-current-buffer buf-b buffer-read-only)) temp-a temp-b) -- 2.39.2