From: Dominik Honnef Date: Fri, 16 Aug 2013 04:06:19 +0000 (-0400) Subject: misc/emacs: do not use any free variables X-Git-Tag: go1.2rc2~529 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c320cf85d97b3c5a57c120bd7d75a4259c7e24eb;p=gostls13.git misc/emacs: do not use any free variables R=adonovan CC=golang-dev https://golang.org/cl/12744046 --- diff --git a/misc/emacs/go-mode.el b/misc/emacs/go-mode.el index a896b143d8..341c03614e 100644 --- a/misc/emacs/go-mode.el +++ b/misc/emacs/go-mode.el @@ -129,6 +129,8 @@ (defvar go-dangling-cache) (defvar go-godoc-history nil) +(defvar go--coverage-origin-buffer) +(defvar go--coverage-current-file-name) (defgroup go nil "Major mode for editing Go code" @@ -1020,8 +1022,7 @@ to scale it to a range [0,10]. DIVISOR scales the absolute cover count to values from 0 to 10. For DIVISOR = 0 the count will always translate to 8." - (let* ((count (go--covered-count range)) - (norm (cond + (let* ((norm (cond ((= count 0) -0.1) ;; Uncovered code, set to -0.1 so n becomes 0. ((= divisor 0)