Backport: Avoid buffer read-only error in ibuffer-diff-buffer-with-file-1
authorLeo Liu <sdl.web@gmail.com>
Sun, 24 Jun 2012 02:41:03 +0000 (10:41 +0800)
committerLeo Liu <sdl.web@gmail.com>
Sun, 24 Jun 2012 02:41:03 +0000 (10:41 +0800)
lisp/ChangeLog
lisp/ibuf-ext.el

index 3e75c2d..8196cae 100644 (file)
@@ -1,5 +1,8 @@
 2012-06-24  Leo Liu  <sdl.web@gmail.com>
 
+       * ibuf-ext.el (ibuffer-diff-buffer-with-file-1): Avoid buffer
+       read-only error.
+
        * net/rcirc.el (rcirc): Avoid error when process-contact returns t.
 
        * vc/diff-mode.el (diff-file-prev/next): Fix typo.
index 22ec2f5..4c9dfc2 100644 (file)
@@ -1345,8 +1345,8 @@ a prefix argument reverses the meaning of that variable."
                (diff-sentinel
                 (call-process shell-file-name nil
                               (current-buffer) nil
-                              shell-command-switch command)))
-             (insert "\n"))))
+                              shell-command-switch command))
+               (insert "\n")))))
       (sit-for 0)
       (when (file-exists-p tempfile)
        (delete-file tempfile)))))