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
d09b1c02
Commit
d09b1c02
authored
May 29, 2002
by
Richard M. Stallman
Browse files
(batch-byte-compile-file): Delete the output file if we get a file-error.
parent
ba81b532
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/bytecomp.el
+12
-1
No files found.
lisp/emacs-lisp/bytecomp.el
View file @
d09b1c02
...
...
@@ -10,7 +10,7 @@
;;; This version incorporates changes up to version 2.10 of the
;;; Zawinski-Furuseth compiler.
(
defconst
byte-compile-version
"$Revision: 2.9
6
$"
)
(
defconst
byte-compile-version
"$Revision: 2.9
7
$"
)
;; This file is part of GNU Emacs.
...
...
@@ -3716,6 +3716,17 @@ already up-to-date."
(
defun
batch-byte-compile-file
(
file
)
(
condition-case
err
(
byte-compile-file
file
)
(
file-error
(
message
(
if
(
cdr
err
)
">>Error occurred processing %s: %s (%s)"
">>Error occurred processing %s: %s"
)
file
(
get
(
car
err
)
'error-message
)
(
prin1-to-string
(
cdr
err
)))
(
let
((
destfile
(
byte-compile-dest-file
file
)))
(
if
(
file-exists-p
destfile
)
(
delete-file
destfile
)))
nil
)
(
error
(
message
(
if
(
cdr
err
)
">>Error occurred processing %s: %s (%s)"
...
...
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