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
fdcba502
Commit
fdcba502
authored
Jan 02, 1993
by
Richard M. Stallman
Browse files
(compilation-sentinel): Change buffer-read-only with let.
parent
76a66e5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
20 deletions
+19
-20
lisp/progmodes/compile.el
lisp/progmodes/compile.el
+19
-20
No files found.
lisp/progmodes/compile.el
View file @
fdcba502
...
...
@@ -367,26 +367,25 @@ Runs `compilation-mode-hook' with `run-hooks' (which see)."
;; Write something in the compilation buffer
;; and hack its mode line.
(
set-buffer
buffer
)
(
setq
buffer-read-only
nil
)
(
setq
omax
(
point-max
)
opoint
(
point
))
(
goto-char
omax
)
;; Record where we put the message, so we can ignore it
;; later on.
(
insert
?\n
mode-name
" "
msg
)
(
forward-char
-1
)
(
insert
" at "
(
substring
(
current-time-string
)
0
19
))
(
forward-char
1
)
(
setq
mode-line-process
(
concat
": "
(
symbol-name
(
process-status
proc
))))
;; Since the buffer and mode line will show that the
;; process is dead, we can delete it now. Otherwise it
;; will stay around until M-x list-processes.
(
delete-process
proc
)
;; Force mode line redisplay soon.
(
set-buffer-modified-p
(
buffer-modified-p
))
(
setq
buffer-read-only
t
)
;I think is this wrong --roland
(
let
((
buffer-read-only
nil
))
(
setq
omax
(
point-max
)
opoint
(
point
))
(
goto-char
omax
)
;; Record where we put the message, so we can ignore it
;; later on.
(
insert
?\n
mode-name
" "
msg
)
(
forward-char
-1
)
(
insert
" at "
(
substring
(
current-time-string
)
0
19
))
(
forward-char
1
)
(
setq
mode-line-process
(
concat
": "
(
symbol-name
(
process-status
proc
))))
;; Since the buffer and mode line will show that the
;; process is dead, we can delete it now. Otherwise it
;; will stay around until M-x list-processes.
(
delete-process
proc
)
;; Force mode line redisplay soon.
(
set-buffer-modified-p
(
buffer-modified-p
)))
(
if
(
and
opoint
(
<
opoint
omax
))
(
goto-char
opoint
))
(
if
compilation-finish-function
...
...
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