Merge commit 'refs/merge-requests/14' of git://gitorious.org/magit/mainline

This commit is contained in:
Phil Jackson 2010-03-20 16:22:37 +00:00
commit 5dc924748a

View file

@ -1069,6 +1069,12 @@ Many Magit faces inherit from this one by default."
(setq magit-process-client-buffer (current-buffer))
(save-excursion
(set-buffer buf)
(view-mode 1)
(set (make-local-variable 'view-no-disable-on-exit) t)
(setq view-exit-action
(lambda (buffer)
(with-current-buffer buffer
(bury-buffer))))
(setq buffer-read-only t)
(let ((inhibit-read-only t))
(setq default-directory dir)