Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
ba2700db
Commit
ba2700db
authored
Aug 14, 1993
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(compilation-parse-errors): Don't add multiple errors for one source line.
parent
1d7158ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
lisp/progmodes/compile.el
lisp/progmodes/compile.el
+10
-6
No files found.
lisp/progmodes/compile.el
View file @
ba2700db
...
...
@@ -1077,12 +1077,16 @@ See variable `compilation-parse-errors-function' for the interface it uses."
;; location, and the file and line number of the error.
(
save-excursion
(
beginning-of-line
1
)
(
setq
compilation-error-list
(
cons
(
cons
(
point-marker
)
(
cons
filename
linenum
))
compilation-error-list
)))
(
setq
compilation-num-errors-found
(
1+
compilation-num-errors-found
))
(
let
((
this
(
cons
(
point-marker
)
(
cons
filename
linenum
))))
;; Don't add the same source line more than once.
(
if
(
equal
(
cdr
this
)
(
cdr
(
car
compilation-error-list
)))
nil
(
setq
compilation-error-list
(
cons
this
compilation-error-list
))
(
setq
compilation-num-errors-found
(
1+
compilation-num-errors-found
)))))
(
and
find-at-least
(
>=
compilation-num-errors-found
find-at-least
)
;; We have found as many new errors as the user wants.
...
...
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