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
Open sidebar
emacs
emacs
Commits
2f29e0c6
Commit
2f29e0c6
authored
Jan 09, 1996
by
Karl Heuer
Browse files
(diff): Set compilation-exit-message-function.
parent
f750c360
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
lisp/diff.el
lisp/diff.el
+13
-0
No files found.
lisp/diff.el
View file @
2f29e0c6
...
...
@@ -220,6 +220,19 @@ With prefix arg, prompt for diff switches."
"No more differences"
"Diff"
'diff-parse-differences
))
(
pop-to-buffer
buf
)
;; Avoid frightening people with "abnormally terminated"
;; if diff finds differences.
(
set
(
make-local-variable
'compilation-exit-message-function
)
(
lambda
(
proc
msg
)
(
let
((
code
(
process-exit-status
proc
)))
(
if
(
eq
(
process-status
proc
)
'exit
)
(
cond
((
zerop
code
)
'
(
"finished (no differences)\n"
.
"finished"
))
((
=
code
1
)
'
(
"finished\n"
.
"finished"
))
(
t
(
cons
msg
code
)))
(
cons
msg
code
)))))
(
set
(
make-local-variable
'diff-old-file
)
old
)
(
set
(
make-local-variable
'diff-new-file
)
new
)
(
set
(
make-local-variable
'diff-old-temp-file
)
old-alt
)
...
...
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