Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
c320cf85
Commit
c320cf85
authored
Aug 16, 2013
by
Dominik Honnef
Committed by
Alan Donovan
Aug 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/emacs: do not use any free variables
R=adonovan CC=golang-dev
https://golang.org/cl/12744046
parent
5f199f2d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
misc/emacs/go-mode.el
misc/emacs/go-mode.el
+3
-2
No files found.
misc/emacs/go-mode.el
View file @
c320cf85
...
@@ -129,6 +129,8 @@
...
@@ -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].
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment