]> git.eshelyaron.com Git - emacs.git/commitdiff
Do not prompt twice to save a buffer
authorTino Calancha <tino.calancha@gmail.com>
Sun, 26 Jun 2016 01:54:29 +0000 (10:54 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Sun, 26 Jun 2016 01:54:29 +0000 (10:54 +0900)
* lisp/hilit-chg.el (highlight-markup-buffers): (Bug#23824).

lisp/hilit-chg.el

index 6420b8c68b3bd6c3aaa291ed5161c247e5f4dfd2..1e4deb9353e972ee80eab693a96d72d252caf4d1 100644 (file)
@@ -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)