aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorDmitry Antipov2013-08-29 20:36:54 +0400
committerDmitry Antipov2013-08-29 20:36:54 +0400
commit032f74518a71a7fe0afd2e7d0eee11bfb7ae90d9 (patch)
treecec342cb647d9242855b8f0d4b5a9783d8851176 /src/process.c
parent3f940c5aa6fc1d03e6658cda5c440fb6bd75e4c5 (diff)
downloademacs-032f74518a71a7fe0afd2e7d0eee11bfb7ae90d9.tar.gz
emacs-032f74518a71a7fe0afd2e7d0eee11bfb7ae90d9.zip
* intervals.c (set_point_from_marker): New function.
* editfns.c (Fgoto_char): * process.c (Finternal_default_process_filter): * window.c (select_window_1): Use it. * buffer.h (set_point_from_marker): Add prototype.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/process.c b/src/process.c
index b52622ec1b6..20f84990d6f 100644
--- a/src/process.c
+++ b/src/process.c
@@ -5178,15 +5178,10 @@ DEFUN ("internal-default-process-filter", Finternal_default_process_filter,
5178 5178
5179 bset_read_only (current_buffer, Qnil); 5179 bset_read_only (current_buffer, Qnil);
5180 5180
5181 /* Insert new output into buffer 5181 /* Insert new output into buffer at the current end-of-output
5182 at the current end-of-output marker, 5182 marker, thus preserving logical ordering of input and output. */
5183 thus preserving logical ordering of input and output. */
5184 if (XMARKER (p->mark)->buffer) 5183 if (XMARKER (p->mark)->buffer)
5185 SET_PT_BOTH (clip_to_bounds (BEGV, 5184 set_point_from_marker (p->mark);
5186 marker_position (p->mark), ZV),
5187 clip_to_bounds (BEGV_BYTE,
5188 marker_byte_position (p->mark),
5189 ZV_BYTE));
5190 else 5185 else
5191 SET_PT_BOTH (ZV, ZV_BYTE); 5186 SET_PT_BOTH (ZV, ZV_BYTE);
5192 before = PT; 5187 before = PT;