Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-blame.el: Doc fixes and cleanup
author
David Kågedal
<davidk@lysator.liu.se>
Fri, 9 Feb 2007 08:21:51 +0000
(09:21 +0100)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 9 Feb 2007 08:52:53 +0000
(
00:52
-0800)
Signed-off-by: David Kågedal <davidk@lysator.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/emacs/git-blame.el
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
f0f39bb
)
diff --git
a/contrib/emacs/git-blame.el
b/contrib/emacs/git-blame.el
index f1839647bcc07679a63bcc8092241dd01647b70b..7daa4e69931d400b25f65d4b725c1363085b6339 100644
(file)
--- a/
contrib/emacs/git-blame.el
+++ b/
contrib/emacs/git-blame.el
@@
-123,6
+123,7
@@
;;;###autoload
(defun git-blame-mode (&optional arg)
;;;###autoload
(defun git-blame-mode (&optional arg)
+ "Minor mode for displaying Git blame"
(interactive "P")
(if arg
(setq git-blame-mode (eq arg 1))
(interactive "P")
(if arg
(setq git-blame-mode (eq arg 1))
@@
-170,20
+171,25
@@
(process-send-region git-blame-proc (point-min) (point-max))
(process-send-eof git-blame-proc))))
(process-send-region git-blame-proc (point-min) (point-max))
(process-send-eof git-blame-proc))))
+(defun remove-git-blame-text-properties (start end)
+ (let ((modified (buffer-modified-p))
+ (inhibit-read-only t))
+ (remove-text-properties start end '(point-entered nil))
+ (set-buffer-modified-p modified)))
+
(defun git-blame-cleanup ()
"Remove all blame properties"
(mapcar 'delete-overlay git-blame-overlays)
(setq git-blame-overlays nil)
(defun git-blame-cleanup ()
"Remove all blame properties"
(mapcar 'delete-overlay git-blame-overlays)
(setq git-blame-overlays nil)
- (let ((modified (buffer-modified-p)))
- (remove-text-properties (point-min) (point-max) '(point-entered nil))
- (set-buffer-modified-p modified)))
+ (remove-git-blame-text-properties (point-min) (point-max)))
(defun git-blame-sentinel (proc status)
(with-current-buffer (process-buffer proc)
(with-current-buffer git-blame-file
(setq git-blame-proc nil)))
;;(kill-buffer (process-buffer proc))
(defun git-blame-sentinel (proc status)
(with-current-buffer (process-buffer proc)
(with-current-buffer git-blame-file
(setq git-blame-proc nil)))
;;(kill-buffer (process-buffer proc))
- (message "git blame finished"))
+ ;;(message "git blame finished")
+ )
(defvar in-blame-filter nil)
(defvar in-blame-filter nil)