aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorDmitry Antipov2012-08-13 07:39:07 +0400
committerDmitry Antipov2012-08-13 07:39:07 +0400
commit4c31be6153255dfe29a0231253263ea0d9011ac3 (patch)
treecfd30617b9270436aad8cdf810a97721aaa20747 /src/process.c
parent1439443be63a2b0d796df8ebca882cdaecb7269f (diff)
downloademacs-4c31be6153255dfe29a0231253263ea0d9011ac3.tar.gz
emacs-4c31be6153255dfe29a0231253263ea0d9011ac3.zip
Use BSET for write access to Lisp_Object members of struct buffer.
* buffer.h (BSET): New macro. * buffer.c, casetab.c, cmds.c, coding.c, data.c, editfns.c: * fileio.c, frame.c, indent.c, insdel.c, intervals.c, keymap.c: * minibuf.c, print.c, process.c, syntax.c, undo.c, w32fns.c: * window.c, xdisp.c, xfns.c: Adjust users.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/process.c b/src/process.c
index 0be624af0d2..a43655e4da8 100644
--- a/src/process.c
+++ b/src/process.c
@@ -5246,7 +5246,7 @@ read_process_output (Lisp_Object proc, register int channel)
5246 old_begv_byte = BEGV_BYTE; 5246 old_begv_byte = BEGV_BYTE;
5247 old_zv_byte = ZV_BYTE; 5247 old_zv_byte = ZV_BYTE;
5248 5248
5249 BVAR (current_buffer, read_only) = Qnil; 5249 BSET (current_buffer, read_only, Qnil);
5250 5250
5251 /* Insert new output into buffer 5251 /* Insert new output into buffer
5252 at the current end-of-output marker, 5252 at the current end-of-output marker,
@@ -5337,7 +5337,7 @@ read_process_output (Lisp_Object proc, register int channel)
5337 Fnarrow_to_region (make_number (old_begv), make_number (old_zv)); 5337 Fnarrow_to_region (make_number (old_begv), make_number (old_zv));
5338 5338
5339 5339
5340 BVAR (current_buffer, read_only) = old_read_only; 5340 BSET (current_buffer, read_only, old_read_only);
5341 SET_PT_BOTH (opoint, opoint_byte); 5341 SET_PT_BOTH (opoint, opoint_byte);
5342 } 5342 }
5343 /* Handling the process output should not deactivate the mark. */ 5343 /* Handling the process output should not deactivate the mark. */
@@ -6671,13 +6671,13 @@ status_notify (struct Lisp_Process *deleting_process)
6671 before_byte = PT_BYTE; 6671 before_byte = PT_BYTE;
6672 6672
6673 tem = BVAR (current_buffer, read_only); 6673 tem = BVAR (current_buffer, read_only);
6674 BVAR (current_buffer, read_only) = Qnil; 6674 BSET (current_buffer, read_only, Qnil);
6675 insert_string ("\nProcess "); 6675 insert_string ("\nProcess ");
6676 { /* FIXME: temporary kludge */ 6676 { /* FIXME: temporary kludge */
6677 Lisp_Object tem2 = p->name; Finsert (1, &tem2); } 6677 Lisp_Object tem2 = p->name; Finsert (1, &tem2); }
6678 insert_string (" "); 6678 insert_string (" ");
6679 Finsert (1, &msg); 6679 Finsert (1, &msg);
6680 BVAR (current_buffer, read_only) = tem; 6680 BSET (current_buffer, read_only, tem);
6681 set_marker_both (p->mark, p->buffer, PT, PT_BYTE); 6681 set_marker_both (p->mark, p->buffer, PT, PT_BYTE);
6682 6682
6683 if (opoint >= before) 6683 if (opoint >= before)