Skip to content

Commit

Permalink
git-blame.el: Add (require 'format-spec)
Browse files Browse the repository at this point in the history
c5022f5 (git-blame.el: Change how blame information is shown,
2009-09-29) taught the "M-x git-blame" mode to format its output
in a more interesting way, making use of the format-spec function.

format-spec is included in Emacs 23 and is a useful function.
Older emacsen can get it from Gnus.  In all emacsen, we need
to 'require it before use to avoid warnings:

 git-blame.el:483:1:Warning: the function `format-spec' is not known to be
     defined.

Reported-by: Sergei Organov <[email protected]>
Reported-by: Kevin Ryde <[email protected]>
Signed-off-by: Jonathan Nieder <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
dkagedal authored and gitster committed Nov 3, 2010
1 parent af77aee commit 0cb3f80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/emacs/git-blame.el
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
;;; Code:

(eval-when-compile (require 'cl)) ; to use `push', `pop'
(require 'format-spec)

(defface git-blame-prefix-face
'((((background dark)) (:foreground "gray"
Expand Down

0 comments on commit 0cb3f80

Please sign in to comment.