diff options
| author | Dmitry Antipov | 2012-08-13 07:39:07 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-13 07:39:07 +0400 |
| commit | 4c31be6153255dfe29a0231253263ea0d9011ac3 (patch) | |
| tree | cfd30617b9270436aad8cdf810a97721aaa20747 /src/coding.c | |
| parent | 1439443be63a2b0d796df8ebca882cdaecb7269f (diff) | |
| download | emacs-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/coding.c')
| -rw-r--r-- | src/coding.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/coding.c b/src/coding.c index 5bed11b8241..08633d8bcff 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -7103,7 +7103,7 @@ decode_coding (struct coding_system *coding) | |||
| 7103 | if (GPT != PT) | 7103 | if (GPT != PT) |
| 7104 | move_gap_both (PT, PT_BYTE); | 7104 | move_gap_both (PT, PT_BYTE); |
| 7105 | undo_list = BVAR (current_buffer, undo_list); | 7105 | undo_list = BVAR (current_buffer, undo_list); |
| 7106 | BVAR (current_buffer, undo_list) = Qt; | 7106 | BSET (current_buffer, undo_list, Qt); |
| 7107 | } | 7107 | } |
| 7108 | 7108 | ||
| 7109 | coding->consumed = coding->consumed_char = 0; | 7109 | coding->consumed = coding->consumed_char = 0; |
| @@ -7200,7 +7200,7 @@ decode_coding (struct coding_system *coding) | |||
| 7200 | decode_eol (coding); | 7200 | decode_eol (coding); |
| 7201 | if (BUFFERP (coding->dst_object)) | 7201 | if (BUFFERP (coding->dst_object)) |
| 7202 | { | 7202 | { |
| 7203 | BVAR (current_buffer, undo_list) = undo_list; | 7203 | BSET (current_buffer, undo_list, undo_list); |
| 7204 | record_insert (coding->dst_pos, coding->produced_char); | 7204 | record_insert (coding->dst_pos, coding->produced_char); |
| 7205 | } | 7205 | } |
| 7206 | return coding->result; | 7206 | return coding->result; |
| @@ -7568,8 +7568,8 @@ make_conversion_work_buffer (int multibyte) | |||
| 7568 | doesn't compile new regexps. */ | 7568 | doesn't compile new regexps. */ |
| 7569 | Fset (Fmake_local_variable (Qinhibit_modification_hooks), Qt); | 7569 | Fset (Fmake_local_variable (Qinhibit_modification_hooks), Qt); |
| 7570 | Ferase_buffer (); | 7570 | Ferase_buffer (); |
| 7571 | BVAR (current_buffer, undo_list) = Qt; | 7571 | BSET (current_buffer, undo_list, Qt); |
| 7572 | BVAR (current_buffer, enable_multibyte_characters) = multibyte ? Qt : Qnil; | 7572 | BSET (current_buffer, enable_multibyte_characters, multibyte ? Qt : Qnil); |
| 7573 | set_buffer_internal (current); | 7573 | set_buffer_internal (current); |
| 7574 | return workbuf; | 7574 | return workbuf; |
| 7575 | } | 7575 | } |