From 9cc7819c6145afaa2c50c08c3073c28000fcafe3 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Mon, 30 Apr 2012 19:57:47 +0800 Subject: [PATCH] * lisp/ibuf-ext.el (ibuffer-diff-buffer-with-file-1): Avoid buffer read-only error. --- lisp/ChangeLog | 5 +++++ lisp/ibuf-ext.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3f656ab999a..8e826aa69fa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-04-30 Leo Liu + + * ibuf-ext.el (ibuffer-diff-buffer-with-file-1): Avoid buffer + read-only error. + 2012-04-29 Chong Yidong * follow.el (follow-calc-win-end): Rewrite to handle partial diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el index f943bd2fe58..58d38f77b66 100644 --- a/lisp/ibuf-ext.el +++ b/lisp/ibuf-ext.el @@ -1356,8 +1356,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))))) -- 2.39.2