From c94e8214449a5e864f4780111501b9908112fb87 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 8 Mar 2012 21:51:52 +0900 Subject: [PATCH] fix git-command bug --- emacs.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs.el b/emacs.el index fb0cdd4..0df29c7 100644 --- a/emacs.el +++ b/emacs.el @@ -1621,8 +1621,9 @@ when SEC is nil, stop auto save if enabled." cmd) bf) (with-current-buffer bf - (ansi-color-apply-on-region (point-min) - (point-max))))) + (and (require 'ansi-color nil t) + (ansi-color-apply-on-region (point-min) + (point-max)))))) (define-key ctl-x-map "g" 'my-git-shell-command) (defun my-kill-buffers ()