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
20179516
Commit
20179516
authored
Feb 17, 2009
by
Sam Steingold
Browse files
(compilation-filter): Call `comint-carriage-motion', just like `comint-output-filter'.
parent
12272241
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/compile.el
lisp/progmodes/compile.el
+5
-1
No files found.
lisp/ChangeLog
View file @
20179516
2009-02-17 Sam Steingold <sds@gnu.org>
* progmodes/compile.el (compilation-filter): Call
`comint-carriage-motion', just like `comint-output-filter'.
2009-02-17 Juanma Barranquero <lekktu@gmail.com>
* net/newst-treeview.el (newsticker--treeview-load): Remove bogus `if'.
...
...
lisp/progmodes/compile.el
View file @
20179516
...
...
@@ -1726,7 +1726,9 @@ Turning the mode on runs the normal hook `compilation-minor-mode-hook'."
(
defun
compilation-filter
(
proc
string
)
"Process filter for compilation buffers.
Just inserts the text, and runs `compilation-filter-hook'."
Just inserts the text,
handles carriage motion (see `comint-inhibit-carriage-motion'),
and runs `compilation-filter-hook'."
(
when
(
buffer-live-p
(
process-buffer
proc
))
(
with-current-buffer
(
process-buffer
proc
)
(
let
((
inhibit-read-only
t
)
...
...
@@ -1739,6 +1741,8 @@ Just inserts the text, and runs `compilation-filter-hook'."
;; point at `process-mark' scroll along with the output, but we
;; now use window-point-insertion-type instead.
(
insert
string
)
(
unless
comint-inhibit-carriage-motion
(
comint-carriage-motion
(
process-mark
proc
)
(
point
)))
(
set-marker
(
process-mark
proc
)
(
point
))
(
run-hooks
'compilation-filter-hook
))
(
goto-char
pos
))))))
...
...
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