mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
misc/emacs: do not use any free variables
R=adonovan CC=golang-dev https://golang.org/cl/12744046
This commit is contained in:
parent
5f199f2d5a
commit
c320cf85d9
1 changed files with 3 additions and 2 deletions
|
|
@ -129,6 +129,8 @@
|
||||||
|
|
||||||
(defvar go-dangling-cache)
|
(defvar go-dangling-cache)
|
||||||
(defvar go-godoc-history nil)
|
(defvar go-godoc-history nil)
|
||||||
|
(defvar go--coverage-origin-buffer)
|
||||||
|
(defvar go--coverage-current-file-name)
|
||||||
|
|
||||||
(defgroup go nil
|
(defgroup go nil
|
||||||
"Major mode for editing Go code"
|
"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.
|
DIVISOR scales the absolute cover count to values from 0 to 10.
|
||||||
For DIVISOR = 0 the count will always translate to 8."
|
For DIVISOR = 0 the count will always translate to 8."
|
||||||
(let* ((count (go--covered-count range))
|
(let* ((norm (cond
|
||||||
(norm (cond
|
|
||||||
((= count 0)
|
((= count 0)
|
||||||
-0.1) ;; Uncovered code, set to -0.1 so n becomes 0.
|
-0.1) ;; Uncovered code, set to -0.1 so n becomes 0.
|
||||||
((= divisor 0)
|
((= divisor 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue