From: Tino Calancha Date: Sun, 26 Jun 2016 01:54:29 +0000 (+0900) Subject: Do not prompt twice to save a buffer X-Git-Tag: emacs-26.0.90~1840^2~171 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c87c2cad94ab0570846015dcef91a38e84317be9;p=emacs.git Do not prompt twice to save a buffer * lisp/hilit-chg.el (highlight-markup-buffers): (Bug#23824). --- 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)